public class XmlBeanSerializer extends Object implements Serializer
Constructor and Description |
---|
XmlBeanSerializer() |
Modifier and Type | Method and Description |
---|---|
static org.apache.xmlbeans.impl.xb.xsdschema.SchemaDocument.Schema[] |
findtSchemaDocument(org.apache.xmlbeans.SchemaType docType) |
String |
getMechanismType()
Gets the type of the XML processing mechanism and representation used by this Serializer.
|
static org.apache.xmlbeans.XmlObject |
getTypeNode(org.apache.xmlbeans.impl.xb.xsdschema.SchemaDocument.Schema[] schemas,
QName q) |
static org.apache.xmlbeans.impl.xb.xsdschema.SchemaDocument |
parseSchema(InputStream stream) |
static org.xmlsoap.schemas.wsdl.DefinitionsDocument |
parseWSDL(File wsdlFile) |
static org.xmlsoap.schemas.wsdl.DefinitionsDocument |
parseWSDL(InputStream wsdlStream) |
static org.xmlsoap.schemas.wsdl.DefinitionsDocument |
parseWSDL(String wsdlLocation) |
static org.xmlsoap.schemas.wsdl.DefinitionsDocument |
parseWSDL(URL wsdlURL) |
static org.apache.xmlbeans.impl.xb.xsdschema.SchemaDocument.Schema[] |
selectChildren(org.apache.xmlbeans.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.
|
Element |
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.
|
public void serialize(QName name, Attributes attributes, Object value, SerializationContext context) throws IOException
name
- is the element nameattributes
- are the attributes...serialize is free to add more.value
- is the valuecontext
- is the SerializationContextIOException
public String getMechanismType()
Serializer
getMechanismType
in interface Serializer
public Element writeSchema(Class javaType, Types types) throws Exception
public static org.xmlsoap.schemas.wsdl.DefinitionsDocument parseWSDL(String wsdlLocation) throws IOException, MalformedURLException, org.apache.xmlbeans.XmlException
IOException
MalformedURLException
org.apache.xmlbeans.XmlException
public static org.xmlsoap.schemas.wsdl.DefinitionsDocument parseWSDL(File wsdlFile) throws IOException, org.apache.xmlbeans.XmlException
IOException
org.apache.xmlbeans.XmlException
public static org.xmlsoap.schemas.wsdl.DefinitionsDocument parseWSDL(URL wsdlURL) throws IOException, org.apache.xmlbeans.XmlException
IOException
org.apache.xmlbeans.XmlException
public static org.xmlsoap.schemas.wsdl.DefinitionsDocument parseWSDL(InputStream wsdlStream) throws IOException, org.apache.xmlbeans.XmlException
IOException
org.apache.xmlbeans.XmlException
public static org.apache.xmlbeans.impl.xb.xsdschema.SchemaDocument parseSchema(InputStream stream) throws org.apache.xmlbeans.XmlException, IOException
org.apache.xmlbeans.XmlException
IOException
public static org.apache.xmlbeans.impl.xb.xsdschema.SchemaDocument.Schema[] selectChildren(org.apache.xmlbeans.XmlObject parent, Class childClass) throws IllegalAccessException, NoSuchFieldException
public static org.apache.xmlbeans.impl.xb.xsdschema.SchemaDocument.Schema[] findtSchemaDocument(org.apache.xmlbeans.SchemaType docType) throws org.apache.xmlbeans.XmlException, IOException, IllegalAccessException, NoSuchFieldException
org.apache.xmlbeans.XmlException
IOException
IllegalAccessException
NoSuchFieldException
public static org.apache.xmlbeans.XmlObject getTypeNode(org.apache.xmlbeans.impl.xb.xsdschema.SchemaDocument.Schema[] schemas, QName q)
Copyright © The Apache Software Foundation. All Rights Reserved.