|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractMetadata
ModifiableMetadata
MetadataEntity
DefaultConstraints
DefaultLegalConstraints
@ThreadSafe public class DefaultLegalConstraints
Restrictions and legal prerequisites for accessing and using the resource.
| metadata/geotk-metadata (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from class MetadataEntity |
|---|
identifiers |
| Fields inherited from class AbstractMetadata |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
DefaultLegalConstraints()
Constructs an initially empty constraints. |
|
DefaultLegalConstraints(CharSequence useLimitation)
Constructs a new constraints with the given use limitation. |
|
DefaultLegalConstraints(LegalConstraints source)
Constructs a metadata entity initialized with the values from the specified metadata. |
|
| Method Summary | |
|---|---|
static DefaultLegalConstraints |
castOrCopy(LegalConstraints object)
Returns a Geotk metadata implementation with the same values than the given arbitrary implementation. |
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)
Sets 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)
Sets the other restrictions and legal prerequisites for accessing and using the resource. |
void |
setUseConstraints(Collection<? extends Restriction> newValues)
Sets 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 DefaultConstraints |
|---|
castOrCopy, getUseLimitations, setUseLimitations |
| Methods inherited from class MetadataEntity |
|---|
getIdentifier, getIdentifierMap, getIdentifiers, getStandard |
| Methods inherited from class ModifiableMetadata |
|---|
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, prune, unmodifiable |
| Methods inherited from class AbstractMetadata |
|---|
asMap, asTree, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, parse, toString |
| Methods inherited from class Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface Constraints |
|---|
getUseLimitations |
| Constructor Detail |
|---|
public DefaultLegalConstraints()
public DefaultLegalConstraints(CharSequence useLimitation)
useLimitation - The use limitation, or null if none.public DefaultLegalConstraints(LegalConstraints source)
source - The metadata to copy, or null if none.| Method Detail |
|---|
public static DefaultLegalConstraints castOrCopy(LegalConstraints object)
null, then this method returns null.
Otherwise if the given object is already a Geotk implementation, then the given object is
returned unchanged. Otherwise a new Geotk implementation is created and initialized to the
attribute values of the given object, using a shallow copy operation
(i.e. attributes are not cloned).
object - The object to get as a Geotk implementation, or null if none.
null if the argument was null.public Collection<Restriction> getAccessConstraints()
getAccessConstraints in interface LegalConstraintspublic void setAccessConstraints(Collection<? extends Restriction> newValues)
newValues - The new access constraints.public Collection<Restriction> getUseConstraints()
getUseConstraints in interface LegalConstraintspublic void setUseConstraints(Collection<? extends Restriction> newValues)
newValues - The new use constraints.public Collection<InternationalString> getOtherConstraints()
getOtherConstraints in interface LegalConstraintspublic void setOtherConstraints(Collection<? extends InternationalString> newValues)
newValues - Other constraints.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||