OGCAbstractObject | R Documentation |
OGCAbstractObject
OGCAbstractObject
R6Class
object.
Object of R6Class
for modelling an OGCAbstractObject
verbose.info
logical
property to indicate whether INFO logs have to be displayed
verbose.debug
logical
property to indicate whether DEBUG logs have to be displayed
loggerType
logger type, either NULL
, "INFO", or "DEBUG"
wrap
internal property for XML encoding
element
element used for XML encoding
namespace
namespace used for XML encoding
defaults
default values to be used for XML encoding
attrs
attributes to be used for XML encoding
logger()
A basic logger function
OGCAbstractObject$logger(type, text)
type
type of logs message.
text
log message text to be displayed
INFO()
a basic INFO logger function
OGCAbstractObject$INFO(text)
text
log message text to be displayed
WARN()
a basic WARN logger function
OGCAbstractObject$WARN(text)
text
log message text to be displayed
ERROR()
a basic ERROR logger function
OGCAbstractObject$ERROR(text)
text
log 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 )
xml
object of class XMLInternalNode-class from XML
element
element name
namespacePrefix
namespace prefix for XML encoding
attrs
list of attributes
defaults
list of default values
wrap
whether XML element has to be wrapped during XML encoding
logger
logger
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)
field
field name
object of class R6Class
getNamespaceDefinition()
Gets the namespace definition
OGCAbstractObject$getNamespaceDefinition(recursive = FALSE)
recursive
Get 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 )
addNS
addNS controls the addition of XML namespaces
geometa_validate
Relates to geometa object ISO validation. Default is TRUE
geometa_inspire
Relates to geometa object INSPIRE validation. Default is FALSE
geometa_inspireValidator
Relates 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
depth
class nesting depth
clone()
The objects of this class are cloneable with this method.
OGCAbstractObject$clone(deep = FALSE)
deep
Whether to make a deep clone.
abstract class used by ows4R
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.