Package org.apache.xmlbeans
Class XmlNMTOKEN.Factory
- java.lang.Object
-
- org.apache.xmlbeans.XmlNMTOKEN.Factory
-
- Enclosing interface:
- XmlNMTOKEN
public static final class XmlNMTOKEN.Factory extends Object
A class with methods for creating instances ofXmlNMTOKEN.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static XmlNMTOKENnewInstance()Creates an empty instance ofXmlNMTOKENstatic XmlNMTOKENnewInstance(XmlOptions options)Creates an empty instance ofXmlNMTOKENstatic 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 XmlNMTOKENnewValue(Object obj)Creates an immutableXmlNMTOKENvaluestatic XmlNMTOKENparse(File f)Parses aXmlNMTOKENfragment from a File.static XmlNMTOKENparse(File f, XmlOptions options)Parses aXmlNMTOKENfragment from a File.static XmlNMTOKENparse(InputStream is)Parses aXmlNMTOKENfragment from an InputStream.static XmlNMTOKENparse(InputStream is, XmlOptions options)Parses aXmlNMTOKENfragment from an InputStream.static XmlNMTOKENparse(Reader r)Parses aXmlNMTOKENfragment from a Reader.static XmlNMTOKENparse(Reader r, XmlOptions options)Parses aXmlNMTOKENfragment from a Reader.static XmlNMTOKENparse(String s)Parses aXmlNMTOKENfragment from a String.static XmlNMTOKENparse(String s, XmlOptions options)Parses aXmlNMTOKENfragment from a String.static XmlNMTOKENparse(URL u)Parses aXmlNMTOKENfragment from a URL.static XmlNMTOKENparse(URL u, XmlOptions options)Parses aXmlNMTOKENfragment from a URL.static XmlNMTOKENparse(XMLStreamReader xsr)Parses aXmlNMTOKENfragment from an XMLStreamReader.static XmlNMTOKENparse(XMLStreamReader xsr, XmlOptions options)Parses aXmlNMTOKENfragment from an XMLStreamReader.static XmlNMTOKENparse(XMLInputStream xis)Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlNMTOKENparse(XMLInputStream xis, XmlOptions options)Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.static XmlNMTOKENparse(Node node)Parses aXmlNMTOKENfragment from a DOM Node.static XmlNMTOKENparse(Node node, XmlOptions options)Parses aXmlNMTOKENfragment from a DOM Node.
-
-
-
Method Detail
-
newInstance
public static XmlNMTOKEN newInstance()
Creates an empty instance ofXmlNMTOKEN
-
newInstance
public static XmlNMTOKEN newInstance(XmlOptions options)
Creates an empty instance ofXmlNMTOKEN
-
newValue
public static XmlNMTOKEN newValue(Object obj)
Creates an immutableXmlNMTOKENvalue
-
parse
public static XmlNMTOKEN parse(String s) throws XmlException
Parses aXmlNMTOKENfragment from a String. For example: "<xml-fragment>sample-1.2</xml-fragment>".- Throws:
XmlException
-
parse
public static XmlNMTOKEN parse(String s, XmlOptions options) throws XmlException
Parses aXmlNMTOKENfragment from a String. For example: "<xml-fragment>sample-1.2</xml-fragment>".- Throws:
XmlException
-
parse
public static XmlNMTOKEN parse(File f) throws XmlException, IOException
Parses aXmlNMTOKENfragment from a File.- Throws:
XmlExceptionIOException
-
parse
public static XmlNMTOKEN parse(File f, XmlOptions options) throws XmlException, IOException
Parses aXmlNMTOKENfragment from a File.- Throws:
XmlExceptionIOException
-
parse
public static XmlNMTOKEN parse(URL u) throws XmlException, IOException
Parses aXmlNMTOKENfragment from a URL.- Throws:
XmlExceptionIOException
-
parse
public static XmlNMTOKEN parse(URL u, XmlOptions options) throws XmlException, IOException
Parses aXmlNMTOKENfragment from a URL.- Throws:
XmlExceptionIOException
-
parse
public static XmlNMTOKEN parse(InputStream is) throws XmlException, IOException
Parses aXmlNMTOKENfragment from an InputStream.- Throws:
XmlExceptionIOException
-
parse
public static XmlNMTOKEN parse(InputStream is, XmlOptions options) throws XmlException, IOException
Parses aXmlNMTOKENfragment from an InputStream.- Throws:
XmlExceptionIOException
-
parse
public static XmlNMTOKEN parse(Reader r) throws XmlException, IOException
Parses aXmlNMTOKENfragment from a Reader.- Throws:
XmlExceptionIOException
-
parse
public static XmlNMTOKEN parse(Reader r, XmlOptions options) throws XmlException, IOException
Parses aXmlNMTOKENfragment from a Reader.- Throws:
XmlExceptionIOException
-
parse
public static XmlNMTOKEN parse(Node node) throws XmlException
Parses aXmlNMTOKENfragment from a DOM Node.- Throws:
XmlException
-
parse
public static XmlNMTOKEN parse(Node node, XmlOptions options) throws XmlException
Parses aXmlNMTOKENfragment from a DOM Node.- Throws:
XmlException
-
parse
public static XmlNMTOKEN parse(XMLInputStream xis) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Parses aXmlNMTOKENfragment from an XMLInputStream.- Throws:
XmlExceptionXMLStreamException
-
parse
public static XmlNMTOKEN parse(XMLInputStream xis, XmlOptions options) throws XmlException, XMLStreamException
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.Parses aXmlNMTOKENfragment from an XMLInputStream.- Throws:
XmlExceptionXMLStreamException
-
parse
public static XmlNMTOKEN parse(XMLStreamReader xsr) throws XmlException
Parses aXmlNMTOKENfragment from an XMLStreamReader.- Throws:
XmlException
-
parse
public static XmlNMTOKEN parse(XMLStreamReader xsr, XmlOptions options) throws XmlException
Parses aXmlNMTOKENfragment 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
-
-