mapSOAPTypeToS: Determine name of R class for an XML data type description

Description Usage Arguments Value Author(s) Examples

Description

This class is used to map a description of an XML schema type to the name of an R class, either an existing class or one that would be defined to implement the XML data type. These are used to compute the name of a new class and the types of the slots for a new class class definition.

Usage

1
mapSchemaTypeToS(type, types = list(), namespaceDefs = list())

Arguments

type

an instance of a class derived from GenericSchemaType that describes the XML data type.

types

a SchemaCollection object that is a collection of schema descriptions, each containing a collection of GenericSchemaType objects.

namespaceDefs

a collection of namespace definitions of prefix and URIs. This now comes from each SchemaTypes object in the SchemaCollection.

Value

a character string

Author(s)

Duncan Temple Lang

Examples

1
2
3
4
5
 def = new("ClassDefinition", name = "Foo",
                              slotTypes = list(a = new("PrimitiveSchemaType",  name = "string"),
                                               b = new("PrimitiveSchemaType",  name = "float") ))               

  mapSchemaTypeToS(def)

sckott/XMLSchema documentation built on May 29, 2019, 3:46 p.m.