Class XmlBeanSerializer
java.lang.Object
org.apache.axis.encoding.ser.xbeans.XmlBeanSerializer
- All Implemented Interfaces:
Serializable,Serializer,Serializer
Class XmlBeanSerializer
- Author:
- Jonathan Colwell
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaDocument.Schema[]findtSchemaDocument(SchemaType docType) Gets the type of the XML processing mechanism and representation used by this Serializer.static XmlObjectgetTypeNode(SchemaDocument.Schema[] schemas, QName q) static SchemaDocumentparseSchema(InputStream stream) static DefinitionsDocumentstatic DefinitionsDocumentparseWSDL(InputStream wsdlStream) static DefinitionsDocumentstatic DefinitionsDocumentstatic SchemaDocument.Schema[]selectChildren(XmlObject parent, Class childClass) voidserialize(QName name, Attributes attributes, Object value, SerializationContext context) Serialize an element named name, with the indicated attributes and value.writeSchema(Class javaType, Types types) Return XML schema for the specified type, suitable for insertion into the <types> element of a WSDL document, or underneath an <element> or <attribute> declaration.
-
Constructor Details
-
XmlBeanSerializer
public XmlBeanSerializer()
-
-
Method Details
-
serialize
public void serialize(QName name, Attributes attributes, Object value, SerializationContext context) throws IOException Serialize an element named name, with the indicated attributes and value.- Specified by:
serializein interfaceSerializer- Parameters:
name- is the element nameattributes- are the attributes...serialize is free to add more.value- is the valuecontext- is the SerializationContext- Throws:
IOException
-
getMechanismType
Description copied from interface:SerializerGets the type of the XML processing mechanism and representation used by this Serializer.- Specified by:
getMechanismTypein interfaceSerializer- Returns:
- XML processing mechanism type
-
writeSchema
Return XML schema for the specified type, suitable for insertion into the <types> element of a WSDL document, or underneath an <element> or <attribute> declaration.- Specified by:
writeSchemain interfaceSerializer- Parameters:
javaType- the Java Class we're writing out schema fortypes- the Java2WSDL Types object which holds the context for the WSDL being generated.- Returns:
- a type element containing a schema simpleType/complexType
- Throws:
Exception- See Also:
-
parseWSDL
public static DefinitionsDocument parseWSDL(String wsdlLocation) throws IOException, MalformedURLException, XmlException - Throws:
IOExceptionMalformedURLExceptionXmlException
-
parseWSDL
- Throws:
IOExceptionXmlException
-
parseWSDL
- Throws:
IOExceptionXmlException
-
parseWSDL
public static DefinitionsDocument parseWSDL(InputStream wsdlStream) throws IOException, XmlException - Throws:
IOExceptionXmlException
-
parseSchema
- Throws:
XmlExceptionIOException
-
selectChildren
public static SchemaDocument.Schema[] selectChildren(XmlObject parent, Class childClass) throws IllegalAccessException, NoSuchFieldException -
findtSchemaDocument
public static SchemaDocument.Schema[] findtSchemaDocument(SchemaType docType) throws XmlException, IOException, IllegalAccessException, NoSuchFieldException - Throws:
XmlExceptionIOExceptionIllegalAccessExceptionNoSuchFieldException
-
getTypeNode
-