Package org.opengis.util
Interface ControlledVocabulary
-
- All Known Implementing Classes:
AssociationType
,AxisDirection
,BandDefinition
,CellGeometry
,CharacterSet
,Classification
,CodeList
,Context
,CouplingType
,CoverageContentType
,Datatype
,DateType
,DimensionNameType
,DistributedComputingPlatform
,EvaluationMethodType
,GeometricObjectType
,GeometryType
,ImagingCondition
,InitiativeType
,KeywordType
,MaintenanceFrequency
,MediumFormat
,MediumName
,ObjectiveType
,Obligation
,Obligation
,OnLineFunction
,OperationType
,ParameterDirection
,PixelInCell
,PixelOrientation
,PolarizationOrientation
,PresentationForm
,Priority
,Progress
,RangeMeaning
,ReferenceSystemType
,Restriction
,Role
,ScopeCode
,Sequence
,SpatialRepresentationType
,TelephoneType
,TopicCategory
,TopologyLevel
,TransferFunctionType
,Trigger
,VerticalDatumType
public interface ControlledVocabulary
Common interface of all enumerations and code lists defined in GeoAPI.- Since:
- 3.1
Departure from OGC/ISO specification:
Provided for allowing developers to handlesEnum
andCodeList
in the same way for some common tasks.
-
-
Method Summary
Modifier and Type Method Description ControlledVocabulary[]
family()
Returns the enumeration or list of codes of the same kind than this item.String
identifier()
Returns the identifier declared in theUML
annotation, ornull
if none.String
name()
Returns the name of this enumeration constant or code list value.String[]
names()
Returns all the names of this constant.int
ordinal()
Returns the ordinal of this constant.
-
-
-
Method Detail
-
name
String name()
Returns the name of this enumeration constant or code list value.- Returns:
- the name of this enumeration constant or code list value.
-
names
String[] names()
Returns all the names of this constant. The returned array contains the following elements, with duplicated values and null values removed:- The programmatic name
- The UML identifier
- Any other special case, if any. See
CodeList.names()
for some examples.
- Returns:
- all names of this constant. This array is never null and never empty.
-
identifier
String identifier()
Returns the identifier declared in theUML
annotation, ornull
if none. The UML identifier shall be the ISO or OGC name for this enumeration or code list constant.- Returns:
- the ISO/OGC identifier for this constant, or
null
if none.
-
ordinal
int ordinal()
Returns the ordinal of this constant. This is its position in its elements declaration, where the initial constant is assigned an ordinal of zero.- Returns:
- the position of this constants in elements declaration.
-
family
ControlledVocabulary[] family()
Returns the enumeration or list of codes of the same kind than this item. Invoking this method gives identical results than invoking the staticvalues()
methods provided inEnum
andCodeList
subclasses, except thatfamily()
does not require the class to be known at compile-time — provided that at leat one instance of the family is available.- Returns:
- the enumeration or list of codes of the same kind than this item.
-
-