Class DefaultMaintenanceInformation
java.lang.Object
org.apache.sis.metadata.AbstractMetadata
org.apache.sis.metadata.ModifiableMetadata
org.apache.sis.metadata.iso.ISOMetadata
org.apache.sis.metadata.iso.maintenance.DefaultMaintenanceInformation
- All Implemented Interfaces:
Serializable
,Emptiable
,LenientComparable
,IdentifiedObject
,org.opengis.metadata.maintenance.MaintenanceInformation
public class DefaultMaintenanceInformation
extends ISOMetadata
implements org.opengis.metadata.maintenance.MaintenanceInformation
Information about the scope and frequency of updating.
The following property is mandatory in a well-formed metadata according ISO 19115:
MD_MaintenanceInformation
└─maintenanceAndUpdateFrequency……
Frequency with which changes and additions are made to the resource.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
- 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.ResponsibleParty>
Identification of, and means of communicating with, person(s) and organization(s) with responsibility for maintaining the resource.private org.opengis.metadata.maintenance.MaintenanceFrequency
Frequency with which changes and additions are made to the resource after the initial resource is completed.private Collection<org.opengis.metadata.citation.CitationDate>
Date information associated with maintenance of resource.private Collection<org.opengis.util.InternationalString>
Information regarding specific requirements for maintaining the resource.private Collection<org.opengis.metadata.quality.Scope>
Type of resource and / or extent to which the maintenance information applies.private static final org.opengis.metadata.citation.DateType
New code list item defined in ISO 19115:2014.private static final long
Serial number for inter-operability with different versions.private org.opengis.temporal.PeriodDuration
Maintenance period other than those defined, in milliseconds.Fields inherited from class org.apache.sis.metadata.iso.ISOMetadata
identifiers
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a an initially empty maintenance information.DefaultMaintenanceInformation
(org.opengis.metadata.maintenance.MaintenanceFrequency maintenanceAndUpdateFrequency) Creates a maintenance information.DefaultMaintenanceInformation
(org.opengis.metadata.maintenance.MaintenanceInformation object) Constructs a new instance initialized with the values from the specified metadata object. -
Method Summary
Modifier and TypeMethodDescriptioncastOrCopy
(org.opengis.metadata.maintenance.MaintenanceInformation object) Returns a SIS metadata implementation with the values of the given arbitrary implementation.Collection<org.opengis.metadata.citation.ResponsibleParty>
Returns identification of, and means of communicating with, person(s) and organization(s) with responsibility for maintaining the resource.Deprecated.org.opengis.metadata.maintenance.MaintenanceFrequency
Returns the frequency with which changes and additions are made to the resource after the initial resource is completed.private Collection<org.opengis.metadata.citation.CitationDate>
Invoked by JAXB at both marshalling and unmarshalling time.Collection<org.opengis.metadata.citation.CitationDate>
Return the date information associated with maintenance of resource.Collection<org.opengis.util.InternationalString>
Returns information regarding specific requirements for maintaining the resource.private Collection<org.opengis.metadata.quality.Scope>
Collection<org.opengis.metadata.quality.Scope>
Return the types of resource and / or extents to which the maintenance information applies.final Collection<org.opengis.metadata.maintenance.ScopeDescription>
Deprecated.As of ISO 19115:2014,getUpdateScopes()
andgetUpdateScopeDescriptions()
were combined intogetMaintenanceScopes()
in order to allow specifying a scope that includes a spatial and temporal extent.final Collection<org.opengis.metadata.maintenance.ScopeCode>
Deprecated.As of ISO 19115:2014,getUpdateScopes()
andgetUpdateScopeDescriptions()
were combined intogetMaintenanceScopes()
in order to allow specifying a scope that includes a spatial and temporal extent.org.opengis.temporal.PeriodDuration
Returns the maintenance period other than those defined.void
setContacts
(Collection<? extends org.opengis.metadata.citation.ResponsibleParty> newValues) Sets identification of, and means of communicating with, person(s) and organization(s) with responsibility for maintaining the resource.void
setDateOfNextUpdate
(Date newValue) Deprecated.void
setMaintenanceAndUpdateFrequency
(org.opengis.metadata.maintenance.MaintenanceFrequency newValue) Sets the frequency with which changes and additions are made to the resource after the initial resource is completed.void
setMaintenanceDates
(Collection<? extends org.opengis.metadata.citation.CitationDate> newValues) Sets the date information associated with maintenance of resource.void
setMaintenanceNotes
(Collection<? extends org.opengis.util.InternationalString> newValues) Sets information regarding specific requirements for maintaining the resource.void
setMaintenanceScopes
(Collection<? extends org.opengis.metadata.quality.Scope> newValues) Sets the types of resource and / or extents to which the maintenance information applies.void
setUpdateScopeDescriptions
(Collection<? extends org.opengis.metadata.maintenance.ScopeDescription> newValues) Deprecated.As of ISO 19115:2014, replaced bysetMaintenanceScopes(Collection)
.void
setUpdateScopes
(Collection<? extends org.opengis.metadata.maintenance.ScopeCode> newValues) Deprecated.As of ISO 19115:2014, replaced bysetMaintenanceScopes(Collection)
.void
setUserDefinedMaintenanceFrequency
(org.opengis.temporal.PeriodDuration newValue) Sets the maintenance period other than those defined.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 inter-operability with different versions.- See Also:
-
NEXT_UPDATE
private static final org.opengis.metadata.citation.DateType NEXT_UPDATENew code list item defined in ISO 19115:2014. -
maintenanceAndUpdateFrequency
private org.opengis.metadata.maintenance.MaintenanceFrequency maintenanceAndUpdateFrequencyFrequency with which changes and additions are made to the resource after the initial resource is completed. -
maintenanceDates
Date information associated with maintenance of resource. -
userDefinedMaintenanceFrequency
private org.opengis.temporal.PeriodDuration userDefinedMaintenanceFrequencyMaintenance period other than those defined, in milliseconds. -
maintenanceScopes
Type of resource and / or extent to which the maintenance information applies. -
maintenanceNotes
Information regarding specific requirements for maintaining the resource. -
contacts
Identification of, and means of communicating with, person(s) and organization(s) with responsibility for maintaining the resource.
-
-
Constructor Details
-
DefaultMaintenanceInformation
public DefaultMaintenanceInformation()Creates a an initially empty maintenance information. -
DefaultMaintenanceInformation
public DefaultMaintenanceInformation(org.opengis.metadata.maintenance.MaintenanceFrequency maintenanceAndUpdateFrequency) Creates a maintenance information.- Parameters:
maintenanceAndUpdateFrequency
- the frequency with which changes and additions are made to the resource after the initial resource is completed, ornull
if none.
-
DefaultMaintenanceInformation
public DefaultMaintenanceInformation(org.opengis.metadata.maintenance.MaintenanceInformation 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, ornull
if none.- See Also:
-
-
Method Details
-
castOrCopy
public static DefaultMaintenanceInformation castOrCopy(org.opengis.metadata.maintenance.MaintenanceInformation 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
DefaultMaintenanceInformation
, then it is returned unchanged. - Otherwise a new
DefaultMaintenanceInformation
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
-
getMaintenanceAndUpdateFrequency
public org.opengis.metadata.maintenance.MaintenanceFrequency getMaintenanceAndUpdateFrequency()Returns the frequency with which changes and additions are made to the resource after the initial resource is completed.- Specified by:
getMaintenanceAndUpdateFrequency
in interfaceorg.opengis.metadata.maintenance.MaintenanceInformation
- Returns:
- frequency with which changes and additions are made to the resource, or
null
.
-
setMaintenanceAndUpdateFrequency
public void setMaintenanceAndUpdateFrequency(org.opengis.metadata.maintenance.MaintenanceFrequency newValue) Sets the frequency with which changes and additions are made to the resource after the initial resource is completed.- Parameters:
newValue
- the new maintenance frequency.
-
getMaintenanceDates
@UML(identifier="maintenanceDate", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.citation.CitationDate> getMaintenanceDates()Return the date information associated with maintenance of resource.- Returns:
- date information associated with maintenance of resource.
- Since:
- 0.5
-
setMaintenanceDates
public void setMaintenanceDates(Collection<? extends org.opengis.metadata.citation.CitationDate> newValues) Sets the date information associated with maintenance of resource.- Parameters:
newValues
- the new date information associated with maintenance of resource.- Since:
- 0.5
-
getDateOfNextUpdate
Deprecated.As of ISO 19115:2014, replaced bygetMaintenanceDates()
in order to enable inclusion of aDateType
to describe the type of the date. The associated date type isDateType.valueOf("NEXT_UPDATE")
.Returns the scheduled revision date for resource. This method fetches the value from the maintenance dates.- Specified by:
getDateOfNextUpdate
in interfaceorg.opengis.metadata.maintenance.MaintenanceInformation
- Returns:
- scheduled revision date, or
null
.
-
setDateOfNextUpdate
Deprecated.Sets the scheduled revision date for resource. This method stores the value in the maintenance dates.- Parameters:
newValue
- the new date of next update.
-
getUserDefinedMaintenanceFrequency
public org.opengis.temporal.PeriodDuration getUserDefinedMaintenanceFrequency()Returns the maintenance period other than those defined.- Specified by:
getUserDefinedMaintenanceFrequency
in interfaceorg.opengis.metadata.maintenance.MaintenanceInformation
- Returns:
- the maintenance period, or
null
.
-
setUserDefinedMaintenanceFrequency
public void setUserDefinedMaintenanceFrequency(org.opengis.temporal.PeriodDuration newValue) Sets the maintenance period other than those defined.- Parameters:
newValue
- the new user defined maintenance frequency.
-
getMaintenanceScopes
@UML(identifier="maintenanceScope", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.quality.Scope> getMaintenanceScopes()Return the types of resource and / or extents to which the maintenance information applies.- Returns:
- type of resource and / or extent to which the maintenance information applies.
- Since:
- 0.5
-
setMaintenanceScopes
public void setMaintenanceScopes(Collection<? extends org.opengis.metadata.quality.Scope> newValues) Sets the types of resource and / or extents to which the maintenance information applies.- Parameters:
newValues
- the types of resource and / or extents to which the maintenance information applies.- Since:
- 0.5
-
getUpdateScopes
Deprecated.As of ISO 19115:2014,getUpdateScopes()
andgetUpdateScopeDescriptions()
were combined intogetMaintenanceScopes()
in order to allow specifying a scope that includes a spatial and temporal extent.Returns the scope of data to which maintenance is applied. This method fetches the values from the maintenance scopes.- Specified by:
getUpdateScopes
in interfaceorg.opengis.metadata.maintenance.MaintenanceInformation
- Returns:
- scope of data to which maintenance is applied.
-
setUpdateScopes
@Deprecated public void setUpdateScopes(Collection<? extends org.opengis.metadata.maintenance.ScopeCode> newValues) Deprecated.As of ISO 19115:2014, replaced bysetMaintenanceScopes(Collection)
.Sets the scope of data to which maintenance is applied. This method stores the values in the maintenance scopes.- Parameters:
newValues
- the new update scopes.
-
getUpdateScopeDescriptions
@Deprecated public final Collection<org.opengis.metadata.maintenance.ScopeDescription> getUpdateScopeDescriptions()Deprecated.As of ISO 19115:2014,getUpdateScopes()
andgetUpdateScopeDescriptions()
were combined intogetMaintenanceScopes()
in order to allow specifying a scope that includes a spatial and temporal extent.Returns additional information about the range or extent of the resource. This method fetches the values from the maintenance scopes.- Specified by:
getUpdateScopeDescriptions
in interfaceorg.opengis.metadata.maintenance.MaintenanceInformation
- Returns:
- additional information about the range or extent of the resource.
-
setUpdateScopeDescriptions
@Deprecated public void setUpdateScopeDescriptions(Collection<? extends org.opengis.metadata.maintenance.ScopeDescription> newValues) Deprecated.As of ISO 19115:2014, replaced bysetMaintenanceScopes(Collection)
.Sets additional information about the range or extent of the resource. This method stores the values in the maintenance scopes.- Parameters:
newValues
- the new update scope descriptions.
-
getMaintenanceNotes
Returns information regarding specific requirements for maintaining the resource.- Specified by:
getMaintenanceNotes
in interfaceorg.opengis.metadata.maintenance.MaintenanceInformation
- Returns:
- information regarding specific requirements for maintaining the resource.
-
setMaintenanceNotes
public void setMaintenanceNotes(Collection<? extends org.opengis.util.InternationalString> newValues) Sets information regarding specific requirements for maintaining the resource.- Parameters:
newValues
- the new maintenance notes.
-
getContacts
Returns identification of, and means of communicating with, person(s) and organization(s) with responsibility for maintaining the resource.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:
getContacts
in interfaceorg.opengis.metadata.maintenance.MaintenanceInformation
- Returns:
- means of communicating with person(s) and organization(s) with responsibility for maintaining the resource.
-
setContacts
public void setContacts(Collection<? extends org.opengis.metadata.citation.ResponsibleParty> newValues) Sets identification of, and means of communicating with, person(s) and organization(s) with responsibility for maintaining the resource.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 identification of person(s) and organization(s) with responsibility for maintaining the resource.
-
getMaintenanceDate
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. -
getMaintenanceScope
-
getMaintenanceDates()
in order to enable inclusion of aDateType
to describe the type of the date.