|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.orchestra.console.ws.server.XBeansUtils
public class XBeansUtils
| Method Summary | |
|---|---|
static void |
createPartElement(javax.wsdl.Part part,
List<javax.wsdl.extensions.schema.Schema> schemas,
org.apache.xmlbeans.XmlCursor partCursor,
org.apache.xmlbeans.XmlOptions options)
Uses XmlBeans to generate a sample of a Part element |
static String |
prettyToString(String xmlAsString)
Indent an XML string using XmlBeans |
static String |
prettyToString(org.apache.xmlbeans.XmlObject xmlObject)
Indent the result of an XmlTokenSource.save(java.io.Writer) operation. |
static void |
prettyWrite(org.apache.xmlbeans.XmlObject xmlObject,
Writer writer)
Wrapper for the prettyWrite(org.apache.xmlbeans.XmlObject, java.io.Writer, org.apache.xmlbeans.XmlOptions)
operation with default options. |
static void |
prettyWrite(org.apache.xmlbeans.XmlObject xmlObject,
Writer writer,
org.apache.xmlbeans.XmlOptions options)
Saves an XmlObject to a writer using options to have a pretty indentation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String prettyToString(String xmlAsString)
throws org.apache.xmlbeans.XmlException,
IOException
xmlAsString - the XML string
org.apache.xmlbeans.XmlException - Throws if the XML string is not valid
IOException
public static String prettyToString(org.apache.xmlbeans.XmlObject xmlObject)
throws IOException
XmlTokenSource.save(java.io.Writer) operation.
xmlObject - The XmlObject to convert in string
IOException
public static void prettyWrite(org.apache.xmlbeans.XmlObject xmlObject,
Writer writer)
throws IOException
prettyWrite(org.apache.xmlbeans.XmlObject, java.io.Writer, org.apache.xmlbeans.XmlOptions)
operation with default options.
xmlObject - The XmlObject to writewriter - The writer to use
IOExceptionprettyWrite(org.apache.xmlbeans.XmlObject, java.io.Writer, org.apache.xmlbeans.XmlOptions)
public static void prettyWrite(org.apache.xmlbeans.XmlObject xmlObject,
Writer writer,
org.apache.xmlbeans.XmlOptions options)
throws IOException
xmlObject - The XmlObject to writewriter - The writer to useoptions - Additional options
IOException
public static void createPartElement(javax.wsdl.Part part,
List<javax.wsdl.extensions.schema.Schema> schemas,
org.apache.xmlbeans.XmlCursor partCursor,
org.apache.xmlbeans.XmlOptions options)
throws OrchestraGwtException
Part element
part - The part to writeschemas - schemas defined in the WSDL containing this PartpartCursor - an XmlCursor to write the part elementoptions - Additional XmlBeans options
OrchestraGwtException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||