Class OperationName
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
org.apache.sis.metadata.iso.identification.OperationName
- All Implemented Interfaces:
Serializable
,Emptiable
,LenientComparable
,IdentifiedObject
An
OperationMetadata
placeholder to be replaced later by a reference to another OperationMetadata
.
This temporary place holder is used when the operation name is unmarshalled before the actual operation definition.- Since:
- 0.5
- Version:
- 0.5
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.metadata.ModifiableMetadata
ModifiableMetadata.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility.Fields inherited from class org.apache.sis.metadata.iso.ISOMetadata
identifiers
-
Constructor Summary
ConstructorsConstructorDescriptionOperationName
(String operationName) Creates a new placeholder for the operation of the given name. -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
add
(Map<String, DefaultOperationMetadata> byName, String name, DefaultOperationMetadata operation) Adds the given operation in the given map under the given name.(package private) static void
resolve
(Collection<DefaultOperationMetadata> containsOperations, Collection<DefaultCoupledResource> coupledResources) For every instance ofDefaultCoupledResource
associated to an operation of kindOperationName
, replaces the operation by a "real"DefaultOperationMetadata
of the same name, if any.toString()
Returns a string representation of this placeholder.Methods inherited from class org.apache.sis.metadata.iso.identification.DefaultOperationMetadata
getConnectPoints, getDependsOn, getDistributedComputingPlatforms, getInvocationName, getOperationDescription, getOperationName, getParameters, setConnectPoints, setDependsOn, setDistributedComputingPlatforms, setInvocationName, setOperationDescription, setOperationName, setParameters
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
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
-
Constructor Details
-
OperationName
OperationName(String operationName) Creates a new placeholder for the operation of the given name.
-
-
Method Details
-
toString
Returns a string representation of this placeholder.- Overrides:
toString
in classAbstractMetadata
-
resolve
static void resolve(Collection<DefaultOperationMetadata> containsOperations, Collection<DefaultCoupledResource> coupledResources) For every instance ofDefaultCoupledResource
associated to an operation of kindOperationName
, replaces the operation by a "real"DefaultOperationMetadata
of the same name, if any.This method updates the elements in the
coupledResources
collection in-place. The other collection is unmodified.This method is invoked at unmarshalling time for resolving the
OperationMetadata
instance which were identified only by a name in a<srv:operationName>
element. -
add
private static void add(Map<String, DefaultOperationMetadata> byName, String name, DefaultOperationMetadata operation) Adds the given operation in the given map under the given name. If an entry already exists for the given name, then this method sets the value tonull
for meaning that we have duplicated values for that name.
-