Class DefaultAssociatedResource
Object
AbstractMetadata
ModifiableMetadata
ISOMetadata
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
- See Also:
Defined in the sis-metadata module
- 
Nested Class SummaryNested classes/interfaces inherited from class ModifiableMetadataModifiableMetadata.State
- 
Field SummaryFields inherited from class ISOMetadataidentifiers
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs an initially empty associated resource.DefaultAssociatedResource(Citation name, AssociationType associationType) Constructs an associated resource initialized to the specified values.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the type of relation between the resources.Returns the type of initiative under which the associated resource was produced, ornullif none.Return a reference to the metadata of the associated resource, ornullif none.getName()Returns citation information about the associated resource, ornullif none.voidsetAssociationType(AssociationType newValue) Sets the type of relation between the resources.voidsetInitiativeType(InitiativeType newValue) Sets a new type of initiative under which the associated resource was produced.voidsetMetadataReference(Citation newValue) Sets the reference to the metadata of the associated resource.voidSets citation information about the associated resource.Methods inherited from class ISOMetadatagetIdentifier, getIdentifierMap, getIdentifiers, getStandard, setIdentifier, transitionToMethods inherited from class ModifiableMetadatacheckWritePermission, collectionType, copyCollection, copyList, copyMap, copySet, deepCopy, nonNullCollection, nonNullList, nonNullMap, nonNullSet, singleton, state, writeCollection, writeList, writeMap, writeSetMethods inherited from class AbstractMetadataasMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
- 
Constructor Details- 
DefaultAssociatedResourcepublic DefaultAssociatedResource()Constructs an initially empty associated resource.
- 
DefaultAssociatedResourceConstructs 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- 
getNameReturns citation information about the associated resource, ornullif none.- Returns:
- Citation information about the associated resource, or nullif none.
 
- 
setNameSets citation information about the associated resource.- Parameters:
- newValue- the new citation information, or- null.
 
- 
getAssociationType@UML(identifier="associationType", obligation=MANDATORY, specification=ISO_19115) public AssociationType getAssociationType()Returns the type of relation between the resources.- Returns:
- type of relation between the resources.
 
- 
setAssociationTypeSets the type of relation between the resources.- Parameters:
- newValue- the new type of relation.
 
- 
getInitiativeType@UML(identifier="initiativeType", obligation=OPTIONAL, specification=ISO_19115) public 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.
 
- 
setInitiativeTypeSets 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 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.
 
- 
setMetadataReferenceSets the reference to the metadata of the associated resource.- Parameters:
- newValue- the new reference to the metadata.
 
 
-