Enum FilterByVersion

java.lang.Object
java.lang.Enum<FilterByVersion>
org.apache.sis.internal.jaxb.FilterByVersion
All Implemented Interfaces:
Serializable, Comparable<FilterByVersion>

public enum FilterByVersion extends Enum<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 Details

    • LEGACY_METADATA

      public static final FilterByVersion LEGACY_METADATA
      accept() == true if 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

      public static final FilterByVersion CURRENT_METADATA
      accept() == true if 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

      public static FilterByVersion[] 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

      public static FilterByVersion valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • accept

      public boolean accept()
      Returns true if we are marshalling the metadata or GML format identified by this constant, or if no marshalling is in progress.
      Returns:
      false if the caller should omit XML element specific to the standard identified by this enumeration value.