org.geotools.metadata.iso.constraint
Class LegalConstraintsImpl

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

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 31557 2008-09-19 20:02:35Z desruisseaux $
Author:
Martin Desruisseaux (IRD), Touraïvane
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.AbstractMetadata
LOGGER
 
Constructor Summary
LegalConstraintsImpl()
          Constructs an initially empty constraints.
LegalConstraintsImpl(org.opengis.metadata.constraint.LegalConstraints source)
          Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
 java.util.Collection<org.opengis.metadata.constraint.Restriction> 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.
 java.util.Collection<org.opengis.util.InternationalString> getOtherConstraints()
          Returns the other restrictions and legal prerequisites for accessing and using the resource.
 java.util.Collection<org.opengis.metadata.constraint.Restriction> 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.
 void setAccessConstraints(java.util.Collection<? extends org.opengis.metadata.constraint.Restriction> 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(java.util.Collection<? extends org.opengis.util.InternationalString> newValues)
          Set the other restrictions and legal prerequisites for accessing and using the resource.
 void setUseConstraints(java.util.Collection<? extends org.opengis.metadata.constraint.Restriction> 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
 
Methods inherited from class org.geotools.metadata.iso.MetadataEntity
ensureNonNull, getStandard
 
Methods inherited from class org.geotools.metadata.ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
 
Methods inherited from class org.geotools.metadata.AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.metadata.constraint.Constraints
getUseLimitation
 

Constructor Detail

LegalConstraintsImpl

public LegalConstraintsImpl()
Constructs an initially empty constraints.


LegalConstraintsImpl

public LegalConstraintsImpl(org.opengis.metadata.constraint.LegalConstraints source)
Constructs a metadata entity initialized with the values from the specified metadata.

Since:
2.4
Method Detail

getAccessConstraints

public java.util.Collection<org.opengis.metadata.constraint.Restriction> 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<? extends org.opengis.metadata.constraint.Restriction> 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<org.opengis.metadata.constraint.Restriction> 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<? extends org.opengis.metadata.constraint.Restriction> 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 java.util.Collection<org.opengis.util.InternationalString> getOtherConstraints()
Returns the other restrictions and legal prerequisites for accessing and using the resource. This method should returns a non-empty 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(java.util.Collection<? extends org.opengis.util.InternationalString> newValues)
Set the other restrictions and legal prerequisites for accessing and using the resource.



Copyright © 1996-2010 Geotools. All Rights Reserved.