Package org.opengis.metadata.citation
Class Role
- java.lang.Object
-
- org.opengis.util.CodeList<Role>
-
- org.opengis.metadata.citation.Role
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Role>
@UML(identifier="CI_RoleCode", specification=ISO_19115) public final class Role extends CodeList<Role>
Function performed by the responsible party.- 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 Role
AUTHOR
Party who authored the resource.static Role
CUSTODIAN
Party that accepts accountability and responsibility for the data and ensures appropriate care and maintenance of the resource.static Role
DISTRIBUTOR
Party who distributes the resource.static Role
ORIGINATOR
Party who created the resource.static Role
OWNER
Party that owns the resource.static Role
POINT_OF_CONTACT
Party who can be contacted for acquiring knowledge about or acquisition of the resource.static Role
PRINCIPAL_INVESTIGATOR
Key party responsible for gathering information and conducting research.static Role
PROCESSOR
Party who has processed the data in a manner such that the resource has been modified.static Role
PUBLISHER
Party who published the resource.static Role
RESOURCE_PROVIDER
Party that supplies the resource.private static long
serialVersionUID
Serial number for compatibility with different versions.static Role
USER
Party who uses the resource.private static java.util.List<Role>
VALUES
List of all enumerations of this type.
-
Constructor Summary
Constructors Modifier Constructor Description private
Role(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 Role[]
family()
Returns the list of enumerations of the same kind than this enum.static Role
valueOf(java.lang.String code)
Returns the role that matches the given string, or returns a new one if none match it.static Role[]
values()
Returns the list ofRole
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<Role> VALUES
List of all enumerations of this type. Must be declared before any enum declaration.
-
RESOURCE_PROVIDER
@UML(identifier="resourceProvider", obligation=CONDITIONAL, specification=ISO_19115) public static final Role RESOURCE_PROVIDER
Party that supplies the resource.
-
CUSTODIAN
@UML(identifier="custodian", obligation=CONDITIONAL, specification=ISO_19115) public static final Role CUSTODIAN
Party that accepts accountability and responsibility for the data and ensures appropriate care and maintenance of the resource.
-
OWNER
@UML(identifier="owner", obligation=CONDITIONAL, specification=ISO_19115) public static final Role OWNER
Party that owns the resource.
-
USER
@UML(identifier="user", obligation=CONDITIONAL, specification=ISO_19115) public static final Role USER
Party who uses the resource.
-
DISTRIBUTOR
@UML(identifier="distributor", obligation=CONDITIONAL, specification=ISO_19115) public static final Role DISTRIBUTOR
Party who distributes the resource.
-
ORIGINATOR
@UML(identifier="originator", obligation=CONDITIONAL, specification=ISO_19115) public static final Role ORIGINATOR
Party who created the resource.
-
POINT_OF_CONTACT
@UML(identifier="pointOfContact", obligation=CONDITIONAL, specification=ISO_19115) public static final Role POINT_OF_CONTACT
Party who can be contacted for acquiring knowledge about or acquisition of the resource.
-
PRINCIPAL_INVESTIGATOR
@UML(identifier="principalInvestigator", obligation=CONDITIONAL, specification=ISO_19115) public static final Role PRINCIPAL_INVESTIGATOR
Key party responsible for gathering information and conducting research.
-
PROCESSOR
@UML(identifier="processor", obligation=CONDITIONAL, specification=ISO_19115) public static final Role PROCESSOR
Party who has processed the data in a manner such that the resource has been modified.
-
PUBLISHER
@UML(identifier="publisher", obligation=CONDITIONAL, specification=ISO_19115) public static final Role PUBLISHER
Party who published the resource.
-
AUTHOR
@UML(identifier="author", obligation=CONDITIONAL, specification=ISO_19115) public static final Role AUTHOR
Party who authored the resource.- Since:
- 2.1
-
-
Constructor Detail
-
Role
private Role(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 Role[] values()
Returns the list ofRole
s.- Returns:
- The list of codes declared in the current JVM.
-
family
public Role[] family()
Returns the list of enumerations of the same kind than this enum.
-
valueOf
public static Role valueOf(java.lang.String code)
Returns the role 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.
-
-