|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractMetadata
ModifiableMetadata
MetadataEntity
@ThreadSafe public class MetadataEntity
The base class of ISO 19115 implementation classes. Each sub-classes implements one of the ISO Metadata interface provided by GeoAPI.
This base class implements the IdentifiedObject interface, which implies that
every subclasses can be associated to one or many identifiers.
Those identifiers fall in two categories:
The ISO 19115 standard associates identifiers to some metadata objects.
The authority of those identifiers are often (but
not limited to) one of the constants defined in the Citations
class. At XML marshalling time, those identifiers appear as <MD_Identifier> elements.
The ISO 19139 standard associates identifiers to all metadata objects.
The authority of those identifiers are one of the
constants defined in the IdentifierSpace interface. At XML marshalling time, those
identifiers appear as attributes.
| metadata/geotk-metadata (download) | View source code for this class |
| Field Summary | |
|---|---|
protected Collection<Identifier> |
identifiers
All identifiers associated with this metadata, or null if none. |
| Fields inherited from class AbstractMetadata |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
protected |
MetadataEntity()
Constructs an initially empty metadata entity. |
protected |
MetadataEntity(Object source)
Constructs a metadata entity initialized with the values from the specified metadata. |
| Method Summary | |
|---|---|
Identifier |
getIdentifier()
Convenience method returning the first identifier which is not an ISO 19139 identifier. |
IdentifierMap |
getIdentifierMap()
A map view of identifiers. |
Collection<Identifier> |
getIdentifiers()
Returns all identifiers associated to this object. |
MetadataStandard |
getStandard()
Returns the metadata standard implemented by subclasses, which is ISO 19115. |
| 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 |
| Field Detail |
|---|
protected Collection<Identifier> identifiers
null if none.
This field is initialized to a non-null value when first needed.
getIdentifiers()| Constructor Detail |
|---|
protected MetadataEntity()
protected MetadataEntity(Object source)
throws ClassCastException
source metadata must implements the same metadata interface than this class.
source - The metadata to copy values from, or null if none.
ClassCastException - if the specified metadata don't implements the expected
metadata interface.| Method Detail |
|---|
public MetadataStandard getStandard()
getStandard in class AbstractMetadatapublic Identifier getIdentifier()
IdentifierSpace authority.
null if none.public Collection<Identifier> getIdentifiers()
href, role, arcrole, title,
show and actuate attributes)Note that XML ID attribute are actually unique only in the scope of the XML document being processed.
getIdentifiers in interface IdentifiedObjectDefaultCitation.getIdentifiers(),
DefaultObjective.getIdentifiers(),
AbstractIdentifiedObject.getIdentifiers()public IdentifierMap getIdentifierMap()
There is usually a one-to-one relationship between the map entries and the identifier elements, but not always:
The map view may contain less entries, because the map interface allows only one
entry per authority. If the identifier collection contains
many identifiers for the same authority, then only the first occurrence is visible through
this Map view.
The map view may also contain more entries than the identifier collection. For example the Citation
interface defines separated attributes for ISBN, ISSN and other identifiers. This map
view may choose to unify all those attributes in a single view.
The map supports put operations if and only if this
IdentifiedObject is modifiable.
The default implementation returns a wrapper around the identifier collection. That map is live: changes in this metadata object will be reflected in the map, and conversely.
getIdentifierMap in interface IdentifiedObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||