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:pointgeneric:linegeneric:polygongeneric:textgeneric:rastergeneric:any
- Since:
- GeoAPI 2.2
- Author:
- Open Geospatial Consortium, Johann Sorel (Geomatys)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SemanticTypeSemantic identifies any geometry.static final SemanticTypeSemantic identifies a line geometry.static final SemanticTypeSemantic identifies a point geometry.static final SemanticTypeSemantic identifies a polygon geometry.static final SemanticTypeSemantic identifies a raster geometry.static final SemanticTypeSemantic 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 SemanticTypeReturns the semantic type that matches the given string, or returns a new one if none match it.static SemanticType[]values()Returns the list ofSemanticTypes.
-
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 ofSemanticTypes.- 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:
familyin 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.
-