|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.wsdl.fromJava.Types
Description:
This class is used to recursively serializes a Java Class into an XML Schema representation. It has utility methods to create a schema node, assosiate namespaces to the various types
Constructor Summary | |
Types(javax.wsdl.Definition def,
TypeMapping tm,
TypeMapping defaultTM,
Namespaces namespaces,
java.lang.String targetNamespace,
Java2WSDLFactory factory,
java.util.Vector stopClasses)
This class serailizes a Class to XML Schema. |
Method Summary | |
org.w3c.dom.Element |
createAttributeElement(java.lang.String elementName,
java.lang.String elementType,
boolean nullable,
org.w3c.dom.Document docHolder)
Create Attribute Element with a given name and type |
org.w3c.dom.Element |
createElement(java.lang.String elementName)
Create a DOM Element in this context |
org.w3c.dom.Element |
createElement(java.lang.String elementName,
java.lang.String elementType,
boolean nullable,
org.w3c.dom.Document docHolder)
Create Element with a given name and type |
BuilderBeanClassRep |
getBeanBuilder()
Return the class rep that allows users to build their own beans |
static java.lang.String |
getLocalNameFromFullName(java.lang.String full)
Utility method to get the local class name from a fully qualified java class name |
static java.lang.String |
getPackageNameFromFullName(java.lang.String full)
Utility method to get the package name from a fully qualified java class name |
java.util.Vector |
getStopClasses()
Return the list of classes that we should not emit WSDL for. |
javax.wsdl.QName |
getWsdlQName(QName qName)
convert from JAX-RPC QName to WSDL QName |
void |
insertTypesFragment(org.w3c.dom.Document doc)
Inserts the type fragment into the given wsdl document |
static boolean |
isEnumClass(java.lang.Class cls)
Returns true if indicated type matches the JAX-RPC enumeration class. |
boolean |
isNullable(java.lang.Class type)
Determines if the field is nullable. |
boolean |
isSimpleSchemaType(java.lang.Class type)
Is the given class one of the simple types defined by Schema (per JSR 101 v.0.6) |
javax.wsdl.QName |
writePartType(java.lang.Class type)
Serialize the Class as XML schema to the document. |
void |
writeSchemaElement(javax.wsdl.QName qName,
org.w3c.dom.Element element)
Write out the given Element into the appropriate schema node. |
java.lang.String |
writeType(java.lang.Class type)
Write a schema representation for the given Class . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Types(javax.wsdl.Definition def, TypeMapping tm, TypeMapping defaultTM, Namespaces namespaces, java.lang.String targetNamespace, Java2WSDLFactory factory, java.util.Vector stopClasses)
Class
to XML Schema. The constructor
provides the context for the streamed node within the WSDL documentdef
- WSDL Definition Element to declare namespacesdoc
- Document element of the WSDL used to create child elementstm
- TypeMappingRegistry to handle known typesdefaultTM
- default TMnamespaces
- user defined or autogenerated namespace and prefix mapstargetNamespace
- targetNamespace of the documentfactory
- Java2WSDLFactoryMethod Detail |
public javax.wsdl.QName writePartType(java.lang.Class type) throws java.lang.Exception
param
- Class
to generate the XML Schema info forpublic static java.lang.String getPackageNameFromFullName(java.lang.String full)
full
- input class namepublic static java.lang.String getLocalNameFromFullName(java.lang.String full)
full
- input class namepublic void writeSchemaElement(javax.wsdl.QName qName, org.w3c.dom.Element element)
qName
- qName to get the namespace of the schema nodeelement
- the Element to append to the Schema nodepublic java.lang.String writeType(java.lang.Class type) throws java.lang.Exception
Class
. Recurse
through all the public fields as well as fields represented by java
bean compliant accessor methods.
Then return the qualified string representation of the generated typetype
- Class for which to generate schemajava.lang.Exception
- public static boolean isEnumClass(java.lang.Class cls)
public org.w3c.dom.Element createElement(java.lang.String elementName, java.lang.String elementType, boolean nullable, org.w3c.dom.Document docHolder)
elementName
- the name of the created elementelementType
- schema type representation of the elementnullable
- nullable attribute of the elementpublic org.w3c.dom.Element createAttributeElement(java.lang.String elementName, java.lang.String elementType, boolean nullable, org.w3c.dom.Document docHolder)
elementName
- the name of the created elementelementType
- schema type representation of the elementnullable
- nullable attribute of the elementpublic javax.wsdl.QName getWsdlQName(QName qName)
qName
- JAX-RPC QNamepublic boolean isSimpleSchemaType(java.lang.Class type)
type
- input Classpublic boolean isNullable(java.lang.Class type)
type
- input Classpublic void insertTypesFragment(org.w3c.dom.Document doc)
doc
- public java.util.Vector getStopClasses()
public BuilderBeanClassRep getBeanBuilder()
public org.w3c.dom.Element createElement(java.lang.String elementName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |