|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cxf.javascript.types.SchemaJavascriptBuilder
public class SchemaJavascriptBuilder
Generate Javascript for a schema, and provide information needed for the service builder. As of this pass, there is no support for non-sequence types or for attribute mappings.
Constructor Summary | |
---|---|
SchemaJavascriptBuilder(SchemaCollection schemaCollection,
NamespacePrefixAccumulator prefixAccumulator,
NameManager nameManager)
|
Method Summary | |
---|---|
void |
complexTypeConstructorAndAccessors(javax.xml.namespace.QName name,
org.apache.ws.commons.schema.XmlSchemaComplexType type)
|
protected void |
complexTypeSerializerBody(org.apache.ws.commons.schema.XmlSchemaComplexType type,
java.lang.String elementPrefix,
JavascriptUtils bodyUtils)
Build the serialization code for a complex type. |
void |
complexTypeSerializerFunction(javax.xml.namespace.QName name,
org.apache.ws.commons.schema.XmlSchemaComplexType type)
Produce a serializer function for a type. |
void |
domDeserializerFunction(javax.xml.namespace.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. |
java.lang.String |
generateCodeForSchema(SchemaInfo schema)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaJavascriptBuilder(SchemaCollection schemaCollection, NamespacePrefixAccumulator prefixAccumulator, NameManager nameManager)
Method Detail |
---|
public java.lang.String generateCodeForSchema(SchemaInfo schema)
public void complexTypeConstructorAndAccessors(javax.xml.namespace.QName name, org.apache.ws.commons.schema.XmlSchemaComplexType type)
public void complexTypeSerializerFunction(javax.xml.namespace.QName name, org.apache.ws.commons.schema.XmlSchemaComplexType type)
type
- protected void complexTypeSerializerBody(org.apache.ws.commons.schema.XmlSchemaComplexType type, java.lang.String elementPrefix, JavascriptUtils bodyUtils)
type
- elementPrefix
- bodyNamespaceURIs
- public void domDeserializerFunction(javax.xml.namespace.QName name, org.apache.ws.commons.schema.XmlSchemaComplexType type)
type
- schema type for the process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |