Class DefaultCoupledResource
Object
AbstractMetadata
ModifiableMetadata
ISOMetadata
DefaultCoupledResource
- All Implemented Interfaces:
- Serializable,- Emptiable,- LenientComparable,- IdentifiedObject
@UML(identifier="SV_CoupledResource",
     specification=ISO_19115)
public class DefaultCoupledResource
extends ISOMetadata
Links a given operation name with a resource identified by an "identifier".
 
Note on International Standard versions
This class is derived from a new type defined in the ISO 19115 international standard published in 2014, while GeoAPI 3.0 is based on the version published in 2003. Consequently this implementation class does not yet implement a GeoAPI interface, but is expected to do so after the next GeoAPI releases. When the interface will become available, all references to this implementation class in Apache SIS will be replaced be references to the
 This class is derived from a new type defined in the ISO 19115 international standard published in 2014, while GeoAPI 3.0 is based on the version published in 2003. Consequently this implementation class does not yet implement a GeoAPI interface, but is expected to do so after the next GeoAPI releases. When the interface will become available, all references to this implementation class in Apache SIS will be replaced be references to the
CoupledResource interface.
 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 coupled resource.Constructs a new instance initialized with the values from the specified metadata object.DefaultCoupledResource(ScopedName name, Citation reference, DataIdentification resource, DefaultOperationMetadata operation) Constructs a new coupled resource initialized to the specified values.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the service operation.Returns references to the resource on which the services operates.Returns the tightly coupled resources.Returns scoped identifier of the resource in the context of the given service instance.voidsetOperation(DefaultOperationMetadata newValue) Sets a new service operation.voidsetResourceReferences(Collection<? extends Citation> newValues) Sets references to the resource on which the services operates.voidsetResources(Collection<? extends DataIdentification> newValues) Sets the tightly coupled resources.voidsetScopedName(ScopedName newValue) Sets the identifier of the resource in the context of the given service instance.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- 
DefaultCoupledResourcepublic DefaultCoupledResource()Constructs an initially empty coupled resource.
- 
DefaultCoupledResourcepublic DefaultCoupledResource(ScopedName name, Citation reference, DataIdentification resource, DefaultOperationMetadata operation) Constructs a new coupled resource initialized to the specified values.- Parameters:
- name- scoped identifier of the resource in the context of the given service instance.
- reference- reference to the reference to the resource on which the services operates.
- resource- the tightly coupled resource.
- operation- the service operation.
 
- 
DefaultCoupledResourceConstructs a new instance initialized with the values from the specified metadata object. This is a shallow copy constructor, because the other metadata contained in the given object are not recursively copied.- Parameters:
- object- the metadata to copy values from, or- nullif none.
 
 
- 
- 
Method Details- 
getScopedName@UML(identifier="scopedName", obligation=OPTIONAL, specification=ISO_19115) public ScopedName getScopedName()Returns scoped identifier of the resource in the context of the given service instance.- Returns:
- identifier of the resource, or nullif none.
 
- 
setScopedNameSets the identifier of the resource in the context of the given service instance.- Parameters:
- newValue- the new identifier of the resource.
 
- 
getResourceReferences@UML(identifier="resourceReference", obligation=OPTIONAL, specification=ISO_19115) public Collection<Citation> getResourceReferences()Returns references to the resource on which the services operates.- Returns:
- references to the resource on which the services operates.
 
- 
setResourceReferencesSets references to the resource on which the services operates.- Parameters:
- newValues- the new references to the resource on which the services operates.
 
- 
getResources@UML(identifier="resource", obligation=OPTIONAL, specification=ISO_19115) public Collection<DataIdentification> getResources()Returns the tightly coupled resources.- Returns:
- tightly coupled resources.
 
- 
setResourcesSets the tightly coupled resources.- Parameters:
- newValues- the new tightly coupled resources.
 
- 
getOperation@UML(identifier="operation", obligation=OPTIONAL, specification=ISO_19115) public DefaultOperationMetadata getOperation()Returns the service operation.Upcoming API change — generalization
 The return type will be changed to theOperationMetadatainterface when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Returns:
- the service operation, or nullif none.
 
- 
setOperationSets a new service operation.Upcoming API change — generalization
 The argument type will be changed to theOperationMetadatainterface when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Parameters:
- newValue- the new service operation.
 
 
-