org.geotools.metadata.iso.constraint
Class LegalConstraintsImpl

java.lang.Object
  extended byorg.geotools.metadata.iso.MetadataEntity
      extended byorg.geotools.metadata.iso.constraint.ConstraintsImpl
          extended byorg.geotools.metadata.iso.constraint.LegalConstraintsImpl
All Implemented Interfaces:
java.lang.Cloneable, org.opengis.metadata.constraint.Constraints, org.opengis.metadata.constraint.LegalConstraints, java.io.Serializable

public class LegalConstraintsImpl
extends ConstraintsImpl
implements org.opengis.metadata.constraint.LegalConstraints

Restrictions and legal prerequisites for accessing and using the resource.

Since:
2.1
Version:
$Id: LegalConstraintsImpl.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
LegalConstraintsImpl()
          Construct an initially empty constraints.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compare this constraints with the specified object for equality.
protected  void freeze()
          Declare this metadata and all its attributes as unmodifiable.
 java.util.Collection getAccessConstraints()
          Returns the access constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations on obtaining the resource.
 org.opengis.util.InternationalString getOtherConstraints()
          Returns the other restrictions and legal prerequisites for accessing and using the resource.
 java.util.Collection getUseConstraints()
          Returns the constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations or warnings on using the resource.
 int hashCode()
          Returns a hash code value for this constraints.
 void setAccessConstraints(java.util.Collection newValues)
          Set the access constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations on obtaining the resource.
 void setOtherConstraints(org.opengis.util.InternationalString newValue)
          Set the other restrictions and legal prerequisites for accessing and using the resource.
 void setUseConstraints(java.util.Collection newValues)
          Set the constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations or warnings on using the resource.
 
Methods inherited from class org.geotools.metadata.iso.constraint.ConstraintsImpl
getUseLimitation, setUseLimitation, toString
 
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
 
Methods inherited from interface org.opengis.metadata.constraint.Constraints
getUseLimitation
 

Constructor Detail

LegalConstraintsImpl

public LegalConstraintsImpl()
Construct an initially empty constraints.

Method Detail

getAccessConstraints

public java.util.Collection getAccessConstraints()
Returns the access constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations on obtaining the resource.

Specified by:
getAccessConstraints in interface org.opengis.metadata.constraint.LegalConstraints

setAccessConstraints

public void setAccessConstraints(java.util.Collection newValues)
Set the access constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations on obtaining the resource.


getUseConstraints

public java.util.Collection getUseConstraints()
Returns the constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations or warnings on using the resource.

Specified by:
getUseConstraints in interface org.opengis.metadata.constraint.LegalConstraints

setUseConstraints

public void setUseConstraints(java.util.Collection newValues)
Set the constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations or warnings on using the resource.


getOtherConstraints

public org.opengis.util.InternationalString getOtherConstraints()
Returns the other restrictions and legal prerequisites for accessing and using the resource. This method should returns a non-null value only if access constraints or use constraints declares other restrictions.

Specified by:
getOtherConstraints in interface org.opengis.metadata.constraint.LegalConstraints

setOtherConstraints

public void setOtherConstraints(org.opengis.util.InternationalString newValue)
Set the other restrictions and legal prerequisites for accessing and using the resource. This method should returns a non-null value only if access constraints or use constraints declares other restrictions.


freeze

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

Overrides:
freeze in class ConstraintsImpl

equals

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

Overrides:
equals in class ConstraintsImpl

hashCode

public int hashCode()
Returns a hash code value for this constraints.

Overrides:
hashCode in class ConstraintsImpl


Copyright © GeoTools. All Rights Reserved.