Class SemanticType

  • All Implemented Interfaces:
    Serializable, Comparable<SemanticType>, ControlledVocabulary

    public final class SemanticType
    extends CodeList<SemanticType>
    Identifies the more general "type" of geometry that this style is meant to act upon. In the current OGC SE specifications, this is an experimental element and can take only one of the following values:
    • generic:point
    • generic:line
    • generic:polygon
    • generic:text
    • generic:raster
    • generic:any
    GeoAPI 2.2
    See Also:
    Serialized Form
    • Method Detail

      • values

        public static SemanticType[] values()
        Returns the list of SemanticTypes.
        the list of codes declared in the current JVM.
      • family

        public SemanticType[] family()
        Returns the list of codes of the same kind than this code list element. Invoking this method is equivalent to invoking values(), except that this method can be invoked on an instance of the parent CodeList class.
        Specified by:
        family in interface ControlledVocabulary
        Specified by:
        family in class CodeList<SemanticType>
        all code values for this code list.
      • valueOf

        public static SemanticType valueOf​(String code)
        Returns the semantic type that matches the given string, or returns a new one if none match it. More specifically, this methods returns the first instance for which name().equals(code) returns true. If no existing instance is found, then a new one is created for the given name.
        code - the name of the code to fetch or to create.
        a code matching the given name.