public class SchemaJavascriptBuilder extends Object
| Constructor and Description |
|---|
SchemaJavascriptBuilder(SchemaCollection schemaCollection,
NamespacePrefixAccumulator prefixAccumulator,
NameManager nameManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
complexTypeConstructorAndAccessors(QName name,
org.apache.ws.commons.schema.XmlSchemaComplexType type) |
protected void |
complexTypeSerializerBody(org.apache.ws.commons.schema.XmlSchemaComplexType type,
String elementPrefix,
JavascriptUtils bodyUtils)
Build the serialization code for a complex type.
|
void |
complexTypeSerializerFunction(QName name,
org.apache.ws.commons.schema.XmlSchemaComplexType type)
Produce a serializer function for a type.
|
void |
domDeserializerFunction(QName name,
org.apache.ws.commons.schema.XmlSchemaComplexType type)
Generate a JavaScript function that takes an element for a complex type and walks through its children
using them to fill in the values for a JavaScript object.
|
String |
generateCodeForSchema(org.apache.ws.commons.schema.XmlSchema schema) |
String |
generateCodeForSchemaCollection(org.apache.ws.commons.schema.XmlSchemaCollection collection) |
public SchemaJavascriptBuilder(SchemaCollection schemaCollection, NamespacePrefixAccumulator prefixAccumulator, NameManager nameManager)
public String generateCodeForSchemaCollection(org.apache.ws.commons.schema.XmlSchemaCollection collection)
public String generateCodeForSchema(org.apache.ws.commons.schema.XmlSchema schema)
public void complexTypeConstructorAndAccessors(QName name, org.apache.ws.commons.schema.XmlSchemaComplexType type)
public void complexTypeSerializerFunction(QName name, org.apache.ws.commons.schema.XmlSchemaComplexType type)
type - protected void complexTypeSerializerBody(org.apache.ws.commons.schema.XmlSchemaComplexType type,
String elementPrefix,
JavascriptUtils bodyUtils)
type - elementPrefix - bodyNamespaceURIs - public void domDeserializerFunction(QName name, org.apache.ws.commons.schema.XmlSchemaComplexType type)
type - schema type for the processApache CXF