org.geotools.metadata.iso.constraint
Class LegalConstraintsImpl

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by ConstraintsImpl
                  extended by LegalConstraintsImpl
All Implemented Interfaces:
Serializable, Cloneable, Constraints, LegalConstraints

public class LegalConstraintsImpl
extends ConstraintsImpl
implements LegalConstraints

Restrictions and legal prerequisites for accessing and using the resource.

Since:
2.1
Author:
Martin Desruisseaux (IRD), Touraïvane
See Also:
Serialized Form
Module:
modules/library/metadata (gt-metadata.jar)

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

Constructor Detail

LegalConstraintsImpl

public LegalConstraintsImpl()
Constructs an initially empty constraints.


LegalConstraintsImpl

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

Since:
2.4
Method Detail

getAccessConstraints

public Collection<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 LegalConstraints

setAccessConstraints

public void setAccessConstraints(Collection<? extends 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 Collection<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 LegalConstraints

setUseConstraints

public void setUseConstraints(Collection<? extends 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 Collection<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 LegalConstraints

setOtherConstraints

public void setOtherConstraints(Collection<? extends InternationalString> newValues)
Set the other restrictions and legal prerequisites for accessing and using the resource.



Copyright © 1996-2010 Geotools. All Rights Reserved.