Package org.opengis.metadata.constraint
Class Classification
- java.lang.Object
-
- org.opengis.util.CodeList<Classification>
-
- org.opengis.metadata.constraint.Classification
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Classification>
@UML(identifier="MD_ClassificationCode", specification=ISO_19115) public final class Classification extends CodeList<Classification>
Name of the handling restrictions on the dataset.- Since:
- 2.0
- 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 ClassificationCONFIDENTIALAvailable for someone who can be entrusted with information.static ClassificationRESTRICTEDNot for general disclosure.static ClassificationSECRETKept or meant to be kept private, unknown, or hidden from all but a select group of people.private static longserialVersionUIDSerial number for compatibility with different versions.static ClassificationTOP_SECRETOf the highest secrecy.static ClassificationUNCLASSIFIEDAvailable for general disclosure.private static java.util.List<Classification>VALUESList of all enumerations of this type.
-
Constructor Summary
Constructors Modifier Constructor Description privateClassification(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 Classification[]family()Returns the list of enumerations of the same kind than this enum.static ClassificationvalueOf(java.lang.String code)Returns the classification that matches the given string, or returns a new one if none match it.static Classification[]values()Returns the list ofClassifications.
-
-
-
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<Classification> VALUES
List of all enumerations of this type. Must be declared before any enum declaration.
-
UNCLASSIFIED
@UML(identifier="unclassified", obligation=CONDITIONAL, specification=ISO_19115) public static final Classification UNCLASSIFIED
Available for general disclosure.
-
RESTRICTED
@UML(identifier="restricted", obligation=CONDITIONAL, specification=ISO_19115) public static final Classification RESTRICTED
Not for general disclosure.
-
CONFIDENTIAL
@UML(identifier="confidential", obligation=CONDITIONAL, specification=ISO_19115) public static final Classification CONFIDENTIAL
Available for someone who can be entrusted with information.
-
SECRET
@UML(identifier="secret", obligation=CONDITIONAL, specification=ISO_19115) public static final Classification SECRET
Kept or meant to be kept private, unknown, or hidden from all but a select group of people.
-
TOP_SECRET
@UML(identifier="topSecret", obligation=CONDITIONAL, specification=ISO_19115) public static final Classification TOP_SECRET
Of the highest secrecy.
-
-
Constructor Detail
-
Classification
private Classification(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 Classification[] values()
Returns the list ofClassifications.- Returns:
- The list of codes declared in the current JVM.
-
family
public Classification[] family()
Returns the list of enumerations of the same kind than this enum.- Specified by:
familyin classCodeList<Classification>- Returns:
- The codes of the same kind than this code.
-
valueOf
public static Classification valueOf(java.lang.String code)
Returns the classification 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.
-
-