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

mapSOAPTypeToSR Documentation

Determine name of R class for an XML data type description

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

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

 def = new("ClassDefinition", name = "Foo",
                              slotTypes = list(a = new("PrimitiveSchemaType",  name = "string"),
                                               b = new("PrimitiveSchemaType",  name = "float") ))               

  mapSchemaTypeToS(def)

omegahat/XMLSchema documentation built on Jan. 17, 2024, 7:08 p.m.