Package org.apache.sis.internal.jaxb
Enum FilterByVersion
- All Implemented Interfaces:
Serializable,Comparable<FilterByVersion>
An enumeration of metadata or GML versions which determine which XML elements to include or exclude
during XML marshalling. If no marshalling is in progress, then all elements are considered included.
This enumeration is used in getter methods for XML elements that exist only in some versions of ISO
standards. They may be either deprecated elements to marshal only in legacy XML document formats,
or new elements to marshal only in new XML document formats.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Cullen Rombach (Image Matters), Martin Desruisseaux (Geomatys)
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionaccept() == trueif marshalling of an ISO 19115-3 document is in progress, or if no marshalling in underway.accept() == trueif marshalling of an ISO 19139:2007 document is in progress, or if no marshalling in underway. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept()Returnstrueif we are marshalling the metadata or GML format identified by this constant, or if no marshalling is in progress.static FilterByVersionReturns the enum constant of this type with the specified name.static FilterByVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LEGACY_METADATA
accept() == trueif marshalling of an ISO 19139:2007 document is in progress, or if no marshalling in underway. Those documents are based on ISO 19115:2003 model. -
CURRENT_METADATA
accept() == trueif marshalling of an ISO 19115-3 document is in progress, or if no marshalling in underway. Those documents are based on ISO 19115:2014 model.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
accept
public boolean accept()Returnstrueif we are marshalling the metadata or GML format identified by this constant, or if no marshalling is in progress.- Returns:
falseif the caller should omit XML element specific to the standard identified by this enumeration value.
-