Package org.apache.xmlbeans
Class XmlDuration.Factory
- java.lang.Object
-
- org.apache.xmlbeans.XmlDuration.Factory
-
- Enclosing interface:
- XmlDuration
public static final class XmlDuration.Factory extends java.lang.Object
A class with methods for creating instances ofXmlDuration
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static XmlDuration
newInstance()
Creates an empty instance ofXmlDuration
static XmlDuration
newInstance(XmlOptions options)
Creates an empty instance ofXmlDuration
static XMLInputStream
newValidatingXMLInputStream(XMLInputStream xis)
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XMLInputStream
newValidatingXMLInputStream(XMLInputStream xis, XmlOptions options)
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlDuration
newValue(java.lang.Object obj)
Creates an immutableXmlDuration
valuestatic XmlDuration
parse(java.io.File f)
Parses aXmlDuration
fragment from a File.static XmlDuration
parse(java.io.File f, XmlOptions options)
Parses aXmlDuration
fragment from a File.static XmlDuration
parse(java.io.InputStream is)
Parses aXmlDuration
fragment from an InputStream.static XmlDuration
parse(java.io.InputStream is, XmlOptions options)
Parses aXmlDuration
fragment from an InputStream.static XmlDuration
parse(java.io.Reader r)
Parses aXmlDuration
fragment from a Reader.static XmlDuration
parse(java.io.Reader r, XmlOptions options)
Parses aXmlDuration
fragment from a Reader.static XmlDuration
parse(java.lang.String s)
Parses aXmlDuration
fragment from a String.static XmlDuration
parse(java.lang.String s, XmlOptions options)
Parses aXmlDuration
fragment from a String.static XmlDuration
parse(java.net.URL u)
Parses aXmlDuration
fragment from a URL.static XmlDuration
parse(java.net.URL u, XmlOptions options)
Parses aXmlDuration
fragment from a URL.static XmlDuration
parse(javax.xml.stream.XMLStreamReader xsr)
Parses aXmlDuration
fragment from an XMLStreamReader.static XmlDuration
parse(javax.xml.stream.XMLStreamReader xsr, XmlOptions options)
Parses aXmlDuration
fragment from an XMLStreamReader.static XmlDuration
parse(XMLInputStream xis)
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlDuration
parse(XMLInputStream xis, XmlOptions options)
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlDuration
parse(org.w3c.dom.Node node)
Parses aXmlDuration
fragment from a DOM Node.static XmlDuration
parse(org.w3c.dom.Node node, XmlOptions options)
Parses aXmlDuration
fragment from a DOM Node.
-
-
-
Method Detail
-
newInstance
public static XmlDuration newInstance()
Creates an empty instance ofXmlDuration
-
newInstance
public static XmlDuration newInstance(XmlOptions options)
Creates an empty instance ofXmlDuration
-
newValue
public static XmlDuration newValue(java.lang.Object obj)
Creates an immutableXmlDuration
value
-
parse
public static XmlDuration parse(java.lang.String s) throws XmlException
Parses aXmlDuration
fragment from a String. For example: "<xml-fragment>P1Y2MT2H</xml-fragment>
".- Throws:
XmlException
-
parse
public static XmlDuration parse(java.lang.String s, XmlOptions options) throws XmlException
Parses aXmlDuration
fragment from a String. For example: "<xml-fragment>P1Y2MT2H</xml-fragment>
".- Throws:
XmlException
-
parse
public static XmlDuration parse(java.io.File f) throws XmlException, java.io.IOException
Parses aXmlDuration
fragment from a File.- Throws:
XmlException
java.io.IOException
-
parse
public static XmlDuration parse(java.io.File f, XmlOptions options) throws XmlException, java.io.IOException
Parses aXmlDuration
fragment from a File.- Throws:
XmlException
java.io.IOException
-
parse
public static XmlDuration parse(java.net.URL u) throws XmlException, java.io.IOException
Parses aXmlDuration
fragment from a URL.- Throws:
XmlException
java.io.IOException
-
parse
public static XmlDuration parse(java.net.URL u, XmlOptions options) throws XmlException, java.io.IOException
Parses aXmlDuration
fragment from a URL.- Throws:
XmlException
java.io.IOException
-
parse
public static XmlDuration parse(java.io.InputStream is) throws XmlException, java.io.IOException
Parses aXmlDuration
fragment from an InputStream.- Throws:
XmlException
java.io.IOException
-
parse
public static XmlDuration parse(java.io.InputStream is, XmlOptions options) throws XmlException, java.io.IOException
Parses aXmlDuration
fragment from an InputStream.- Throws:
XmlException
java.io.IOException
-
parse
public static XmlDuration parse(java.io.Reader r) throws XmlException, java.io.IOException
Parses aXmlDuration
fragment from a Reader.- Throws:
XmlException
java.io.IOException
-
parse
public static XmlDuration parse(java.io.Reader r, XmlOptions options) throws XmlException, java.io.IOException
Parses aXmlDuration
fragment from a Reader.- Throws:
XmlException
java.io.IOException
-
parse
public static XmlDuration parse(org.w3c.dom.Node node) throws XmlException
Parses aXmlDuration
fragment from a DOM Node.- Throws:
XmlException
-
parse
public static XmlDuration parse(org.w3c.dom.Node node, XmlOptions options) throws XmlException
Parses aXmlDuration
fragment from a DOM Node.- Throws:
XmlException
-
parse
public static XmlDuration parse(XMLInputStream xis) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Parses aXmlDuration
fragment from an XMLInputStream.- Throws:
XmlException
XMLStreamException
-
parse
public static XmlDuration parse(XMLInputStream xis, XmlOptions options) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Parses aXmlDuration
fragment from an XMLInputStream.- Throws:
XmlException
XMLStreamException
-
parse
public static XmlDuration parse(javax.xml.stream.XMLStreamReader xsr) throws XmlException
Parses aXmlDuration
fragment from an XMLStreamReader.- Throws:
XmlException
-
parse
public static XmlDuration parse(javax.xml.stream.XMLStreamReader xsr, XmlOptions options) throws XmlException
Parses aXmlDuration
fragment from an XMLStreamReader.- Throws:
XmlException
-
newValidatingXMLInputStream
public static XMLInputStream newValidatingXMLInputStream(XMLInputStream xis) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Returns a validating XMLInputStream.- Throws:
XmlException
XMLStreamException
-
newValidatingXMLInputStream
public static XMLInputStream newValidatingXMLInputStream(XMLInputStream xis, XmlOptions options) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Returns a validating XMLInputStream.- Throws:
XmlException
XMLStreamException
-
-