Package org.geotools.api.style
Class SemanticType
- Object
-
- CodeList<SemanticType>
-
- SemanticType
-
- All Implemented Interfaces:
Serializable,Comparable<SemanticType>
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:pointgeneric:linegeneric:polygongeneric:textgeneric:rastergeneric:any
- Since:
- GeoAPI 2.2
- Author:
- Open Geospatial Consortium, Johann Sorel (Geomatys)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static SemanticTypeANYSemantic identifies any geometry.static SemanticTypeLINESemantic identifies a line geometry.static SemanticTypePOINTSemantic identifies a point geometry.static SemanticTypePOLYGONSemantic identifies a polygon geometry.static SemanticTypeRASTERSemantic identifies a raster geometry.static SemanticTypeTEXTSemantic identifies a text geometry.
-
Constructor Summary
Constructors Constructor Description SemanticType(String name)Constructs an enum with the given name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SemanticType[]family()Returns the list of enumerations of the same kind than this enum.static SemanticTypevalueOf(String code)Returns 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 Detail
-
POINT
public static final SemanticType POINT
Semantic identifies a point geometry.
-
LINE
public static final SemanticType LINE
Semantic identifies a line geometry.
-
POLYGON
public static final SemanticType POLYGON
Semantic identifies a polygon geometry.
-
TEXT
public static final SemanticType TEXT
Semantic identifies a text geometry.
-
RASTER
public static final SemanticType RASTER
Semantic identifies a raster geometry.
-
ANY
public static final SemanticType ANY
Semantic identifies any geometry.
-
-
Method Detail
-
values
public static SemanticType[] values()
Returns the list ofSemanticTypes.- Returns:
- The list of codes declared in the current JVM.
-
family
public SemanticType[] 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
public static SemanticType valueOf(String code)
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.
-
-