Class DefaultAssociatedResource
java.lang.Object
org.apache.sis.metadata.AbstractMetadata
org.apache.sis.metadata.ModifiableMetadata
org.apache.sis.metadata.iso.ISOMetadata
org.apache.sis.metadata.iso.identification.DefaultAssociatedResource
- All Implemented Interfaces:
Serializable,Emptiable,LenientComparable,IdentifiedObject
- Direct Known Subclasses:
DefaultAggregateInformation
@UML(identifier="MD_AssociatedResource",
specification=ISO_19115)
public class DefaultAssociatedResource
extends ISOMetadata
Associated resource information.
The following properties are mandatory or conditional (i.e. mandatory under some circumstances)
in a well-formed metadata according ISO 19115:
According ISO 19115, at least one of name and
metadata reference shall be provided.
MD_AssociatedResource
├─associationType………… Type of relation between the resources.
├─metadataReference…… Reference to the metadata of the associated resource.
│ ├─title………………………… Name by which the cited resource is known.
│ └─date…………………………… Reference date for the cited resource.
└─name……………………………………… Citation information about the associated resource.Limitations
- Instances of this class are not synchronized for multi-threading. Synchronization, if needed, is caller's responsibility.
- Serialized objects of this class are not guaranteed to be compatible with future Apache SIS releases.
Serialization support is appropriate for short term storage or RMI between applications running the
same version of Apache SIS. For long term storage, use
XMLinstead.
- Since:
- 0.5
- Version:
- 1.0
- Author:
- Rémi Maréchal (Geomatys), Martin Desruisseaux (Geomatys), Cullen Rombach (Image Matters)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.metadata.ModifiableMetadata
ModifiableMetadata.State -
Field Summary
Fields inherited from class org.apache.sis.metadata.iso.ISOMetadata
identifiers -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an initially empty associated resource.DefaultAssociatedResource(org.opengis.metadata.citation.Citation name, org.opengis.metadata.identification.AssociationType associationType) Constructs an associated resource initialized to the specified values. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.metadata.identification.AssociationTypeReturns the type of relation between the resources.org.opengis.metadata.identification.InitiativeTypeReturns the type of initiative under which the associated resource was produced, ornullif none.org.opengis.metadata.citation.CitationReturn a reference to the metadata of the associated resource, ornullif none.org.opengis.metadata.citation.CitationgetName()Returns citation information about the associated resource, ornullif none.voidsetAssociationType(org.opengis.metadata.identification.AssociationType newValue) Sets the type of relation between the resources.voidsetInitiativeType(org.opengis.metadata.identification.InitiativeType newValue) Sets a new type of initiative under which the associated resource was produced.voidsetMetadataReference(org.opengis.metadata.citation.Citation newValue) Sets the reference to the metadata of the associated resource.voidsetName(org.opengis.metadata.citation.Citation newValue) Sets citation information about the associated resource.Methods inherited from class org.apache.sis.metadata.iso.ISOMetadata
getIdentifier, getIdentifierMap, getIdentifiers, getStandard, setIdentifier, transitionToMethods inherited from class org.apache.sis.metadata.ModifiableMetadata
checkWritePermission, collectionType, copyCollection, copyList, copyMap, copySet, deepCopy, nonNullCollection, nonNullList, nonNullMap, nonNullSet, singleton, state, writeCollection, writeList, writeMap, writeSetMethods inherited from class org.apache.sis.metadata.AbstractMetadata
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
-
Constructor Details
-
DefaultAssociatedResource
public DefaultAssociatedResource()Constructs an initially empty associated resource. -
DefaultAssociatedResource
public DefaultAssociatedResource(org.opengis.metadata.citation.Citation name, org.opengis.metadata.identification.AssociationType associationType) Constructs an associated resource initialized to the specified values.- Parameters:
name- citation information about the associated resource.associationType- type of relation between the resources.
-
-
Method Details
-
getName
@UML(identifier="name", obligation=CONDITIONAL, specification=ISO_19115) public org.opengis.metadata.citation.Citation getName()Returns citation information about the associated resource, ornullif none.- Returns:
- Citation information about the associated resource, or
nullif none.
-
setName
public void setName(org.opengis.metadata.citation.Citation newValue) Sets citation information about the associated resource.- Parameters:
newValue- the new citation information, ornull.
-
getAssociationType
@UML(identifier="associationType", obligation=MANDATORY, specification=ISO_19115) public org.opengis.metadata.identification.AssociationType getAssociationType()Returns the type of relation between the resources.- Returns:
- type of relation between the resources.
-
setAssociationType
public void setAssociationType(org.opengis.metadata.identification.AssociationType newValue) Sets the type of relation between the resources.- Parameters:
newValue- the new type of relation.
-
getInitiativeType
@UML(identifier="initiativeType", obligation=OPTIONAL, specification=ISO_19115) public org.opengis.metadata.identification.InitiativeType getInitiativeType()Returns the type of initiative under which the associated resource was produced, ornullif none.- Returns:
- the type of initiative under which the associated resource was produced, or
nullif none.
-
setInitiativeType
public void setInitiativeType(org.opengis.metadata.identification.InitiativeType newValue) Sets a new type of initiative under which the associated resource was produced.- Parameters:
newValue- the new type of initiative.
-
getMetadataReference
@UML(identifier="metadataReference", obligation=CONDITIONAL, specification=ISO_19115) public org.opengis.metadata.citation.Citation getMetadataReference()Return a reference to the metadata of the associated resource, ornullif none.- Returns:
- reference to the metadata of the associated resource, or
nullif none.
-
setMetadataReference
public void setMetadataReference(org.opengis.metadata.citation.Citation newValue) Sets the reference to the metadata of the associated resource.- Parameters:
newValue- the new reference to the metadata.
-