Package org.opengis.metadata.acquisition
Class GeometryType
- java.lang.Object
-
- org.opengis.util.CodeList<GeometryType>
-
- org.opengis.metadata.acquisition.GeometryType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GeometryType>
@UML(identifier="MI_GeometryTypeCode", specification=ISO_19115_2) public final class GeometryType extends CodeList<GeometryType>
Geometric description of the collection.- Since:
- 2.3
- Version:
- 3.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opengis.util.CodeList
CodeList.Filter
-
-
Field Summary
Fields Modifier and Type Field Description static GeometryType
AREAL
Collection of a geographic area defined by a polygon (coverage).static GeometryType
LINEAR
Extended collection in a single vector.static GeometryType
POINT
Single geographic point of interest.private static long
serialVersionUID
Serial number for compatibility with different versions.static GeometryType
STRIP
Series of linear collections grouped by way points.private static java.util.List<GeometryType>
VALUES
List of all enumerations of this type.
-
Constructor Summary
Constructors Modifier Constructor Description private
GeometryType(java.lang.String name)
Constructs an enum with the given name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometryType[]
family()
Returns the list of enumerations of the same kind than this enum.static GeometryType
valueOf(java.lang.String code)
Returns the geometry type that matches the given string, or returns a new one if none match it.static GeometryType[]
values()
Returns the list ofGeometryType
s.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial number for compatibility with different versions.- See Also:
- Constant Field Values
-
VALUES
private static final java.util.List<GeometryType> VALUES
List of all enumerations of this type. Must be declared before any enum declaration.
-
POINT
@UML(identifier="point", obligation=CONDITIONAL, specification=ISO_19115_2) public static final GeometryType POINT
Single geographic point of interest.
-
LINEAR
@UML(identifier="linear", obligation=CONDITIONAL, specification=ISO_19115_2) public static final GeometryType LINEAR
Extended collection in a single vector.
-
AREAL
@UML(identifier="areal", obligation=CONDITIONAL, specification=ISO_19115_2) public static final GeometryType AREAL
Collection of a geographic area defined by a polygon (coverage).
-
STRIP
@UML(identifier="strip", obligation=CONDITIONAL, specification=ISO_19115_2) public static final GeometryType STRIP
Series of linear collections grouped by way points.
-
-
Constructor Detail
-
GeometryType
private GeometryType(java.lang.String name)
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 Detail
-
values
public static GeometryType[] values()
Returns the list ofGeometryType
s.- Returns:
- The list of codes declared in the current JVM.
-
family
public GeometryType[] family()
Returns the list of enumerations of the same kind than this enum.- Specified by:
family
in classCodeList<GeometryType>
- Returns:
- The codes of the same kind than this code.
-
valueOf
public static GeometryType valueOf(java.lang.String code)
Returns the geometry 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.
-
-