Package org.opengis.metadata.spatial
Class CellGeometry
- All Implemented Interfaces:
Serializable
,Comparable<CellGeometry>
@UML(identifier="MD_CellGeometryCode",
specification=ISO_19115)
public final class CellGeometry
extends CodeList<CellGeometry>
Code indicating whether grid data is point or area.
- Since:
- 2.0
- Version:
- 3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengis.util.CodeList
CodeList.Filter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CellGeometry
Each cell represents an area.static final CellGeometry
Each cell represents a point.private static final long
Serial number for compatibility with different versions.private static final List
<CellGeometry> List of all enumerations of this type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
CellGeometry
(String name) Constructs an enum with the given name. -
Method Summary
Modifier and TypeMethodDescriptionfamily()
Returns the list of enumerations of the same kind than this enum.static CellGeometry
Returns the CellGeometry that matches the given string, or returns a new one if none match it.static CellGeometry[]
values()
Returns the list ofCellGeometry
s.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for compatibility with different versions.- See Also:
-
VALUES
List of all enumerations of this type. Must be declared before any enum declaration. -
POINT
@UML(identifier="point", obligation=CONDITIONAL, specification=ISO_19115) public static final CellGeometry POINTEach cell represents a point. -
AREA
@UML(identifier="area", obligation=CONDITIONAL, specification=ISO_19115) public static final CellGeometry AREAEach cell represents an area.
-
-
Constructor Details
-
CellGeometry
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 ofCellGeometry
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<CellGeometry>
- Returns:
- The codes of the same kind than this code.
-
valueOf
Returns the CellGeometry 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.
-