Class DefaultMaintenanceInformation
Object
AbstractMetadata
ModifiableMetadata
ISOMetadata
DefaultMaintenanceInformation
- All Implemented Interfaces:
- Serializable,- Emptiable,- LenientComparable,- IdentifiedObject,- 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 XMLinstead.
- Since:
- 0.3
- See Also:
Defined in the sis-metadata module
- 
Nested Class SummaryNested classes/interfaces inherited from class ModifiableMetadataModifiableMetadata.State
- 
Field SummaryFields inherited from class ISOMetadataidentifiers
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a an initially empty maintenance information.DefaultMaintenanceInformation(MaintenanceFrequency maintenanceAndUpdateFrequency) Creates a maintenance information.Constructs a new instance initialized with the values from the specified metadata object.
- 
Method SummaryModifier and TypeMethodDescriptioncastOrCopy(MaintenanceInformation object) Returns a SIS metadata implementation with the values of the given arbitrary implementation.Returns identification of, and means of communicating with, person(s) and organization(s) with responsibility for maintaining the resource.Deprecated.Returns the frequency with which changes and additions are made to the resource after the initial resource is completed.Return the date information associated with maintenance of resource.Returns information regarding specific requirements for maintaining the resource.Return the types of resource and / or extents to which the maintenance information applies.final Collection<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<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.Returns the maintenance period other than those defined.voidsetContacts(Collection<? extends ResponsibleParty> newValues) Sets identification of, and means of communicating with, person(s) and organization(s) with responsibility for maintaining the resource.voidsetDateOfNextUpdate(Date newValue) Deprecated.voidSets the frequency with which changes and additions are made to the resource after the initial resource is completed.voidsetMaintenanceDates(Collection<? extends CitationDate> newValues) Sets the date information associated with maintenance of resource.voidsetMaintenanceNotes(Collection<? extends InternationalString> newValues) Sets information regarding specific requirements for maintaining the resource.voidsetMaintenanceScopes(Collection<? extends Scope> newValues) Sets the types of resource and / or extents to which the maintenance information applies.voidsetUpdateScopeDescriptions(Collection<? extends ScopeDescription> newValues) Deprecated.As of ISO 19115:2014, replaced bysetMaintenanceScopes(Collection).voidsetUpdateScopes(Collection<? extends ScopeCode> newValues) Deprecated.As of ISO 19115:2014, replaced bysetMaintenanceScopes(Collection).voidSets the maintenance period other than those defined.Methods inherited from class ISOMetadatagetIdentifier, getIdentifierMap, getIdentifiers, getStandard, setIdentifier, transitionToMethods inherited from class ModifiableMetadatacheckWritePermission, collectionType, copyCollection, copyList, copyMap, copySet, deepCopy, nonNullCollection, nonNullList, nonNullMap, nonNullSet, singleton, state, writeCollection, writeList, writeMap, writeSetMethods inherited from class AbstractMetadataasMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
- 
Constructor Details- 
DefaultMaintenanceInformationpublic DefaultMaintenanceInformation()Creates a an initially empty maintenance information.
- 
DefaultMaintenanceInformationCreates a maintenance information.- Parameters:
- maintenanceAndUpdateFrequency- the frequency with which changes and additions are made to the resource after the initial resource is completed, or- nullif none.
 
- 
DefaultMaintenanceInformationConstructs 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, or- nullif none.
- See Also:
 
 
- 
- 
Method Details- 
castOrCopyReturns 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 DefaultMaintenanceInformationinstance 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, or- nullif 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 
- 
getMaintenanceAndUpdateFrequencyReturns the frequency with which changes and additions are made to the resource after the initial resource is completed.- Specified by:
- getMaintenanceAndUpdateFrequencyin interface- MaintenanceInformation
- Returns:
- frequency with which changes and additions are made to the resource, or null.
 
- 
setMaintenanceAndUpdateFrequencySets 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<CitationDate> getMaintenanceDates()Return the date information associated with maintenance of resource.- Returns:
- date information associated with maintenance of resource.
- Since:
- 0.5
 
- 
setMaintenanceDatesSets the date information associated with maintenance of resource.- Parameters:
- newValues- the new date information associated with maintenance of resource.
- Since:
- 0.5
 
- 
getDateOfNextUpdateDeprecated.As of ISO 19115:2014, replaced bygetMaintenanceDates()in order to enable inclusion of aDateTypeto 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:
- getDateOfNextUpdatein interface- MaintenanceInformation
- Returns:
- scheduled revision date, or null.
 
- 
setDateOfNextUpdateDeprecated.Sets the scheduled revision date for resource. This method stores the value in the maintenance dates.- Parameters:
- newValue- the new date of next update.
 
- 
getUserDefinedMaintenanceFrequencyReturns the maintenance period other than those defined.- Specified by:
- getUserDefinedMaintenanceFrequencyin interface- MaintenanceInformation
- Returns:
- the maintenance period, or null.
 
- 
setUserDefinedMaintenanceFrequencySets 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<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
 
- 
setMaintenanceScopesSets 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
 
- 
getUpdateScopesDeprecated.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:
- getUpdateScopesin interface- MaintenanceInformation
- Returns:
- scope of data to which maintenance is applied.
 
- 
setUpdateScopesDeprecated.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.
 
- 
getUpdateScopeDescriptionsDeprecated.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:
- getUpdateScopeDescriptionsin interface- MaintenanceInformation
- Returns:
- additional information about the range or extent of the resource.
 
- 
setUpdateScopeDescriptions@Deprecated public void setUpdateScopeDescriptions(Collection<? extends 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.
 
- 
getMaintenanceNotesReturns information regarding specific requirements for maintaining the resource.- Specified by:
- getMaintenanceNotesin interface- MaintenanceInformation
- Returns:
- information regarding specific requirements for maintaining the resource.
 
- 
setMaintenanceNotesSets information regarding specific requirements for maintaining the resource.- Parameters:
- newValues- the new maintenance notes.
 
- 
getContactsReturns 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,ResponsiblePartyis replaced by theResponsibilityparent interface. This change may be applied in GeoAPI 4.0.- Specified by:
- getContactsin interface- MaintenanceInformation
- Returns:
- means of communicating with person(s) and organization(s) with responsibility for maintaining the resource.
 
- 
setContactsSets 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,ResponsiblePartyis replaced by theResponsibilityparent 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.
 
 
- 
getMaintenanceDates()in order to enable inclusion of aDateTypeto describe the type of the date.