org.opengis.style
Class SemanticType

Object
  extended by CodeList<SemanticType>
      extended by SemanticType
All Implemented Interfaces:
Serializable, Comparable<SemanticType>

@XmlElement(value="SemanticTypeIdentifier")
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:

Since:
GeoAPI 2.2
Author:
Open Geospatial Consortium, Johann Sorel (Geomatys)
See Also:
Serialized Form

Field Summary
static SemanticType ANY
          Semantic identifies any geometry.
static SemanticType LINE
          Semantic identifies a line geometry.
static SemanticType POINT
          Semantic identifies a point geometry.
static SemanticType POLYGON
          Semantic identifies a polygon geometry.
static SemanticType RASTER
          Semantic identifies a raster geometry.
static SemanticType TEXT
          Semantic identifies a text geometry.
 
Method Summary
 SemanticType[] family()
          Returns the list of enumerations of the same kind than this enum.
static SemanticType valueOf(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 of SemanticTypes.
 
Methods inherited from class CodeList
compareTo, equals, identifier, matches, name, ordinal, readResolve, toString, valueOf
 
Methods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

POINT

@XmlElement(value="generic:point")
public static final SemanticType POINT
Semantic identifies a point geometry.


LINE

@XmlElement(value="generic:line")
public static final SemanticType LINE
Semantic identifies a line geometry.


POLYGON

@XmlElement(value="generic:polygon")
public static final SemanticType POLYGON
Semantic identifies a polygon geometry.


TEXT

@XmlElement(value="generic:text")
public static final SemanticType TEXT
Semantic identifies a text geometry.


RASTER

@XmlElement(value="generic:raster")
public static final SemanticType RASTER
Semantic identifies a raster geometry.


ANY

@XmlElement(value="generic:any")
public static final SemanticType ANY
Semantic identifies any geometry.

Method Detail

values

public static SemanticType[] values()
Returns the list of SemanticTypes.

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:
family in class CodeList<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.


Copyright © 1996-2014 Geotools. All Rights Reserved.