org.geotools.metadata.iso
Class ExtendedElementInformationImpl

java.lang.Object
  extended byorg.geotools.metadata.iso.MetadataEntity
      extended byorg.geotools.metadata.iso.ExtendedElementInformationImpl
All Implemented Interfaces:
java.lang.Cloneable, org.opengis.metadata.ExtendedElementInformation, java.io.Serializable

public class ExtendedElementInformationImpl
extends MetadataEntity
implements org.opengis.metadata.ExtendedElementInformation

New metadata element, not found in ISO 19115, which is required to describe geographic data.

Since:
2.1
Version:
$Id: ExtendedElementInformationImpl.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux, Toura?vane
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.iso.MetadataEntity
LOGGER
 
Constructor Summary
ExtendedElementInformationImpl()
          Construct an initially empty extended element information.
ExtendedElementInformationImpl(java.lang.String name, org.opengis.util.InternationalString definition, org.opengis.util.InternationalString condition, org.opengis.metadata.Datatype datatype, java.util.Collection parentEntity, org.opengis.util.InternationalString rule, java.util.Collection sources)
          Create an extended element information initialized to the given values.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compare this ExtendedElementInformation with the specified object for equality.
protected  void freeze()
          Declare this metadata and all its attributes as unmodifiable.
 org.opengis.util.InternationalString getCondition()
          Condition under which the extended element is mandatory.
 org.opengis.metadata.Datatype getDataType()
          Code which identifies the kind of value provided in the extended element.
 org.opengis.util.InternationalString getDefinition()
          Definition of the extended element.
 java.lang.Integer getDomainCode()
          Three digit code assigned to the extended element.
 org.opengis.util.InternationalString getDomainValue()
          Valid values that can be assigned to the extended element.
 java.lang.Integer getMaximumOccurrence()
          Maximum occurrence of the extended element.
 java.lang.String getName()
          Name of the extended metadata element.
 org.opengis.metadata.Obligation getObligation()
          Obligation of the extended element.
 java.util.Collection getParentEntity()
          Name of the metadata entity(s) under which this extended metadata element may appear.
 java.util.Collection getRationales()
          Reason for creating the extended element.
 org.opengis.util.InternationalString getRule()
          Specifies how the extended element relates to other existing elements and entities.
 java.lang.String getShortName()
          Short form suitable for use in an implementation method such as XML or SGML.
 java.util.Collection getSources()
          Name of the person or organization creating the extended element.
 int hashCode()
          Returns a hash code value for this object.
 void setCondition(org.opengis.util.InternationalString newValue)
          Set the condition under which the extended element is mandatory.
 void setDataType(org.opengis.metadata.Datatype newValue)
          Set the code which identifies the kind of value provided in the extended element.
 void setDefinition(org.opengis.util.InternationalString newValue)
          Set the definition of the extended element.
 void setDomainCode(java.lang.Integer newValue)
          Set a three digit code assigned to the extended element.
 void setDomainValue(org.opengis.util.InternationalString newValue)
          Set the valid values that can be assigned to the extended element.
 void setMaximumOccurrence(java.lang.Integer newValue)
          Set the maximum occurrence of the extended element.
 void setName(java.lang.String newValue)
          Set the name of the extended metadata element.
 void setObligation(org.opengis.metadata.Obligation newValue)
          Set the obligation of the extended element.
 void setParentEntity(java.util.Collection newValues)
          Set the name of the metadata entity(s) under which this extended metadata element may appear.
 void setRationales(java.util.Collection newValues)
          Set the reason for creating the extended element.
 void setRule(org.opengis.util.InternationalString newValue)
          Set how the extended element relates to other existing elements and entities.
 void setShortName(java.lang.String newValue)
          Set a short form suitable for use in an implementation method such as XML or SGML.
 void setSources(java.util.Collection newValues)
          Set the name of the person or organization creating the extended element.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class org.geotools.metadata.iso.MetadataEntity
appendLineSeparator, checkWritePermission, copyCollection, isModifiable, nonNullCollection, unmodifiable, unmodifiable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtendedElementInformationImpl

public ExtendedElementInformationImpl()
Construct an initially empty extended element information.


ExtendedElementInformationImpl

public ExtendedElementInformationImpl(java.lang.String name,
                                      org.opengis.util.InternationalString definition,
                                      org.opengis.util.InternationalString condition,
                                      org.opengis.metadata.Datatype datatype,
                                      java.util.Collection parentEntity,
                                      org.opengis.util.InternationalString rule,
                                      java.util.Collection sources)
Create an extended element information initialized to the given values.

Method Detail

getName

public java.lang.String getName()
Name of the extended metadata element.

Specified by:
getName in interface org.opengis.metadata.ExtendedElementInformation

setName

public void setName(java.lang.String newValue)
Set the name of the extended metadata element.


getShortName

public java.lang.String getShortName()
Short form suitable for use in an implementation method such as XML or SGML. NOTE: other methods may be used. Returns if the data type is code list element.

Specified by:
getShortName in interface org.opengis.metadata.ExtendedElementInformation

setShortName

public void setShortName(java.lang.String newValue)
Set a short form suitable for use in an implementation method such as XML or SGML.


getDomainCode

public java.lang.Integer getDomainCode()
Three digit code assigned to the extended element. Returns a non-null value only if the data type is code list element.

Specified by:
getDomainCode in interface org.opengis.metadata.ExtendedElementInformation

setDomainCode

public void setDomainCode(java.lang.Integer newValue)
Set a three digit code assigned to the extended element.


getDefinition

public org.opengis.util.InternationalString getDefinition()
Definition of the extended element.

Specified by:
getDefinition in interface org.opengis.metadata.ExtendedElementInformation

setDefinition

public void setDefinition(org.opengis.util.InternationalString newValue)
Set the definition of the extended element.


getObligation

public org.opengis.metadata.Obligation getObligation()
Obligation of the extended element.

Specified by:
getObligation in interface org.opengis.metadata.ExtendedElementInformation

setObligation

public void setObligation(org.opengis.metadata.Obligation newValue)
Set the obligation of the extended element.


getCondition

public org.opengis.util.InternationalString getCondition()
Condition under which the extended element is mandatory. Returns a non-null value only if the obligation is conditional.

Specified by:
getCondition in interface org.opengis.metadata.ExtendedElementInformation

setCondition

public void setCondition(org.opengis.util.InternationalString newValue)
Set the condition under which the extended element is mandatory.


getDataType

public org.opengis.metadata.Datatype getDataType()
Code which identifies the kind of value provided in the extended element.

Specified by:
getDataType in interface org.opengis.metadata.ExtendedElementInformation

setDataType

public void setDataType(org.opengis.metadata.Datatype newValue)
Set the code which identifies the kind of value provided in the extended element.


getMaximumOccurrence

public java.lang.Integer getMaximumOccurrence()
Maximum occurrence of the extended element. Returns if it doesn't apply, for example if the data type is enumeration, code list or code list element.

Specified by:
getMaximumOccurrence in interface org.opengis.metadata.ExtendedElementInformation

setMaximumOccurrence

public void setMaximumOccurrence(java.lang.Integer newValue)
Set the maximum occurrence of the extended element.


getDomainValue

public org.opengis.util.InternationalString getDomainValue()
Valid values that can be assigned to the extended element. Returns if it doesn't apply, for example if the data type is enumeration, code list or code list element.

Specified by:
getDomainValue in interface org.opengis.metadata.ExtendedElementInformation

setDomainValue

public void setDomainValue(org.opengis.util.InternationalString newValue)
Set the valid values that can be assigned to the extended element.


getParentEntity

public java.util.Collection getParentEntity()
Name of the metadata entity(s) under which this extended metadata element may appear. The name(s) may be standard metadata element(s) or other extended metadata element(s).

Specified by:
getParentEntity in interface org.opengis.metadata.ExtendedElementInformation

setParentEntity

public void setParentEntity(java.util.Collection newValues)
Set the name of the metadata entity(s) under which this extended metadata element may appear.


getRule

public org.opengis.util.InternationalString getRule()
Specifies how the extended element relates to other existing elements and entities.

Specified by:
getRule in interface org.opengis.metadata.ExtendedElementInformation

setRule

public void setRule(org.opengis.util.InternationalString newValue)
Set how the extended element relates to other existing elements and entities.


getRationales

public java.util.Collection getRationales()
Reason for creating the extended element.

Specified by:
getRationales in interface org.opengis.metadata.ExtendedElementInformation

setRationales

public void setRationales(java.util.Collection newValues)
Set the reason for creating the extended element.


getSources

public java.util.Collection getSources()
Name of the person or organization creating the extended element.

Specified by:
getSources in interface org.opengis.metadata.ExtendedElementInformation

setSources

public void setSources(java.util.Collection newValues)
Set the name of the person or organization creating the extended element.


freeze

protected void freeze()
Declare this metadata and all its attributes as unmodifiable.

Overrides:
freeze in class MetadataEntity

equals

public boolean equals(java.lang.Object object)
Compare this ExtendedElementInformation with the specified object for equality.


hashCode

public int hashCode()
Returns a hash code value for this object. For performance reason, this method do not uses all attributes for computing the hash code. Instead, it uses the attributes that are the most likely to be unique.


toString

public java.lang.String toString()
Returns a string representation of this object.



Copyright © GeoTools. All Rights Reserved.