Package org.opengis.geoapi
Enum Content
-
- All Implemented Interfaces:
Serializable
,Comparable<Content>
public enum Content extends Enum<Content>
All interfaces, code lists, enumerations and exceptions declared in GeoAPI. The array of types that are members of a category is given bytypes()
.- Since:
- 3.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
All interfaces, code lists, enumerations and exceptions.CODE_LISTS
All code list classes.CONTROLLED_VOCABULARY
The union of code lists and enumerations.ENUMERATIONS
All enumeration classes.EXCEPTIONS
All exceptions.INTERFACES
All GeoAPI interfaces, in approximate dependency order.
-
Method Summary
Modifier and Type Method Description boolean
isControlledVocabulary()
Returnstrue
if this enumeration is for enumerations, code lists, or combination of both.static Class<?>
typeOf(Field field)
Returns the element type of the given field.static Class<?>
typeOf(Method method)
Returns the element type of the return value or single parameter type of the given method.Class<?>[]
types()
Returns all types in that are members of the category identified by this enumeration value.static Content
valueOf(String name)
Returns the enum constant of this type with the specified name.static Content[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTERFACES
public static final Content INTERFACES
All GeoAPI interfaces, in approximate dependency order. It is not possible to list the interfaces in strict dependency order because of circular dependencies. But this list nevertheless tries to provide such order in a "best effort" basis.
-
CODE_LISTS
public static final Content CODE_LISTS
All code list classes.
-
ENUMERATIONS
public static final Content ENUMERATIONS
All enumeration classes.
-
CONTROLLED_VOCABULARY
public static final Content CONTROLLED_VOCABULARY
The union of code lists and enumerations.
-
EXCEPTIONS
public static final Content EXCEPTIONS
All exceptions.
-
-
Method Detail
-
values
public static Content[] 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 Content 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
-
isControlledVocabulary
public boolean isControlledVocabulary()
Returnstrue
if this enumeration is for enumerations, code lists, or combination of both.- Returns:
true
ifENUMERATIONS
,CODE_LISTS
orCONTROLLED_VOCABULARY
.
-
types
public Class<?>[] types()
Returns all types in that are members of the category identified by this enumeration value.- Returns:
- types that are members of this category.
-
typeOf
public static Class<?> typeOf(Field field)
Returns the element type of the given field. If the field type is parameterized, then this method returns the upper bound. Otherwise this method returns the value type.- Parameters:
field
- the field for which to obtain the (eventually parameterized) type.- Returns:
- the property element type.
-
typeOf
public static Class<?> typeOf(Method method)
Returns the element type of the return value or single parameter type of the given method. If the return type or the single parameter is a parameterized type, then this method returns the upper bound. Otherwise this method returns the type directly.- Parameters:
method
- the method for which to obtain the (eventually parameterized) return type.- Returns:
- the return element type (may be
Void.TYPE
).
-
-