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 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 XmlDurationnewInstance()Creates an empty instance ofXmlDurationstatic XmlDurationnewInstance(XmlOptions options)Creates an empty instance ofXmlDurationstatic XMLInputStreamnewValidatingXMLInputStream(XMLInputStream xis)Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XMLInputStreamnewValidatingXMLInputStream(XMLInputStream xis, XmlOptions options)Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlDurationnewValue(Object obj)Creates an immutableXmlDurationvaluestatic XmlDurationparse(File f)Parses aXmlDurationfragment from a File.static XmlDurationparse(File f, XmlOptions options)Parses aXmlDurationfragment from a File.static XmlDurationparse(InputStream is)Parses aXmlDurationfragment from an InputStream.static XmlDurationparse(InputStream is, XmlOptions options)Parses aXmlDurationfragment from an InputStream.static XmlDurationparse(Reader r)Parses aXmlDurationfragment from a Reader.static XmlDurationparse(Reader r, XmlOptions options)Parses aXmlDurationfragment from a Reader.static XmlDurationparse(String s)Parses aXmlDurationfragment from a String.static XmlDurationparse(String s, XmlOptions options)Parses aXmlDurationfragment from a String.static XmlDurationparse(URL u)Parses aXmlDurationfragment from a URL.static XmlDurationparse(URL u, XmlOptions options)Parses aXmlDurationfragment from a URL.static XmlDurationparse(XMLStreamReader xsr)Parses aXmlDurationfragment from an XMLStreamReader.static XmlDurationparse(XMLStreamReader xsr, XmlOptions options)Parses aXmlDurationfragment from an XMLStreamReader.static XmlDurationparse(XMLInputStream xis)Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlDurationparse(XMLInputStream xis, XmlOptions options)Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlDurationparse(Node node)Parses aXmlDurationfragment from a DOM Node.static XmlDurationparse(Node node, XmlOptions options)Parses aXmlDurationfragment 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(Object obj)
Creates an immutableXmlDurationvalue
-
parse
public static XmlDuration parse(String s) throws XmlException
Parses aXmlDurationfragment from a String. For example: "<xml-fragment>P1Y2MT2H</xml-fragment>".- Throws:
XmlException
-
parse
public static XmlDuration parse(String s, XmlOptions options) throws XmlException
Parses aXmlDurationfragment from a String. For example: "<xml-fragment>P1Y2MT2H</xml-fragment>".- Throws:
XmlException
-
parse
public static XmlDuration parse(File f) throws XmlException, IOException
Parses aXmlDurationfragment from a File.- Throws:
XmlExceptionIOException
-
parse
public static XmlDuration parse(File f, XmlOptions options) throws XmlException, IOException
Parses aXmlDurationfragment from a File.- Throws:
XmlExceptionIOException
-
parse
public static XmlDuration parse(URL u) throws XmlException, IOException
Parses aXmlDurationfragment from a URL.- Throws:
XmlExceptionIOException
-
parse
public static XmlDuration parse(URL u, XmlOptions options) throws XmlException, IOException
Parses aXmlDurationfragment from a URL.- Throws:
XmlExceptionIOException
-
parse
public static XmlDuration parse(InputStream is) throws XmlException, IOException
Parses aXmlDurationfragment from an InputStream.- Throws:
XmlExceptionIOException
-
parse
public static XmlDuration parse(InputStream is, XmlOptions options) throws XmlException, IOException
Parses aXmlDurationfragment from an InputStream.- Throws:
XmlExceptionIOException
-
parse
public static XmlDuration parse(Reader r) throws XmlException, IOException
Parses aXmlDurationfragment from a Reader.- Throws:
XmlExceptionIOException
-
parse
public static XmlDuration parse(Reader r, XmlOptions options) throws XmlException, IOException
Parses aXmlDurationfragment from a Reader.- Throws:
XmlExceptionIOException
-
parse
public static XmlDuration parse(Node node) throws XmlException
Parses aXmlDurationfragment from a DOM Node.- Throws:
XmlException
-
parse
public static XmlDuration parse(Node node, XmlOptions options) throws XmlException
Parses aXmlDurationfragment 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 aXmlDurationfragment from an XMLInputStream.- Throws:
XmlExceptionXMLStreamException
-
parse
public static XmlDuration parse(XMLInputStream xis, XmlOptions options) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Parses aXmlDurationfragment from an XMLInputStream.- Throws:
XmlExceptionXMLStreamException
-
parse
public static XmlDuration parse(XMLStreamReader xsr) throws XmlException
Parses aXmlDurationfragment from an XMLStreamReader.- Throws:
XmlException
-
parse
public static XmlDuration parse(XMLStreamReader xsr, XmlOptions options) throws XmlException
Parses aXmlDurationfragment 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:
XmlExceptionXMLStreamException
-
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:
XmlExceptionXMLStreamException
-
-