Enum Class FacetType

java.lang.Object
java.lang.Enum<FacetType>
org.gedcomx.types.FacetType
All Implemented Interfaces:
Serializable, Comparable<FacetType>, Constable, ControlledVocabulary

public enum FacetType extends Enum<FacetType> implements ControlledVocabulary
Enumeration of known facet types.
Author:
Ryan Heaton
  • Enum Constant Details

    • Year

      public static final FacetType Year
      A year.
    • State

      public static final FacetType State
      A (geographic) state.
    • Province

      public static final FacetType Province
      A province.
    • Country

      public static final FacetType Country
      A country.
    • City

      public static final FacetType City
      A city.
    • Parish

      public static final FacetType Parish
      A parish
    • Township

      public static final FacetType Township
      A township.
    • Page

      public static final FacetType Page
      A page.
    • Volume

      public static final FacetType Volume
      A volume.
    • Date

      public static final FacetType Date
      A date.
    • Place

      public static final FacetType Place
      A place.
    • Name

      public static final FacetType Name
      A name.
    • Gender

      public static final FacetType Gender
      A gender.
    • OTHER

      public static final FacetType OTHER
      Custom
  • Method Details

    • values

      public static FacetType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FacetType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • toQNameURI

      public URI toQNameURI()
      Return the QName value for this enum.
      Specified by:
      toQNameURI in interface ControlledVocabulary
      Returns:
      The QName value for this enum.
    • fromQNameURI

      public static FacetType fromQNameURI(URI qname)
      Get the enumeration from the QName.
      Parameters:
      qname - The qname.
      Returns:
      The enumeration.