public class SchemaUtil extends Object
Modifier and Type | Field and Description |
---|---|
static Map<String,EPTypeClass> |
TYPE_MAP |
Constructor and Description |
---|
SchemaUtil() |
Modifier and Type | Method and Description |
---|---|
static SchemaItem |
findPropertyMapping(SchemaElementComplex def,
String property)
Finds an apropiate definition for the given property, starting at the * given definition.
|
static SchemaElementComplex |
findRootElement(SchemaModel schema,
String namespace,
String elementName)
Returns the root element for a given schema given a root element name and namespace.
|
static String |
serialize(Node doc)
Serialize the given node.
|
static EPTypeClass |
toReturnType(QName resultType,
EPTypeClass optionalCastToType)
Returns the native type based on XPathConstants qname and an optional cast-to type, if provided.
|
static EPTypeClass |
toReturnType(SchemaItem item,
EventTypeXMLXSDHandler xmlxsdHandler)
Returns the Class-type of the schema item.
|
public static final Map<String,EPTypeClass> TYPE_MAP
public static EPTypeClass toReturnType(SchemaItem item, EventTypeXMLXSDHandler xmlxsdHandler)
item
- to to determine type forxmlxsdHandler
- xml-xsd handlerpublic static EPTypeClass toReturnType(QName resultType, EPTypeClass optionalCastToType)
resultType
- qnameoptionalCastToType
- null or cast-to typepublic static SchemaElementComplex findRootElement(SchemaModel schema, String namespace, String elementName)
schema
- is the schema to interrogatenamespace
- is the namespace of the root elementelementName
- is the name of the root elementpublic static SchemaItem findPropertyMapping(SchemaElementComplex def, String property)
def
- the definition to start lookingproperty
- the property to look forCopyright © 2005–2022. All rights reserved.