public class DefaultLegalConstraints extends DefaultConstraints implements LegalConstraints
MD_LegalConstraints
├─accessConstraints……
Access constraints applied to assure the protection of privacy or intellectual property.
├─useConstraints……………
Constraints applied to assure the protection of privacy or intellectual property.
└─otherConstraints………
Other restrictions and legal prerequisites for accessing and using the resource.Restriction.OTHER_RESTRICTIONS
.
XML
instead.Defined in the sis-metadata
module
identifiers
Constructor and Description |
---|
DefaultLegalConstraints()
Constructs an initially empty constraints.
|
DefaultLegalConstraints(CharSequence useLimitation)
Constructs a new constraints with the given use limitation.
|
DefaultLegalConstraints(LegalConstraints object)
Constructs a new instance initialized with the values from the specified metadata object.
|
Modifier and Type | Method and Description |
---|---|
static DefaultLegalConstraints |
castOrCopy(LegalConstraints object)
Returns a SIS metadata implementation with the values of 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.
|
castOrCopy, getConstraintApplicationScope, getGraphics, getReferences, getReleasability, getResponsibleParties, getUseLimitations, setConstraintApplicationScope, setGraphics, setReferences, setReleasability, setResponsibleParties, setUseLimitations
freeze, getIdentifierMap, getIdentifiers, getStandard
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
getUseLimitations
public DefaultLegalConstraints()
public DefaultLegalConstraints(CharSequence useLimitation)
useLimitation
- the use limitation, or null
if none.public DefaultLegalConstraints(LegalConstraints object)
object
- the metadata to copy values from, or null
if none.castOrCopy(LegalConstraints)
public static DefaultLegalConstraints castOrCopy(LegalConstraints object)
null
, then this method returns null
.DefaultLegalConstraints
, then it is returned unchanged.DefaultLegalConstraints
instance is created using the
copy constructor
and returned. Note that this is a shallow copy operation, since the other
metadata contained in the given object are not recursively copied.object
- the object to get as a SIS implementation, or null
if none.null
if the argument was null.public Collection<Restriction> getAccessConstraints()
getAccessConstraints
in interface LegalConstraints
public void setAccessConstraints(Collection<? extends Restriction> newValues)
newValues
- the new access constraints.public Collection<Restriction> getUseConstraints()
getUseConstraints
in interface LegalConstraints
public void setUseConstraints(Collection<? extends Restriction> newValues)
newValues
- the new use constraints.public Collection<InternationalString> getOtherConstraints()
getOtherConstraints
in interface LegalConstraints
public void setOtherConstraints(Collection<? extends InternationalString> newValues)
newValues
- Other constraints.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.