Class DefaultDataIdentification
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.DefaultDataIdentification
- All Implemented Interfaces:
Serializable,Emptiable,LenientComparable,IdentifiedObject,org.opengis.metadata.identification.DataIdentification,org.opengis.metadata.identification.Identification
- Direct Known Subclasses:
DataIdentification
public class DefaultDataIdentification
extends AbstractIdentification
implements org.opengis.metadata.identification.DataIdentification
Information required to identify a dataset.
The following properties are mandatory or conditional (i.e. mandatory under some circumstances)
in a well-formed metadata according ISO 19115:
MD_DataIdentification
├─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).
├─language……………………………………… Language(s) used within the dataset.
├─characterSet…………………………… Full name of the character coding standard(s) used for the dataset.
├─topicCategory………………………… Main theme(s) of the dataset.
└─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.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.3
- 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.util.InternationalStringDescription of the dataset in the producer's processing environment, including items such as the software, the computer operating system, file name, and the dataset sizeLanguage(s) and character set(s) used within the dataset.private static final longSerial number for compatibility with different versions.private org.opengis.util.InternationalStringAny other descriptive information about the dataset.Fields inherited from class org.apache.sis.metadata.iso.ISOMetadata
identifiers -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an initially empty data identification.DefaultDataIdentification(org.opengis.metadata.citation.Citation citation, CharSequence abstracts, Locale language, org.opengis.metadata.identification.TopicCategory topicCategory) Creates a data identification initialized to the specified values.DefaultDataIdentification(org.opengis.metadata.identification.DataIdentification object) Constructs a new instance initialized with the values from the specified metadata object. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultDataIdentificationcastOrCopy(org.opengis.metadata.identification.DataIdentification object) Returns a SIS metadata implementation with the values of the given arbitrary implementation.private Collection<Charset>Returns the character coding for the metadata set (used in legacy ISO 19157 format).Collection<org.opengis.metadata.identification.CharacterSet>Deprecated.private PT_LocaleGets the default locale for this record (used in ISO 19115-3 format).org.opengis.util.InternationalStringReturns a description of the resource in the producer's processing environment.Deprecated.Replaced bygetLocalesAndCharsets().keySet().Returns the language(s) and character set(s) used within the dataset.private Collection<PT_Locale>Gets the other locales for this record (used in ISO 19115-3 format).org.opengis.util.InternationalStringAny other descriptive information about the resource.voidsetCharacterSets(Collection<? extends org.opengis.metadata.identification.CharacterSet> newValues) Deprecated.Replaced by putting values ingetLocalesAndCharsets()map.private voidsetDefaultLocale(PT_Locale newValue) Sets the default locale for this record (used in ISO 19115-3 format).voidsetEnvironmentDescription(org.opengis.util.InternationalString newValue) Sets the description of the resource in the producer's processing environment.voidsetLanguages(Collection<? extends Locale> newValues) Deprecated.Replaced by putting keys ingetLocalesAndCharsets()map.voidsetLocalesAndCharsets(Map<? extends Locale, ? extends Charset> newValues) Sets the language(s) and character set(s) used within the dataset.voidsetSupplementalInformation(org.opengis.util.InternationalString newValue) Sets any other descriptive information about the resource.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.DataIdentification
getExtents, getSpatialRepresentationTypes, getSpatialResolutions, getTopicCategoriesMethods 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:
-
locales
Language(s) and character set(s) used within the dataset. -
environmentDescription
private org.opengis.util.InternationalString environmentDescriptionDescription of the dataset in the producer's processing environment, including items such as the software, the computer operating system, file name, and the dataset size -
supplementalInformation
private org.opengis.util.InternationalString supplementalInformationAny other descriptive information about the dataset.
-
-
Constructor Details
-
DefaultDataIdentification
public DefaultDataIdentification()Constructs an initially empty data identification. -
DefaultDataIdentification
public DefaultDataIdentification(org.opengis.metadata.citation.Citation citation, CharSequence abstracts, Locale language, org.opengis.metadata.identification.TopicCategory topicCategory) Creates a data identification initialized to the specified values.- Parameters:
citation- the citation data for the resource(s), ornullif none.abstracts- a brief narrative summary of the content of the resource(s), ornullif none.language- the language used within the dataset, ornullif none.topicCategory- the main theme of the dataset, ornullif none.
-
DefaultDataIdentification
public DefaultDataIdentification(org.opengis.metadata.identification.DataIdentification 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 DefaultDataIdentification castOrCopy(org.opengis.metadata.identification.DataIdentification 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
DefaultDataIdentification, then it is returned unchanged. - Otherwise a new
DefaultDataIdentificationinstance 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
-
getLocalesAndCharsets
@UML(identifier="defaultLocale+otherLocale", obligation=CONDITIONAL, specification=ISO_19115) public Map<Locale,Charset> getLocalesAndCharsets()Returns the language(s) and character set(s) used within the dataset. The first element in iteration order is the default language. All other elements, if any, are alternate language(s) used within the resource.- Returns:
- language(s) and character set(s) used within the dataset.
- Since:
- 1.0
-
setLocalesAndCharsets
Sets the language(s) and character set(s) used within the dataset. The first element in iteration order should be the default language. All other elements, if any, are alternate language(s) used within the resource.- Parameters:
newValues- the new language(s) and character set(s) used within the dataset.- Since:
- 1.0
-
getLanguages
Deprecated.Replaced bygetLocalesAndCharsets().keySet().Returns the language(s) used within the resource. The first element in iteration order shall be the default language. All other elements, if any, are alternate language(s) used within the resource.The language string representations should use ISO 639-2 language code as returned by
Locale.getISO3Language().- Specified by:
getLanguagesin interfaceorg.opengis.metadata.identification.DataIdentification- Returns:
- language(s) used.
-
setLanguages
Deprecated.Replaced by putting keys ingetLocalesAndCharsets()map.Sets the language(s) used within the resource.- Parameters:
newValues- the new languages.
-
getCharacterSets
Deprecated.Replaced bygetLocalesAndCharsets().values().Returns the character coding standard used for the dataset.Upcoming API change — JDK integration
The element type may change to theCharsetclass in GeoAPI 4.0.- Specified by:
getCharacterSetsin interfaceorg.opengis.metadata.identification.DataIdentification- Returns:
- character coding standard(s) used.
-
setCharacterSets
@Deprecated public void setCharacterSets(Collection<? extends org.opengis.metadata.identification.CharacterSet> newValues) Deprecated.Replaced by putting values ingetLocalesAndCharsets()map.Sets the character coding standard used for the dataset.Upcoming API change — JDK integration
The element type may change to theCharsetclass in GeoAPI 4.0.- Parameters:
newValues- the new character sets.
-
getEnvironmentDescription
public org.opengis.util.InternationalString getEnvironmentDescription()Returns a description of the resource in the producer's processing environment. This includes items such as the software, the computer operating system, file name, and the dataset size.- Specified by:
getEnvironmentDescriptionin interfaceorg.opengis.metadata.identification.DataIdentification- Returns:
- description of the resource in the producer's processing environment, or
null.
-
setEnvironmentDescription
public void setEnvironmentDescription(org.opengis.util.InternationalString newValue) Sets the description of the resource in the producer's processing environment.- Parameters:
newValue- the new environment description.
-
getSupplementalInformation
public org.opengis.util.InternationalString getSupplementalInformation()Any other descriptive information about the resource.- Specified by:
getSupplementalInformationin interfaceorg.opengis.metadata.identification.DataIdentification- Returns:
- other descriptive information, or
null.
-
setSupplementalInformation
public void setSupplementalInformation(org.opengis.util.InternationalString newValue) Sets any other descriptive information about the resource.- Parameters:
newValue- the new supplemental information.
-
getDefaultLocale
Gets the default locale for this record (used in ISO 19115-3 format). -
setDefaultLocale
Sets the default locale for this record (used in ISO 19115-3 format). -
getOtherLocales
Gets the other locales for this record (used in ISO 19115-3 format). -
getCharacterSet
Returns the character coding for the metadata set (used in legacy ISO 19157 format).- See Also:
-
getLocalesAndCharsets().values().