ISOLegalConstraints function

ISOLegalConstraints

ISOLegalConstraints

ISOLegalConstraints

ISOLegalConstraints class

Format

R6Class object.

Returns

Object of R6Class for modelling an ISO LegalConstraints

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()

References

Author(s)

Emmanuel Blondel emmanuel.blondel1@gmail.com

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

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.

  • Maintainer: Emmanuel Blondel
  • License: MIT + file LICENSE
  • Last published: 2025-01-29