Module org.apache.sis.metadata
Class AbstractIdentification
Object
AbstractMetadata
ModifiableMetadata
ISOMetadata
AbstractIdentification
- All Implemented Interfaces:
Serializable
,Emptiable
,LenientComparable
,IdentifiedObject
,Identification
- Direct Known Subclasses:
DefaultDataIdentification
,DefaultServiceIdentification
Basic information required to uniquely identify a resource or resources.
The following properties are mandatory or conditional (i.e. mandatory under some circumstances)
in a well-formed metadata according ISO 19115:
MD_Identification
├─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).
├─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
XML
instead.
- Since:
- 0.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ModifiableMetadata
ModifiableMetadata.State
-
Field Summary
Fields inherited from class ISOMetadata
identifiers
-
Constructor Summary
ConstructorDescriptionConstructs an initially empty identification.AbstractIdentification
(Citation citation, CharSequence abstracts) Creates an identification initialized to the specified values.Constructs a new instance initialized with the values from the specified metadata object. -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractIdentification
castOrCopy
(Identification object) Returns a SIS metadata implementation with the values of the given arbitrary implementation.Returns a brief narrative summary of the resource(s).Returns other documentation associated with the resource.Deprecated.Provides associated resource information.Returns the citation for the resource(s).Returns the recognition of those who contributed to the resource(s).Provides category keywords, their type, and reference source.Returns the spatial and temporal extent of the resource.Provides a graphic that illustrates the resource(s) (should include a legend for the graphic).Returns the identification of, and means of communication with, person(s) and organizations(s) associated with the resource(s).Returns code(s) that identifies the level of processing in the producers coding system of a resource.Returns a summary of the intentions with which the resource(s) was developed.Provides information about constraints which apply to the resource(s).Provides a description of the format of the resource(s).Provides information about the frequency of resource updates, and the scope of those updates.Provides basic information about specific application(s) for which the resource(s) has/have been or is being used by different users.Returns the methods used to spatially represent geographic information.Returns the factor which provides a general understanding of the density of spatial data in the resource(s).Returns the status of the resource(s).Returns the main theme(s) of the resource.void
setAbstract
(InternationalString newValue) Sets a brief narrative summary of the resource(s).void
setAdditionalDocumentations
(Collection<? extends Citation> newValues) Sets other documentation associated with the resource.void
setAggregationInfo
(Collection<? extends AggregateInformation> newValues) Deprecated.As of ISO 19115:2014, replaced bysetAssociatedResources(Collection)
.void
setAssociatedResources
(Collection<? extends DefaultAssociatedResource> newValues) Sets associated resource information.void
setCitation
(Citation newValue) Sets the citation for the resource(s).void
setCredits
(Collection<? extends String> newValues) Sets the recognition of those who contributed to the resource(s).void
setDescriptiveKeywords
(Collection<? extends Keywords> newValues) Sets category keywords, their type, and reference source.void
setExtents
(Collection<? extends Extent> newValues) Sets the spatial and temporal extent of the resource.void
setGraphicOverviews
(Collection<? extends BrowseGraphic> newValues) Sets a graphic that illustrates the resource(s).void
setPointOfContacts
(Collection<? extends ResponsibleParty> newValues) Sets the means of communication with persons(s) and organizations(s) associated with the resource(s).void
setProcessingLevel
(Identifier newValue) Sets code that identifies the level of processing in the producers coding system of a resource.void
setPurpose
(InternationalString newValue) Sets a summary of the intentions with which the resource(s) was developed.void
setResourceConstraints
(Collection<? extends Constraints> newValues) Sets information about constraints which apply to the resource(s).void
setResourceFormats
(Collection<? extends Format> newValues) Sets a description of the format of the resource(s).void
setResourceMaintenances
(Collection<? extends MaintenanceInformation> newValues) Sets information about the frequency of resource updates, and the scope of those updates.void
setResourceSpecificUsages
(Collection<? extends Usage> newValues) Sets basic information about specific application(s).void
setSpatialRepresentationTypes
(Collection<? extends SpatialRepresentationType> newValues) Sets the method used to spatially represent geographic information.void
setSpatialResolutions
(Collection<? extends Resolution> newValues) Sets the factor which provides a general understanding of the density of spatial data in the resource(s).void
setStatus
(Collection<? extends Progress> newValues) Sets the status of the resource(s).void
setTopicCategories
(Collection<? extends TopicCategory> newValues) Sets the main theme(s) of the resource.Methods inherited from class ISOMetadata
getIdentifier, getIdentifierMap, getIdentifiers, getStandard, setIdentifier, transitionTo
Methods inherited from class ModifiableMetadata
checkWritePermission, collectionType, copyCollection, copyList, copyMap, copySet, deepCopy, nonNullCollection, nonNullList, nonNullMap, nonNullSet, singleton, state, writeCollection, writeList, writeMap, writeSet
Methods inherited from class AbstractMetadata
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
-
Constructor Details
-
AbstractIdentification
public AbstractIdentification()Constructs an initially empty identification. -
AbstractIdentification
Creates an identification initialized to the specified values.- Parameters:
citation
- the citation data for the resource(s), ornull
if none.abstracts
- a brief narrative summary of the content of the resource(s), ornull
if none.
-
AbstractIdentification
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.- See Also:
-
-
Method Details
-
castOrCopy
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 an instance of
DataIdentification
orServiceIdentification
, then this method delegates to thecastOrCopy(…)
method of the corresponding SIS subclass. Note that if the given object implements more than one of the above-cited interfaces, then thecastOrCopy(…)
method to be used is unspecified. - Otherwise if the given object is already an instance of
AbstractIdentification
, then it is returned unchanged. - Otherwise a new
AbstractIdentification
instance 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, ornull
if none.- Returns:
- a SIS implementation containing the values of the given object (may be the
given object itself), or
null
if the argument was null.
- If the given object is
-
getCitation
Returns the citation for the resource(s).- Specified by:
getCitation
in interfaceIdentification
- Returns:
- citation for the resource(s).
-
setCitation
Sets the citation for the resource(s).- Parameters:
newValue
- the new citation.
-
getAbstract
Returns a brief narrative summary of the resource(s).- Specified by:
getAbstract
in interfaceIdentification
- Returns:
- brief narrative summary of the resource(s).
-
setAbstract
Sets a brief narrative summary of the resource(s).- Parameters:
newValue
- the new summary of resource(s).
-
getPurpose
Returns a summary of the intentions with which the resource(s) was developed.- Specified by:
getPurpose
in interfaceIdentification
- Returns:
- the intentions with which the resource(s) was developed, or
null
.
-
setPurpose
Sets a summary of the intentions with which the resource(s) was developed.- Parameters:
newValue
- the new summary of intention.
-
getCredits
Returns the recognition of those who contributed to the resource(s).Upcoming API change — generalization
The element type may be changed to theInternationalString
interface in GeoAPI 4.0.- Specified by:
getCredits
in interfaceIdentification
- Returns:
- recognition of those who contributed to the resource(s).
-
setCredits
Sets the recognition of those who contributed to the resource(s).Upcoming API change — generalization
The element type may be changed to theInternationalString
interface in GeoAPI 4.0.- Parameters:
newValues
- the new credits.
-
getStatus
Returns the status of the resource(s).- Specified by:
getStatus
in interfaceIdentification
- Returns:
- status of the resource(s), or
null
.
-
setStatus
Sets the status of the resource(s).- Parameters:
newValues
- the new status.
-
getPointOfContacts
Returns the identification of, and means of communication with, person(s) and organizations(s) associated with the resource(s).Upcoming API change — generalization
As of ISO 19115:2014,ResponsibleParty
is replaced by theResponsibility
parent interface. This change may be applied in GeoAPI 4.0.- Specified by:
getPointOfContacts
in interfaceIdentification
- Returns:
- means of communication with person(s) and organizations(s) associated with the resource(s).
- See Also:
-
setPointOfContacts
Sets the means of communication with persons(s) and organizations(s) associated with the resource(s).Upcoming API change — generalization
As of ISO 19115:2014,ResponsibleParty
is replaced by theResponsibility
parent interface. This change may be applied in GeoAPI 4.0.- Parameters:
newValues
- the new points of contacts.
-
getSpatialRepresentationTypes
@UML(identifier="spatialRepresentationType", obligation=OPTIONAL, specification=ISO_19115) public Collection<SpatialRepresentationType> getSpatialRepresentationTypes()Returns the methods used to spatially represent geographic information.- Returns:
- methods used to spatially represent geographic information.
- Since:
- 0.5
-
setSpatialRepresentationTypes
public void setSpatialRepresentationTypes(Collection<? extends SpatialRepresentationType> newValues) Sets the method used to spatially represent geographic information.- Parameters:
newValues
- the new spatial representation types.- Since:
- 0.5
-
getSpatialResolutions
@UML(identifier="spatialResolution", obligation=OPTIONAL, specification=ISO_19115) public Collection<Resolution> getSpatialResolutions()Returns the factor which provides a general understanding of the density of spatial data in the resource(s). This element should be repeated when describing upper and lower range.- Returns:
- factor which provides a general understanding of the density of spatial data.
- Since:
- 0.5
-
setSpatialResolutions
Sets the factor which provides a general understanding of the density of spatial data in the resource(s).- Parameters:
newValues
- the new spatial resolutions.- Since:
- 0.5
-
getTopicCategories
@UML(identifier="topicCategory", obligation=CONDITIONAL, specification=ISO_19115) public Collection<TopicCategory> getTopicCategories()Returns the main theme(s) of the resource.- Returns:
- main theme(s).
- Since:
- 0.5
-
setTopicCategories
Sets the main theme(s) of the resource.- Parameters:
newValues
- the new topic categories.- Since:
- 0.5
-
getExtents
@UML(identifier="extent", obligation=CONDITIONAL, specification=ISO_19115) public Collection<Extent> getExtents()Returns the spatial and temporal extent of the resource.- Returns:
- spatial and temporal extent of the resource.
- Since:
- 0.5
-
setExtents
Sets the spatial and temporal extent of the resource.- Parameters:
newValues
- the new extents- Since:
- 0.5
-
getAdditionalDocumentations
@UML(identifier="additionalDocumentation", obligation=OPTIONAL, specification=ISO_19115) public Collection<Citation> getAdditionalDocumentations()Returns other documentation associated with the resource.- Returns:
- other documentation associated with the resource.
- Since:
- 0.5
-
setAdditionalDocumentations
Sets other documentation associated with the resource.- Parameters:
newValues
- the documentation to associate with the resource.- Since:
- 0.5
-
getProcessingLevel
@UML(identifier="processingLevel", obligation=OPTIONAL, specification=ISO_19115) public Identifier getProcessingLevel()Returns code(s) that identifies the level of processing in the producers coding system of a resource.- Returns:
- code(s) that identifies the level of processing in the producers coding system of a resource.
- Since:
- 0.5
-
setProcessingLevel
Sets code that identifies the level of processing in the producers coding system of a resource.- Parameters:
newValue
- New code that identifies the level of processing.- Since:
- 0.5
-
getResourceMaintenances
Provides information about the frequency of resource updates, and the scope of those updates.- Specified by:
getResourceMaintenances
in interfaceIdentification
- Returns:
- frequency and scope of resource updates.
-
setResourceMaintenances
Sets information about the frequency of resource updates, and the scope of those updates.- Parameters:
newValues
- the new resource maintenance info.
-
getGraphicOverviews
Provides a graphic that illustrates the resource(s) (should include a legend for the graphic).- Specified by:
getGraphicOverviews
in interfaceIdentification
- Returns:
- a graphic that illustrates the resource(s).
-
setGraphicOverviews
Sets a graphic that illustrates the resource(s).- Parameters:
newValues
- the new graphics overviews.
-
getResourceFormats
Provides a description of the format of the resource(s).- Specified by:
getResourceFormats
in interfaceIdentification
- Returns:
- description of the format.
- See Also:
-
setResourceFormats
Sets a description of the format of the resource(s).- Parameters:
newValues
- the new resource format.- See Also:
-
getDescriptiveKeywords
Provides category keywords, their type, and reference source.- Specified by:
getDescriptiveKeywords
in interfaceIdentification
- Returns:
- category keywords, their type, and reference source.
-
setDescriptiveKeywords
Sets category keywords, their type, and reference source.- Parameters:
newValues
- the new descriptive keywords.
-
getResourceSpecificUsages
Provides basic information about specific application(s) for which the resource(s) has/have been or is being used by different users.- Specified by:
getResourceSpecificUsages
in interfaceIdentification
- Returns:
- information about specific application(s) for which the resource(s) has/have been or is being used.
-
setResourceSpecificUsages
Sets basic information about specific application(s).- Parameters:
newValues
- the new resource specific usages.
-
getResourceConstraints
Provides information about constraints which apply to the resource(s).- Specified by:
getResourceConstraints
in interfaceIdentification
- Returns:
- constraints which apply to the resource(s).
-
setResourceConstraints
Sets information about constraints which apply to the resource(s).- Parameters:
newValues
- the new resource constraints.
-
getAssociatedResources
@UML(identifier="associatedResource", obligation=OPTIONAL, specification=ISO_19115) public Collection<DefaultAssociatedResource> getAssociatedResources()Provides associated resource information.Upcoming API change — generalization
The element type will be changed to theAssociatedResource
interface when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Returns:
- associated resource information.
- Since:
- 0.5
-
setAssociatedResources
Sets associated resource information.Upcoming API change — generalization
The element type will be changed to theAssociatedResource
interface when GeoAPI will provide it (tentatively in GeoAPI 3.1).- Parameters:
newValues
- the new associated resources.- Since:
- 0.5
-
getAggregationInfo
Deprecated.As of ISO 19115:2014, replaced bygetAssociatedResources()
.Provides aggregate dataset information.- Specified by:
getAggregationInfo
in interfaceIdentification
- Returns:
- aggregate dataset information.
-
setAggregationInfo
@Deprecated(since="1.0") public void setAggregationInfo(Collection<? extends AggregateInformation> newValues) Deprecated.As of ISO 19115:2014, replaced bysetAssociatedResources(Collection)
.Sets aggregate dataset information.- Parameters:
newValues
- the new aggregation info.
-
getAssociatedResources()
.