org.geotoolkit.metadata.iso.maintenance
Class DefaultMaintenanceInformation

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by DefaultMaintenanceInformation
All Implemented Interfaces:
Serializable, Cloneable, LenientComparable, IdentifiedObject, MaintenanceInformation

@ThreadSafe
public class DefaultMaintenanceInformation
extends MetadataEntity
implements MaintenanceInformation

Information about the scope and frequency of updating.

Since:
2.1
Version:
3.19
Author:
Martin Desruisseaux (IRD, Geomatys), Touraïvane (IRD), Cédric Briançon (Geomatys)
See Also:
Serialized Form
Module:
metadata/geotk-metadata (download)    View source code for this class

Field Summary
 
Fields inherited from class MetadataEntity
identifiers
 
Fields inherited from class AbstractMetadata
LOGGER
 
Constructor Summary
DefaultMaintenanceInformation()
          Creates a an initially empty maintenance information.
DefaultMaintenanceInformation(MaintenanceFrequency maintenanceAndUpdateFrequency)
          Creates a maintenance information.
DefaultMaintenanceInformation(MaintenanceInformation source)
          Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
static DefaultMaintenanceInformation castOrCopy(MaintenanceInformation object)
          Returns a Geotk metadata implementation with the same values than the given arbitrary implementation.
 Collection<ResponsibleParty> getContacts()
          Returns identification of, and means of communicating with, person(s) and organization(s) with responsibility for maintaining the metadata.
 Date getDateOfNextUpdate()
          Returns the scheduled revision date for resource.
 MaintenanceFrequency getMaintenanceAndUpdateFrequency()
          Returns the frequency with which changes and additions are made to the resource after the initial resource is completed.
 Collection<InternationalString> getMaintenanceNotes()
          Returns information regarding specific requirements for maintaining the resource.
 Collection<ScopeDescription> getUpdateScopeDescriptions()
          Returns additional information about the range or extent of the resource.
 Collection<ScopeCode> getUpdateScopes()
          Returns the scope of data to which maintenance is applied.
 PeriodDuration getUserDefinedMaintenanceFrequency()
          Returns the maintenance period other than those defined.
 void setContacts(Collection<? extends ResponsibleParty> newValues)
          Sets identification of, and means of communicating with, person(s) and organization(s) with responsibility for maintaining the metadata.
 void setDateOfNextUpdate(Date newValue)
          Sets the scheduled revision date for resource.
 void setMaintenanceAndUpdateFrequency(MaintenanceFrequency newValue)
          Sets the frequency with which changes and additions are made to the resource after the initial resource is completed.
 void setMaintenanceNotes(Collection<? extends InternationalString> newValues)
          Sets information regarding specific requirements for maintaining the resource.
 void setUpdateScopeDescriptions(Collection<? extends ScopeDescription> newValues)
          Sets additional information about the range or extent of the resource.
 void setUpdateScopes(Collection<? extends ScopeCode> newValues)
          Sets the scope of data to which maintenance is applied.
 void setUserDefinedMaintenanceFrequency(PeriodDuration newValue)
          Sets the maintenance period other than those defined.
 
Methods inherited from class MetadataEntity
getIdentifier, getIdentifierMap, getIdentifiers, getStandard
 
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, prune, unmodifiable
 
Methods inherited from class AbstractMetadata
asMap, asTree, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, parse, toString
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultMaintenanceInformation

public DefaultMaintenanceInformation()
Creates a an initially empty maintenance information.


DefaultMaintenanceInformation

public DefaultMaintenanceInformation(MaintenanceInformation source)
Constructs a metadata entity initialized with the values from the specified metadata.

Parameters:
source - The metadata to copy, or null if none.
Since:
2.4

DefaultMaintenanceInformation

public DefaultMaintenanceInformation(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.
Method Detail

castOrCopy

public static DefaultMaintenanceInformation castOrCopy(MaintenanceInformation object)
Returns a Geotk metadata implementation with the same values than the given arbitrary implementation. If the given object is null, then this method returns null. Otherwise if the given object is already a Geotk implementation, then the given object is returned unchanged. Otherwise a new Geotk implementation is created and initialized to the attribute values of the given object, using a shallow copy operation (i.e. attributes are not cloned).

Parameters:
object - The object to get as a Geotk implementation, or null if none.
Returns:
A Geotk implementation containing the values of the given object (may be the given object itself), or null if the argument was null.
Since:
3.18

getMaintenanceAndUpdateFrequency

public 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 interface MaintenanceInformation

setMaintenanceAndUpdateFrequency

public void setMaintenanceAndUpdateFrequency(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.

getDateOfNextUpdate

public Date getDateOfNextUpdate()
Returns the scheduled revision date for resource.

Specified by:
getDateOfNextUpdate in interface MaintenanceInformation

setDateOfNextUpdate

public void setDateOfNextUpdate(Date newValue)
Sets the scheduled revision date for resource.

Parameters:
newValue - The new date of next update.

getUserDefinedMaintenanceFrequency

public PeriodDuration getUserDefinedMaintenanceFrequency()
Returns the maintenance period other than those defined.

Specified by:
getUserDefinedMaintenanceFrequency in interface MaintenanceInformation
TODO:
needs an implementation of org.opengis.temporal modules to anntote this parameter.

setUserDefinedMaintenanceFrequency

public void setUserDefinedMaintenanceFrequency(PeriodDuration newValue)
Sets the maintenance period other than those defined.

Parameters:
newValue - The new user defined maintenance frequency.

getUpdateScopes

public Collection<ScopeCode> getUpdateScopes()
Returns the scope of data to which maintenance is applied.

Specified by:
getUpdateScopes in interface MaintenanceInformation
Since:
2.4

setUpdateScopes

public void setUpdateScopes(Collection<? extends ScopeCode> newValues)
Sets the scope of data to which maintenance is applied.

Parameters:
newValues - The new update scopes.
Since:
2.4

getUpdateScopeDescriptions

public Collection<ScopeDescription> getUpdateScopeDescriptions()
Returns additional information about the range or extent of the resource.

Specified by:
getUpdateScopeDescriptions in interface MaintenanceInformation
Since:
2.4

setUpdateScopeDescriptions

public void setUpdateScopeDescriptions(Collection<? extends ScopeDescription> newValues)
Sets additional information about the range or extent of the resource.

Parameters:
newValues - The new update scope descriptions.
Since:
2.4

getMaintenanceNotes

public Collection<InternationalString> getMaintenanceNotes()
Returns information regarding specific requirements for maintaining the resource.

Specified by:
getMaintenanceNotes in interface MaintenanceInformation
Since:
2.4

setMaintenanceNotes

public void setMaintenanceNotes(Collection<? extends InternationalString> newValues)
Sets information regarding specific requirements for maintaining the resource.

Parameters:
newValues - The new maintenance notes.
Since:
2.4

getContacts

public Collection<ResponsibleParty> getContacts()
Returns identification of, and means of communicating with, person(s) and organization(s) with responsibility for maintaining the metadata.

Specified by:
getContacts in interface MaintenanceInformation
Since:
2.4

setContacts

public void setContacts(Collection<? extends ResponsibleParty> newValues)
Sets identification of, and means of communicating with, person(s) and organization(s) with responsibility for maintaining the metadata.

Parameters:
newValues - The new contacts
Since:
2.4


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.