Class ConstraintsImpl
- Object
-
- AbstractMetadata
-
- ModifiableMetadata
-
- MetadataEntity
-
- ConstraintsImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Constraints
- Direct Known Subclasses:
LegalConstraintsImpl
,SecurityConstraintsImpl
public class ConstraintsImpl extends MetadataEntity implements Constraints
Restrictions on the access and use of a resource or metadata.- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD), Touraïvane
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class AbstractMetadata
LOGGER
-
-
Constructor Summary
Constructors Constructor Description ConstraintsImpl()
Constructs an initially empty constraints.ConstraintsImpl(Constraints source)
Constructs a metadata entity initialized with the values from the specified metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<InternationalString>
getUseLimitation()
Returns the limitation affecting the fitness for use of the resource.void
setUseLimitation(Collection<? extends InternationalString> newValues)
Set the limitation affecting the fitness for use of the resource.-
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
-
-
-
-
Constructor Detail
-
ConstraintsImpl
public ConstraintsImpl()
Constructs an initially empty constraints.
-
ConstraintsImpl
public ConstraintsImpl(Constraints source)
Constructs a metadata entity initialized with the values from the specified metadata.- Since:
- 2.4
-
-
Method Detail
-
getUseLimitation
public Collection<InternationalString> getUseLimitation()
Returns the limitation affecting the fitness for use of the resource. Example, "not to be used for navigation".- Specified by:
getUseLimitation
in interfaceConstraints
- Returns:
- Limitation affecting the fitness for use of the resource.
-
setUseLimitation
public void setUseLimitation(Collection<? extends InternationalString> newValues)
Set the limitation affecting the fitness for use of the resource. Example, "not to be used for navigation".
-
-