Package org.gedcomx.types
Enum FacetType
- java.lang.Object
-
- java.lang.Enum<FacetType>
-
- org.gedcomx.types.FacetType
-
- All Implemented Interfaces:
Serializable,Comparable<FacetType>,ControlledVocabulary
public enum FacetType extends Enum<FacetType> implements ControlledVocabulary
Enumeration of known facet types.- Author:
- Ryan Heaton
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FacetTypefromQNameURI(URI qname)Get the enumeration from the QName.URItoQNameURI()Return the QName value for this enum.static FacetTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FacetType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static FacetType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FacetType c : FacetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FacetType 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 nameNullPointerException- if the argument is null
-
toQNameURI
public URI toQNameURI()
Return the QName value for this enum.- Specified by:
toQNameURIin interfaceControlledVocabulary- Returns:
- The QName value for this enum.
-
-