ISOLegalConstraints {geometa} | R Documentation |
ISOLegalConstraints
Description
ISOLegalConstraints
ISOLegalConstraints
Format
R6Class
object.
Value
Object of R6Class
for modelling an ISO LegalConstraints
Super classes
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> geometa::ISOConstraints
-> ISOLegalConstraints
Public fields
accessConstraints
accessConstraints [0..*]: ISORestriction
useConstraints
useConstraints [0..*]: ISORestriction
otherConstraints
otherConstraints [0..*]: character
Methods
Public methods
Inherited methods
geometa::geometaLogger$ERROR()
geometa::geometaLogger$INFO()
geometa::geometaLogger$WARN()
geometa::ISOAbstractObject$addFieldAttrs()
geometa::ISOAbstractObject$addListElement()
geometa::ISOAbstractObject$contains()
geometa::ISOAbstractObject$createLocalisedProperty()
geometa::ISOAbstractObject$decode()
geometa::ISOAbstractObject$delListElement()
geometa::ISOAbstractObject$encode()
geometa::ISOAbstractObject$getClass()
geometa::ISOAbstractObject$getClassName()
geometa::ISOAbstractObject$getNamespaceDefinition()
geometa::ISOAbstractObject$isDocument()
geometa::ISOAbstractObject$isFieldInheritedFrom()
geometa::ISOAbstractObject$print()
geometa::ISOAbstractObject$save()
geometa::ISOAbstractObject$setAttr()
geometa::ISOAbstractObject$setCodeList()
geometa::ISOAbstractObject$setCodeListValue()
geometa::ISOAbstractObject$setCodeSpace()
geometa::ISOAbstractObject$setHref()
geometa::ISOAbstractObject$setId()
geometa::ISOAbstractObject$setIsNull()
geometa::ISOAbstractObject$setValue()
geometa::ISOAbstractObject$validate()
geometa::ISOAbstractObject$wrapBaseElement()
geometa::ISOConstraints$addUseLimitation()
geometa::ISOConstraints$delUseLimitation()
geometa::ISOConstraints$setUseLimitation()
Method new()
Initializes object
Usage
ISOLegalConstraints$new(xml = NULL)
Arguments
xml
object of class XMLInternalNode-class
Method addAccessConstraint()
Adds access constraint
Usage
ISOLegalConstraints$addAccessConstraint(constraint)
Arguments
constraint
object of class ISORestriction
Returns
TRUE
if added, FALSE
otherwise
Method delAccessConstraint()
Deletes access constraint
Usage
ISOLegalConstraints$delAccessConstraint(constraint)
Arguments
constraint
object of class ISORestriction
Returns
TRUE
if deleted, FALSE
otherwise
Method addUseConstraint()
Adds use constraint
Usage
ISOLegalConstraints$addUseConstraint(constraint)
Arguments
constraint
object of class ISORestriction
Returns
TRUE
if added, FALSE
otherwise
Method delUseConstraint()
Deletes use constraint
Usage
ISOLegalConstraints$delUseConstraint(constraint)
Arguments
constraint
object of class ISORestriction
Returns
TRUE
if deleted, FALSE
otherwise
Method addOtherConstraint()
Adds other constraint
Usage
ISOLegalConstraints$addOtherConstraint(constraint, locales = NULL)
Arguments
constraint
object of class character
locales
list of localized names. Default is
NULL
Returns
TRUE
if added, FALSE
otherwise
Method delOtherConstraint()
Deletes other constraint
Usage
ISOLegalConstraints$delOtherConstraint(constraint, locales = NULL)
Arguments
constraint
object of class character
locales
list of localized names. Default is
NULL
Returns
TRUE
if deleted, FALSE
otherwise
Method clone()
The objects of this class are cloneable with this method.
Usage
ISOLegalConstraints$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Author(s)
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
References
ISO 19115:2003 - Geographic information – Metadata
Examples
#create object
md <- ISOLegalConstraints$new()
md$addUseLimitation("limitation1")
md$addUseLimitation("limitation2")
md$addUseLimitation("limitation3")
md$addAccessConstraint("copyright")
md$addAccessConstraint("license")
md$addUseConstraint("copyright")
md$addUseConstraint("license")
xml <- md$encode()