OGCAbstractObject
OGCAbstractObject
Object of R6Class for modelling an OGCAbstractObject
R6Class object.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
verbose.infological property to indicate whether INFO logs have to be displayed
verbose.debuglogical property to indicate whether DEBUG logs have to be displayed
loggerTypelogger type, either NULL, "INFO", or "DEBUG"
wrapinternal property for XML encoding
elementelement used for XML encoding
namespacenamespace used for XML encoding
defaultsdefault values to be used for XML encoding
attrsattributes to be used for XML encoding
logger()A basic logger function
OGCAbstractObject$logger(type, text)typetype of logs message.
textlog message text to be displayed
INFO()a basic INFO logger function
OGCAbstractObject$INFO(text)textlog message text to be displayed
WARN()a basic WARN logger function
OGCAbstractObject$WARN(text)textlog message text to be displayed
ERROR()a basic ERROR logger function
OGCAbstractObject$ERROR(text)textlog message text to be displayed
new()Initializes an object extending OGCAbstractObject
OGCAbstractObject$new(
  xml = NULL,
  element = NULL,
  namespacePrefix = NULL,
  attrs = list(),
  defaults = list(),
  wrap = FALSE,
  logger = NULL
)xmlobject of class XMLInternalNode-class from XML
elementelement name
namespacePrefixnamespace prefix for XML encoding
attrslist of attributes
defaultslist of default values
wrapwhether XML element has to be wrapped during XML encoding
loggerlogger
getClassName()Get class name
OGCAbstractObject$getClassName()an object of class character
getClass()Get class
OGCAbstractObject$getClass()an object of class R6Class
isFieldInheritedFrom()Utility to return the parent class in which field is defined
OGCAbstractObject$isFieldInheritedFrom(field)fieldfield name
object of class R6Class
getNamespaceDefinition()Gets the namespace definition
OGCAbstractObject$getNamespaceDefinition(recursive = FALSE)recursiveGet all namespace recursively
the namespace definitions as named list
encode()Encodes as XML. The addNS .
   Extra parameters related to geometa objects: geometa_validate (TRUE by default) and geometa_inspire 
   (FALSE by default) can be used to perform ISO and INSPIRE validation respectively. In that case on object of class 
   geometa::INSPIREMetadataValidator, with a proper user API key, should be specified as geometa_inspireValidator 
   argument.
OGCAbstractObject$encode(
  addNS = TRUE,
  geometa_validate = TRUE,
  geometa_inspire = FALSE,
  geometa_inspireValidator = NULL
)addNSaddNS controls the addition of XML namespaces
geometa_validateRelates to geometa object ISO validation. Default is TRUE
geometa_inspireRelates to geometa object INSPIRE validation. Default is FALSE
geometa_inspireValidatorRelates to geometa object INSPIRE validation. Default is NULL
an object of class XMLInternalNode-class from XML
print()Provides a custom print output (as tree) of the current class
OGCAbstractObject$print(..., depth = 1)...args
depthclass nesting depth
clone()The objects of this class are cloneable with this method.
OGCAbstractObject$clone(deep = FALSE)deepWhether to make a deep clone.