Package org.geotools.api.style
Class SemanticType
- All Implemented Interfaces:
Serializable
,Comparable<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
- Since:
- GeoAPI 2.2
- Author:
- Open Geospatial Consortium, Johann Sorel (Geomatys)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SemanticType
Semantic identifies any geometry.static final SemanticType
Semantic identifies a line geometry.static final SemanticType
Semantic identifies a point geometry.static final SemanticType
Semantic identifies a polygon geometry.static final SemanticType
Semantic identifies a raster geometry.static final SemanticType
Semantic identifies a text geometry. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfamily()
Returns the list of enumerations of the same kind than this enum.static SemanticType
Returns the semantic type that matches the given string, or returns a new one if none match it.static SemanticType[]
values()
Returns the list ofSemanticType
s.
-
Field Details
-
POINT
Semantic identifies a point geometry. -
LINE
Semantic identifies a line geometry. -
POLYGON
Semantic identifies a polygon geometry. -
TEXT
Semantic identifies a text geometry. -
RASTER
Semantic identifies a raster geometry. -
ANY
Semantic identifies any geometry.
-
-
Constructor Details
-
SemanticType
Constructs an enum with the given name. The new enum is automatically added to the list returned byvalues()
.- Parameters:
name
- The enum name. This name must not be in use by an other enum of this type.
-
-
Method Details
-
values
Returns the list ofSemanticType
s.- Returns:
- The list of codes declared in the current JVM.
-
family
Returns the list of enumerations of the same kind than this enum.- Specified by:
family
in classCodeList<SemanticType>
- Returns:
- The codes of the same kind than this code.
-
valueOf
Returns the semantic type that matches the given string, or returns a new one if none match it.- Parameters:
code
- The name of the code to fetch or to create.- Returns:
- A code matching the given name.
-