Home » xmlbeans-2.5.0-src » org.apache » xmlbeans » [javadoc | source]
org.apache.xmlbeans
public static final class: XmlObject.Factory [javadoc | source]
java.lang.Object
   org.apache.xmlbeans.XmlObject$Factory
Static factory class for creating new instances. Note that if a type can be inferred from the XML being loaded (for example, by recognizing the document element QName), then the instance returned by a factory will have the inferred type. Otherwise the Factory will returned an untyped document.
Method from org.apache.xmlbeans.XmlObject$Factory Summary:
newDomImplementation,   newDomImplementation,   newInstance,   newInstance,   newValidatingXMLInputStream,   newValidatingXMLInputStream,   newValue,   newXmlSaxHandler,   newXmlSaxHandler,   parse,   parse,   parse,   parse,   parse,   parse,   parse,   parse,   parse,   parse,   parse,   parse,   parse,   parse,   parse,   parse
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xmlbeans.XmlObject$Factory Detail:
 public static DOMImplementation newDomImplementation() 
    Creates a new DOMImplementation object
 public static DOMImplementation newDomImplementation(XmlOptions options) 
    Creates a new DOMImplementation object, taking options
 public static XmlObject newInstance() 
    Creates a new, completely empty instance.
 public static XmlObject newInstance(XmlOptions options) 

    Creates a new, completely empty instance, specifying options for the root element's document type and/or whether to validate value facets as they are set.

    Use the options parameter to specify the following:

    To specify thisUse this method
    The document type for the root element. XmlOptions#setDocumentType
    Whether value facets should be checked as they are set. XmlOptions#setValidateOnSet
 public static XMLInputStream newValidatingXMLInputStream(XMLInputStream xis) throws XmlException, XMLStreamException 
Deprecated! XMLInputStream - was deprecated by XMLStreamReader from STaX - jsr173 API.

    Returns a new validating XMLInputStream that throws exceptions when the input is not valid.
 public static XMLInputStream newValidatingXMLInputStream(XMLInputStream xis,
    XmlOptions options) throws XmlException, XMLStreamException 
Deprecated! XMLInputStream - was deprecated by XMLStreamReader from STaX - jsr173 API.

    Returns a new validating XMLInputStream that throws exceptions when the input is not valid, specifying options for the root element's document type and/or the collection object to use as an error listener while validating.

    Use the options parameter to specify the following:

 public static XmlObject newValue(Object obj) 
 public static XmlSaxHandler newXmlSaxHandler() 
    Returns an XmlSaxHandler that can load an XmlObject from SAX events.
 public static XmlSaxHandler newXmlSaxHandler(XmlOptions options) 
    Returns an XmlSaxHandler that can load an XmlObject from SAX events.
 public static XmlObject parse(String xmlAsString) throws XmlException 
    Parses the given String as XML.
 public static XmlObject parse(File file) throws XmlException, IOException 
    Parses the given File as XML.
 public static XmlObject parse(URL u) throws XmlException, IOException 
 public static XmlObject parse(InputStream is) throws XmlException, IOException 
 public static XmlObject parse(XMLStreamReader xsr) throws XmlException 
 public static XmlObject parse(Reader r) throws XmlException, IOException 
    Parses the given Reader as XML.
 public static XmlObject parse(Node node) throws XmlException 
    Converts the given DOM Node into an XmlObject.
 public static XmlObject parse(XMLInputStream xis) throws XmlException, XMLStreamException 
Deprecated! XMLInputStream - was deprecated by XMLStreamReader from STaX - jsr173 API.

 public static XmlObject parse(String xmlAsString,
    XmlOptions options) throws XmlException 
 public static XmlObject parse(File file,
    XmlOptions options) throws XmlException, IOException 
    Parses the given File as XML.
 public static XmlObject parse(URL u,
    XmlOptions options) throws XmlException, IOException 
 public static XmlObject parse(InputStream is,
    XmlOptions options) throws XmlException, IOException 
 public static XmlObject parse(XMLStreamReader xsr,
    XmlOptions options) throws XmlException 
 public static XmlObject parse(Reader r,
    XmlOptions options) throws XmlException, IOException 
    Parses the given Reader as XML.
 public static XmlObject parse(Node node,
    XmlOptions options) throws XmlException 
    Converts the given DOM Node into an XmlObject.
 public static XmlObject parse(XMLInputStream xis,
    XmlOptions options) throws XmlException, XMLStreamException 
Deprecated! XMLInputStream - was deprecated by XMLStreamReader from STaX - jsr173 API.