Interface ControlledVocabulary

All Known Implementing Classes:
AssociationType, AxisDirection, BandDefinition, CellGeometry, CharacterSet, Classification, CodeList, ComparisonOperatorName, Configuration.Key, Context, CouplingType, CoverageContentType, Datatype, DateType, DimensionNameType, DistanceOperatorName, DistributedComputingPlatform, EvaluationMethodType, GeometricObjectType, GeometryType, ImagingCondition, InitiativeType, KeywordType, LogicalOperatorName, MaintenanceFrequency, MatchAction, MediumFormat, MediumName, ObjectiveType, Obligation, Obligation, OnLineFunction, OperationType, ParameterDirection, PixelInCell, PixelOrientation, PolarizationOrientation, PresentationForm, Priority, Progress, RangeMeaning, ReferenceSystemType, Restriction, Role, ScopeCode, Sequence, SortOrder, SpatialOperatorName, SpatialRepresentationType, TelephoneType, TemporalOperatorName, TopicCategory, TopologyLevel, TransferFunctionType, Trigger, ValueStructure, VersionAction, VerticalDatumType

public interface ControlledVocabulary
Common interface of all enumerations and code lists defined in GeoAPI. Enumerations are closed controlled vocabularies: it is not possible to add new members (except by releasing new versions of the library). By contrast, code lists are open vocabularies: they provide a basic set of members defined at compile-time, but users are free to add new members at runtime.
Since:
3.1
Departure from OGC/ISO abstract specification:
Departure for closer integration with the Java environment Provided for allowing developers to handles Enum and CodeList in the same way for some common tasks.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enumeration or list of codes of the same kind than this item.
    Returns the identifier declared in the UML annotation, or null if none.
    Returns the name of this enumeration constant or code list value.
    Returns all the names of this constant.
    int
    Returns the ordinal of this constant.
  • Method Details

    • 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:
      Returns:
      all names of this constant. This array is never null and never empty.
    • identifier

      String identifier()
      Returns the identifier declared in the UML annotation, or null 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

      Returns the enumeration or list of codes of the same kind than this item. Invoking this method gives identical results than invoking the static values() methods provided in Enum and CodeList subclasses, except that family() 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.