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 XmlObject
getTypeNode
(SchemaDocument.Schema[] schemas, QName q) static SchemaDocument
parseSchema
(InputStream stream) static DefinitionsDocument
static DefinitionsDocument
parseWSDL
(InputStream wsdlStream) static DefinitionsDocument
static DefinitionsDocument
static SchemaDocument.Schema[]
selectChildren
(XmlObject parent, Class childClass) void
serialize
(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:
serialize
in 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:Serializer
Gets the type of the XML processing mechanism and representation used by this Serializer.- Specified by:
getMechanismType
in 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:
writeSchema
in 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:
IOException
MalformedURLException
XmlException
-
parseWSDL
- Throws:
IOException
XmlException
-
parseWSDL
- Throws:
IOException
XmlException
-
parseWSDL
public static DefinitionsDocument parseWSDL(InputStream wsdlStream) throws IOException, XmlException - Throws:
IOException
XmlException
-
parseSchema
- Throws:
XmlException
IOException
-
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:
XmlException
IOException
IllegalAccessException
NoSuchFieldException
-
getTypeNode
-