Class DefaultOperationMetadata
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.DefaultOperationMetadata
- All Implemented Interfaces:
Serializable
,Emptiable
,LenientComparable
,IdentifiedObject
- Direct Known Subclasses:
OperationName
@TitleProperty(name="operationName")
@UML(identifier="SV_OperationMetadata",
specification=ISO_19115)
public class DefaultOperationMetadata
extends ISOMetadata
Parameter information.
The following properties are mandatory in a well-formed metadata according ISO 19115:
SV_OperationMetadata
├─operationName……………………………………………
A unique identifier for this interface.
├─distributedComputingPlatform……
Distributed computing platforms on which the operation has been implemented.
└─connectPoint………………………………………………
Handle for accessing the service interface.
└─linkage…………………………………………………
Location for on-line access using a URL address or similar addressing scheme.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
OperationMetadata
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
XML
instead.
- Since:
- 0.5
- Version:
- 1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.metadata.ModifiableMetadata
ModifiableMetadata.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Collection
<org.opengis.metadata.citation.OnlineResource> Handle for accessing the service interface.private List
<DefaultOperationMetadata> List of operation that must be completed immediately.private Collection
<org.opengis.util.CodeList<?>> Distributed computing platforms on which the operation has been implemented.private org.opengis.util.InternationalString
The name used to invoke this interface within the context of the DCP.private org.opengis.util.InternationalString
Free text description of the intent of the operation and the results of the operation.private String
An unique identifier for this interface.private Collection
<org.opengis.parameter.ParameterDescriptor<?>> The parameters that are required for this interface.private static final long
Serial number for compatibility with different versions.Fields inherited from class org.apache.sis.metadata.iso.ISOMetadata
identifiers
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an initially empty operation metadata.Constructs a new instance initialized with the values from the specified metadata object. -
Method Summary
Modifier and TypeMethodDescriptionCollection
<org.opengis.metadata.citation.OnlineResource> Returns the handle for accessing the service interface.Returns the list of operation that must be completed immediately before current operation is invoked.Collection
<org.opengis.util.CodeList<?>> Returns the distributed computing platforms (DCPs) on which the operation has been implemented.org.opengis.util.InternationalString
Returns the name used to invoke this interface within the context of the DCP.org.opengis.util.InternationalString
Returns free text description of the intent of the operation and the results of the operation.Returns an unique identifier for this interface.Collection
<org.opengis.parameter.ParameterDescriptor<?>> Returns the parameters that are required for this interface.void
setConnectPoints
(Collection<? extends org.opengis.metadata.citation.OnlineResource> newValue) Sets the handle for accessing the service interface.void
setDependsOn
(List<? extends DefaultOperationMetadata> newValues) Sets the list of operation that must be completed before current operation is invoked.void
setDistributedComputingPlatforms
(Collection<? extends org.opengis.util.CodeList<?>> newValues) Sets the distributed computing platforms on which the operation has been implemented.void
setInvocationName
(org.opengis.util.InternationalString newValue) Sets the name used to invoke this interface within the context of the DCP.void
setOperationDescription
(org.opengis.util.InternationalString newValue) Sets free text description of the intent of the operation and the results of the operation.void
setOperationName
(String newValue) Sets the unique identifier for this interface.void
setParameters
(Collection<? extends org.opengis.parameter.ParameterDescriptor<?>> newValues) Sets the parameters that are required for this interface.Methods inherited from class org.apache.sis.metadata.iso.ISOMetadata
getIdentifier, getIdentifierMap, getIdentifiers, getStandard, setIdentifier, transitionTo
Methods inherited from class org.apache.sis.metadata.ModifiableMetadata
checkWritePermission, collectionType, copyCollection, copyList, copyMap, copySet, deepCopy, nonNullCollection, nonNullList, nonNullMap, nonNullSet, singleton, state, writeCollection, writeList, writeMap, writeSet
Methods inherited from class org.apache.sis.metadata.AbstractMetadata
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for compatibility with different versions.- See Also:
-
operationName
An unique identifier for this interface. -
distributedComputingPlatforms
Distributed computing platforms on which the operation has been implemented. -
operationDescription
private org.opengis.util.InternationalString operationDescriptionFree text description of the intent of the operation and the results of the operation. -
invocationName
private org.opengis.util.InternationalString invocationNameThe name used to invoke this interface within the context of the DCP. -
connectPoints
Handle for accessing the service interface. -
parameters
The parameters that are required for this interface. -
dependsOn
List of operation that must be completed immediately.
-
-
Constructor Details
-
DefaultOperationMetadata
public DefaultOperationMetadata()Constructs an initially empty operation metadata. -
DefaultOperationMetadata
Constructs 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, ornull
if none.
-
-
Method Details
-
getOperationName
@UML(identifier="operationName", obligation=MANDATORY, specification=ISO_19115) public String getOperationName()Returns an unique identifier for this interface.- Returns:
- an unique identifier for this interface.
-
setOperationName
Sets the unique identifier for this interface.- Parameters:
newValue
- the new unique identifier for this interface.
-
getDistributedComputingPlatforms
@UML(identifier="distributedComputingPlatform", obligation=MANDATORY, specification=ISO_19115) public Collection<org.opengis.util.CodeList<?>> getDistributedComputingPlatforms()Returns the distributed computing platforms (DCPs) on which the operation has been implemented.Upcoming API change — specialization
The element type will be changed to theDistributedComputingPlatform
code list when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Returns:
- distributed computing platforms on which the operation has been implemented.
-
setDistributedComputingPlatforms
public void setDistributedComputingPlatforms(Collection<? extends org.opengis.util.CodeList<?>> newValues) Sets the distributed computing platforms on which the operation has been implemented.Upcoming API change — specialization
The element type will be changed to theDistributedComputingPlatform
code list when GeoAPI will provide it (tentatively in GeoAPI 3.1). In the meantime, users can define their own code list class as below:- Parameters:
newValues
- the new distributed computing platforms on which the operation has been implemented.
-
getOperationDescription
@UML(identifier="operationDescription", obligation=OPTIONAL, specification=ISO_19115) public org.opengis.util.InternationalString getOperationDescription()Returns free text description of the intent of the operation and the results of the operation.- Returns:
- free text description of the intent of the operation and the results of the operation, or
null
if none.
-
setOperationDescription
public void setOperationDescription(org.opengis.util.InternationalString newValue) Sets free text description of the intent of the operation and the results of the operation.- Parameters:
newValue
- the new free text description of the intent of the operation and the results of the operation.
-
getInvocationName
@UML(identifier="invocationName", obligation=OPTIONAL, specification=ISO_19115) public org.opengis.util.InternationalString getInvocationName()Returns the name used to invoke this interface within the context of the DCP.- Returns:
- the name used to invoke this interface within the context of the distributed computing platforms,
or
null
if none.
-
setInvocationName
public void setInvocationName(org.opengis.util.InternationalString newValue) Sets the name used to invoke this interface within the context of the DCP.- Parameters:
newValue
- the new name used to invoke this interface within the context of the DCP.
-
getConnectPoints
@UML(identifier="connectPoint", obligation=MANDATORY, specification=ISO_19115) public Collection<org.opengis.metadata.citation.OnlineResource> getConnectPoints()Returns the handle for accessing the service interface.- Returns:
- handle for accessing the service interface.
-
setConnectPoints
public void setConnectPoints(Collection<? extends org.opengis.metadata.citation.OnlineResource> newValue) Sets the handle for accessing the service interface.- Parameters:
newValue
- the new handle for accessing the service interface.
-
getParameters
@UML(identifier="parameters", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.parameter.ParameterDescriptor<?>> getParameters()Returns the parameters that are required for this interface.Unified parameter API
In GeoAPI, theSV_Parameter
type defined by ISO 19115 is replaced byParameterDescriptor
in order to provide a single parameter API. Seeinvalid reference
org.opengis.parameter
- Returns:
- the parameters that are required for this interface, or an empty collection if none.
-
setParameters
public void setParameters(Collection<? extends org.opengis.parameter.ParameterDescriptor<?>> newValues) Sets the parameters that are required for this interface.- Parameters:
newValues
- the new set of parameters that are required for this interface.
-
getDependsOn
@UML(identifier="dependsOn", obligation=OPTIONAL, specification=ISO_19115) public List<DefaultOperationMetadata> getDependsOn()Returns the list of operation that must be completed immediately before current operation is invoked.Upcoming API change — generalization
The element type will be changed to theOperationMetadata
interface when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Returns:
- list of operation that must be completed immediately, or an empty list if none.
-
setDependsOn
Sets the list of operation that must be completed before current operation is invoked.Upcoming API change — generalization
The element type will be changed to theOperationMetadata
interface when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Parameters:
newValues
- the new list of operation.
-