org.opengis.util
Class CodeList<E extends CodeList<E>>
- java.lang.Object
-
- org.opengis.util.CodeList<E>
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<E>
- Direct Known Subclasses:
- AxisDirection, BSplineSurfaceForm, ByteInValuePacking, CellGeometry, Classification, ColorInterpretation, CoverageContentType, CurveInterpolation, Datatype, DataType, DateType, DimensionNameType, EvaluationMethodType, GeometricObjectType, ImagingCondition, KeywordType, KnotType, MaintenanceFrequency, MediumFormat, MediumName, Obligation, OnLineFunction, PaletteInterpretation, PixelInCell, PixelOrientation, PresentationForm, Progress, Restriction, Role, SampleDimensionType, ScopeCode, SimpleEnumerationType, SpatialRepresentationType, SplineCurveForm, SurfaceInterpolation, TopicCategory, TopologyLevel, ValueInBytePacking, VerticalDatumType
public abstract class CodeList<E extends CodeList<E>> extends java.lang.Object implements java.lang.Comparable<E>, java.io.SerializableBase class for all code lists. Subclasses shall provides avalues()method which returns allCodeListelement in an array of the appropriate class. Code list are extensible, i.e. invoking the public constructor in any subclass will automatically add the newly createdCodeListelement in the array to be returned byvalues().- Since:
- GeoAPI 1.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description intcompareTo(E other)Compares this code with the specified object for order.abstract CodeList[]family()Returns the list of enumerations of the same kind than this enum.java.lang.Stringname()Returns the name of this enum constant.intordinal()Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).java.lang.StringtoString()Returns a string representation of this code list.
-
-
-
Method Detail
-
ordinal
public final int ordinal()
Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).
-
name
public final java.lang.String name()
Returns the name of this enum constant.
-
family
public abstract CodeList[] family()
Returns the list of enumerations of the same kind than this enum.
-
compareTo
public final int compareTo(E other)
Compares this code with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.Code list constants are only comparable to other code list constants of the same type. The natural order implemented by this method is the order in which the constants are declared.
-
toString
public java.lang.String toString()
Returns a string representation of this code list.- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG