Class DefaultServiceIdentification
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.AbstractIdentification
org.apache.sis.metadata.iso.identification.DefaultServiceIdentification
- All Implemented Interfaces:
Serializable,Emptiable,LenientComparable,IdentifiedObject,org.opengis.metadata.identification.Identification,org.opengis.metadata.identification.ServiceIdentification
public class DefaultServiceIdentification
extends AbstractIdentification
implements org.opengis.metadata.identification.ServiceIdentification
Identification of capabilities which a service provider makes available to a service user
through a set of interfaces that define a behaviour.
The following properties are mandatory or conditional (i.e. mandatory under some circumstances)
in a well-formed metadata according ISO 19115:
SV_ServiceIdentification
├─citation……………………………………… Citation data for the resource(s).
│ ├─title…………………………………… Name by which the cited resource is known.
│ └─date……………………………………… Reference date for the cited resource.
├─abstract……………………………………… Brief narrative summary of the content of the resource(s).
├─serviceType……………………………… A service type name. For example: "view", "download", or "invoke".
├─coupledResource…………………… Further description of the data coupling in the case of tightly coupled services.
├─couplingType…………………………… Type of coupling between service and associated data (if exist).
├─extent…………………………………………… Bounding polygon, vertical, and temporal extent of the dataset.
│ ├─description…………………… The spatial and temporal extent for the referring object.
│ ├─geographicElement…… Geographic component of the extent of the referring object.
│ ├─temporalElement………… Temporal component of the extent of the referring object.
│ └─verticalElement………… Vertical component of the extent of the referring object.
└─topicCategory………………………… Main theme(s) of the dataset.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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.metadata.ModifiableMetadata
ModifiableMetadata.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.opengis.metadata.distribution.StandardOrderProcessInformation about the availability of the service.private Collection<DefaultOperationChainMetadata>Information about the chain applied by the service.private Collection<DefaultOperationMetadata>Information about the operations that comprise the service.private Collection<DefaultCoupledResource>Further description of the data coupling in the case of tightly coupled services.private org.opengis.util.CodeList<?>Type of coupling between service and associated data (if exist).private Collection<org.opengis.metadata.citation.Citation>References to the resource on which the service operates.private Collection<org.opengis.metadata.identification.DataIdentification>Information on the resources that the service operates on.private Collection<org.opengis.metadata.citation.Citation>Profiles to which the service adheres.private static final longSerial number for compatibility with different versions.private Collection<org.opengis.metadata.citation.Citation>Standards to which the service adheres.private org.opengis.util.GenericNameA service type name.private Collection<String>The version of the service, supports searching based on the version of serviceType.Fields inherited from class org.apache.sis.metadata.iso.ISOMetadata
identifiers -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an initially empty service identification.DefaultServiceIdentification(org.opengis.metadata.identification.ServiceIdentification object) Constructs a new instance initialized with the values from the specified metadata object.DefaultServiceIdentification(org.opengis.util.GenericName serviceType, org.opengis.metadata.citation.Citation citation, CharSequence abstracts) Constructs a service identification initialized to the specified values. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidafterUnmarshal(Unmarshaller unmarshaller, Object parent) Invoked after JAXB has unmarshalled this object.static DefaultServiceIdentificationcastOrCopy(org.opengis.metadata.identification.ServiceIdentification object) Returns a SIS metadata implementation with the values of the given arbitrary implementation.org.opengis.metadata.distribution.StandardOrderProcessReturns information about the availability of the service.Provides information about the chain applied by the service.Provides information about the operations that comprise the service.Returns further description(s) of the data coupling in the case of tightly coupled services.org.opengis.util.CodeList<?>Returns type of coupling between service and associated data (if exist).private Collection<org.opengis.metadata.citation.Citation>Invoked by JAXB at both marshalling and unmarshalling time.Collection<org.opengis.metadata.citation.Citation>Returns the reference(s) to the resource on which the service operates.Collection<org.opengis.metadata.identification.DataIdentification>Provides information on the resources that the service operates on.private Collection<DefaultOperationChainMetadata>private Collection<org.opengis.metadata.citation.Citation>Collection<org.opengis.metadata.citation.Citation>Returns the profile(s) to which the service adheres.private Collection<org.opengis.metadata.citation.Citation>Collection<org.opengis.metadata.citation.Citation>Returns the standard(s) to which the service adheres.org.opengis.util.GenericNameReturns a service type name.Returns the versions of the service.voidsetAccessProperties(org.opengis.metadata.distribution.StandardOrderProcess newValue) Sets information about the availability of the service.voidsetContainsChain(Collection<? extends DefaultOperationChainMetadata> newValues) Sets the information about the chain applied by the service.voidsetContainsOperations(Collection<? extends DefaultOperationMetadata> newValues) Sets information(s) about the operations that comprise the service.voidsetCoupledResources(Collection<? extends DefaultCoupledResource> newValues) Sets further description(s) of the data coupling in the case of tightly coupled services.voidsetCouplingType(org.opengis.util.CodeList<?> newValue) Sets the type of coupling between service and associated data.voidsetOperatedDatasets(Collection<? extends org.opengis.metadata.citation.Citation> newValues) Sets the reference(s) to the resource on which the service operates.voidsetOperatesOn(Collection<? extends org.opengis.metadata.identification.DataIdentification> newValues) Sets the information on the resources that the service operates on.voidsetProfiles(Collection<? extends org.opengis.metadata.citation.Citation> newValues) Sets the profile(s) to which the service adheres.voidsetServiceStandards(Collection<? extends org.opengis.metadata.citation.Citation> newValues) Sets the standard(s) to which the service adheres.voidsetServiceType(org.opengis.util.GenericName newValue) Sets the service type name.voidsetServiceTypeVersions(Collection<? extends String> newValues) Sets the versions of the service.Methods inherited from class org.apache.sis.metadata.iso.identification.AbstractIdentification
castOrCopy, getAbstract, getAdditionalDocumentations, getAggregationInfo, getAssociatedResources, getCitation, getCredits, getDescriptiveKeywords, getExtents, getGraphicOverviews, getPointOfContacts, getProcessingLevel, getPurpose, getResourceConstraints, getResourceFormats, getResourceMaintenances, getResourceSpecificUsages, getSpatialRepresentationTypes, getSpatialResolutions, getStatus, getTopicCategories, setAbstract, setAdditionalDocumentations, setAggregationInfo, setAssociatedResources, setCitation, setCredits, setDescriptiveKeywords, setExtents, setGraphicOverviews, setPointOfContacts, setProcessingLevel, setPurpose, setResourceConstraints, setResourceFormats, setResourceMaintenances, setResourceSpecificUsages, setSpatialRepresentationTypes, setSpatialResolutions, setStatus, setTopicCategoriesMethods 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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opengis.metadata.identification.Identification
getAbstract, getAggregationInfo, getCitation, getCredits, getDescriptiveKeywords, getGraphicOverviews, getPointOfContacts, getPurpose, getResourceConstraints, getResourceFormats, getResourceMaintenances, getResourceSpecificUsages, getStatus
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for compatibility with different versions.- See Also:
-
serviceType
private org.opengis.util.GenericName serviceTypeA service type name. -
serviceTypeVersions
The version of the service, supports searching based on the version of serviceType. -
accessProperties
private org.opengis.metadata.distribution.StandardOrderProcess accessPropertiesInformation about the availability of the service. -
couplingType
private org.opengis.util.CodeList<?> couplingTypeType of coupling between service and associated data (if exist). -
coupledResources
Further description of the data coupling in the case of tightly coupled services. -
operatedDatasets
References to the resource on which the service operates. -
profiles
Profiles to which the service adheres. -
serviceStandards
Standards to which the service adheres. -
containsOperations
Information about the operations that comprise the service. -
operatesOn
Information on the resources that the service operates on. -
containsChain
Information about the chain applied by the service.
-
-
Constructor Details
-
DefaultServiceIdentification
public DefaultServiceIdentification()Constructs an initially empty service identification. -
DefaultServiceIdentification
public DefaultServiceIdentification(org.opengis.util.GenericName serviceType, org.opengis.metadata.citation.Citation citation, CharSequence abstracts) Constructs a service identification initialized to the specified values.- Parameters:
serviceType- service type name.citation- citation data for the resource(s).abstracts- brief narrative summary of the content of the resource(s).
-
DefaultServiceIdentification
public DefaultServiceIdentification(org.opengis.metadata.identification.ServiceIdentification object) 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, ornullif none.- See Also:
-
-
Method Details
-
castOrCopy
public static DefaultServiceIdentification castOrCopy(org.opengis.metadata.identification.ServiceIdentification object) Returns a SIS metadata implementation with the values of the given arbitrary implementation. This method performs the first applicable action in the following choices:- If the given object is
null, then this method returnsnull. - Otherwise if the given object is already an instance of
DefaultServiceIdentification, then it is returned unchanged. - Otherwise a new
DefaultServiceIdentificationinstance is created using the copy constructor and returned. Note that this is a shallow copy operation, because the other metadata contained in the given object are not recursively copied.
- Parameters:
object- the object to get as a SIS implementation, ornullif none.- Returns:
- a SIS implementation containing the values of the given object (may be the
given object itself), or
nullif the argument was null.
- If the given object is
-
getServiceType
@UML(identifier="serviceType", obligation=MANDATORY, specification=ISO_19115) public org.opengis.util.GenericName getServiceType()Returns a service type name.Examples: "discovery", "view", "download", "transformation", or "invoke"- Returns:
- a service type name.
-
setServiceType
public void setServiceType(org.opengis.util.GenericName newValue) Sets the service type name.- Parameters:
newValue- the new service type name.
-
getServiceTypeVersions
@UML(identifier="serviceTypeVersion", obligation=OPTIONAL, specification=ISO_19115) public Collection<String> getServiceTypeVersions()Returns the versions of the service.- Returns:
- the versions of the service.
-
setServiceTypeVersions
Sets the versions of the service.- Parameters:
newValues- the new versions of the service.
-
getAccessProperties
@UML(identifier="accessProperties", obligation=OPTIONAL, specification=ISO_19115) public org.opengis.metadata.distribution.StandardOrderProcess getAccessProperties()Returns information about the availability of the service.- Returns:
- information about the availability of the service, or
nullif none. - Since:
- 0.5
-
setAccessProperties
public void setAccessProperties(org.opengis.metadata.distribution.StandardOrderProcess newValue) Sets information about the availability of the service.- Parameters:
newValue- the new information about the availability of the service.- Since:
- 0.5
-
getCouplingType
@UML(identifier="couplingType", obligation=CONDITIONAL, specification=ISO_19115) public org.opengis.util.CodeList<?> getCouplingType()Returns type of coupling between service and associated data (if exist).Upcoming API change — specialization
The return type will be changed to theCouplingTypecode list when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Returns:
- type of coupling between service and associated data, or
nullif none.
-
setCouplingType
public void setCouplingType(org.opengis.util.CodeList<?> newValue) Sets the type of coupling between service and associated data.Upcoming API change — specialization
The argument type will be changed to theCouplingTypecode 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:
newValue- the new type of coupling between service and associated data.
-
getCoupledResources
@UML(identifier="coupledResource", obligation=CONDITIONAL, specification=ISO_19115) public Collection<DefaultCoupledResource> getCoupledResources()Returns further description(s) of the data coupling in the case of tightly coupled services.Upcoming API change — generalization
The element type will be changed to theCoupledResourceinterface when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Returns:
- further description(s) of the data coupling in the case of tightly coupled services.
-
setCoupledResources
Sets further description(s) of the data coupling in the case of tightly coupled services.Upcoming API change — generalization
The element type will be changed to theCoupledResourceinterface when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Parameters:
newValues- the new further description(s) of the data coupling.
-
getOperatedDatasets
@UML(identifier="operatedDataset", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.citation.Citation> getOperatedDatasets()Returns the reference(s) to the resource on which the service operates.- Returns:
- reference(s) to the resource on which the service operates.
- Since:
- 0.5
-
setOperatedDatasets
public void setOperatedDatasets(Collection<? extends org.opengis.metadata.citation.Citation> newValues) Sets the reference(s) to the resource on which the service operates.- Parameters:
newValues- the new reference(s) to the resource on which the service operates.- Since:
- 0.5
-
getProfiles
@UML(identifier="profile", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.citation.Citation> getProfiles()Returns the profile(s) to which the service adheres.- Returns:
- profile(s) to which the service adheres.
- Since:
- 0.5
-
setProfiles
Sets the profile(s) to which the service adheres.- Parameters:
newValues- the new profile(s) to which the service adheres.
-
getServiceStandards
@UML(identifier="serviceStandard", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.citation.Citation> getServiceStandards()Returns the standard(s) to which the service adheres.- Returns:
- standard(s) to which the service adheres.
- Since:
- 0.5
-
setServiceStandards
public void setServiceStandards(Collection<? extends org.opengis.metadata.citation.Citation> newValues) Sets the standard(s) to which the service adheres.- Parameters:
newValues- the new standard(s) to which the service adheres.- Since:
- 0.5
-
getContainsOperations
@UML(identifier="containsOperations", obligation=OPTIONAL, specification=ISO_19115) public Collection<DefaultOperationMetadata> getContainsOperations()Provides information about the operations that comprise the service.Upcoming API change — generalization
The element type will be changed to theOperationMetadatainterface when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Returns:
- information about the operations that comprise the service.
-
setContainsOperations
Sets information(s) about the operations that comprise the service.Upcoming API change — generalization
The element type will be changed to theOperationMetadatainterface when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Parameters:
newValues- the new information(s) about the operations that comprise the service.
-
getOperatesOn
@UML(identifier="operatesOn", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.identification.DataIdentification> getOperatesOn()Provides information on the resources that the service operates on.- Returns:
- information on the resources that the service operates on.
-
setOperatesOn
public void setOperatesOn(Collection<? extends org.opengis.metadata.identification.DataIdentification> newValues) Sets the information on the resources that the service operates on.- Parameters:
newValues- the new information on the resources that the service operates on.
-
getContainsChain
@UML(identifier="containsChain", obligation=OPTIONAL, specification=ISO_19115) public Collection<DefaultOperationChainMetadata> getContainsChain()Provides information about the chain applied by the service.Upcoming API change — generalization
The element type will be changed to theOperationChainMetadatainterface when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Returns:
- information about the chain applied by the service.
- Since:
- 0.5
-
setContainsChain
Sets the information about the chain applied by the service.Upcoming API change — generalization
The element type will be changed to theOperationChainMetadatainterface when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Parameters:
newValues- the new information about the chain applied by the service.- Since:
- 0.5
-
getOperatedDataset
Invoked by JAXB at both marshalling and unmarshalling time. This attribute has been added by ISO 19115:2014 standard. If (and only if) marshalling an older standard version, we omit this attribute. -
getProfile
-
getServiceStandard
-
getOperationChain
-
afterUnmarshal
Invoked after JAXB has unmarshalled this object.
-