|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractMetadata
ModifiableMetadata
MetadataEntity
DefaultIdentifier
@ThreadSafe public class DefaultIdentifier
Value uniquely identifying an object within a namespace.
| metadata/geotk-metadata (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from class MetadataEntity |
|---|
identifiers |
| Fields inherited from class AbstractMetadata |
|---|
LOGGER |
| Fields inherited from interface Identifier |
|---|
AUTHORITY_KEY, CODE_KEY |
| Constructor Summary | |
|---|---|
DefaultIdentifier()
Construct an initially empty identifier. |
|
DefaultIdentifier(Citation authority,
String code)
Creates an identifier initialized to the given authority and code. |
|
DefaultIdentifier(Identifier source)
Constructs a metadata entity initialized with the values from the specified metadata. |
|
DefaultIdentifier(String code)
Creates an identifier initialized to the given code. |
|
| Method Summary | |
|---|---|
static DefaultIdentifier |
castOrCopy(Identifier object)
Returns a Geotk metadata implementation with the same values than the given arbitrary implementation. |
Citation |
getAuthority()
Organization or party responsible for definition and maintenance of the code. |
String |
getCode()
Alphanumeric value identifying an instance in the namespace. |
String |
getVersion()
Identifier of the version of the associated code, as specified by the code space or code authority. |
void |
setAuthority(Citation newValue)
Sets the organization or party responsible for definition and maintenance of the code. |
void |
setCode(String newValue)
Sets the alphanumeric value identifying an instance in the namespace. |
void |
setVersion(String newValue)
Sets an identifier of the version of the associated code. |
| Methods inherited from class MetadataEntity |
|---|
getIdentifier, getIdentifierMap, getIdentifiers, getStandard |
| Methods inherited from class ModifiableMetadata |
|---|
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, prune, unmodifiable |
| Methods inherited from class AbstractMetadata |
|---|
asMap, asTree, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, parse, toString |
| Methods inherited from class Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultIdentifier()
public DefaultIdentifier(Identifier source)
source - The metadata to copy, or null if none.public DefaultIdentifier(String code)
code - The alphanumeric value identifying an instance in the namespace,
or null if none.
public DefaultIdentifier(Citation authority,
String code)
authority - The organization or party responsible for definition and maintenance
of the code, or null if none.code - The alphanumeric value identifying an instance in the namespace,
or null if none.| Method Detail |
|---|
public static DefaultIdentifier castOrCopy(Identifier object)
null, then this method returns null.
Otherwise if the given object is already a Geotk implementation, then the given object is
returned unchanged. Otherwise a new Geotk implementation is created and initialized to the
attribute values of the given object, using a shallow copy operation
(i.e. attributes are not cloned).
object - The object to get as a Geotk implementation, or null if none.
null if the argument was null.public String getCode()
getCode in interface Identifierpublic void setCode(String newValue)
newValue - The new codepublic String getVersion()
null if not available.public void setVersion(String newValue)
newValue - The new version.public Citation getAuthority()
getAuthority in interface Identifiernull if not available.public void setAuthority(Citation newValue)
newValue - The new authority.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||