Package org.apache.xmlbeans.impl.store
Class Locale
- java.lang.Object
-
- org.apache.xmlbeans.impl.store.Locale
-
- All Implemented Interfaces:
XmlLocale
,Saaj.SaajCallback
,DOMImplementation
public final class Locale extends Object implements DOMImplementation, Saaj.SaajCallback, XmlLocale
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Locale.LoadContext
-
Method Summary
-
-
-
Method Detail
-
getLocale
public static Locale getLocale(SchemaTypeLoader stl, XmlOptions options)
-
associateSourceName
public static void associateSourceName(Cur c, XmlOptions options)
-
autoTypeDocument
public static void autoTypeDocument(Cur c, SchemaType requestedType, XmlOptions options) throws XmlException
- Throws:
XmlException
-
newInstance
public static XmlObject newInstance(SchemaTypeLoader stl, SchemaType type, XmlOptions options)
-
newDomImplementation
public static DOMImplementation newDomImplementation(SchemaTypeLoader stl, XmlOptions options)
-
parseToXmlObject
public static XmlObject parseToXmlObject(SchemaTypeLoader stl, String xmlText, SchemaType type, XmlOptions options) throws XmlException
- Throws:
XmlException
-
parseToXmlObject
public static XmlObject parseToXmlObject(SchemaTypeLoader stl, XMLStreamReader xsr, SchemaType type, XmlOptions options) throws XmlException
- Throws:
XmlException
-
parseToXmlObject
public static XmlObject parseToXmlObject(SchemaTypeLoader stl, InputStream is, SchemaType type, XmlOptions options) throws XmlException, IOException
- Throws:
XmlException
IOException
-
parseToXmlObject
public static XmlObject parseToXmlObject(SchemaTypeLoader stl, Reader reader, SchemaType type, XmlOptions options) throws XmlException, IOException
- Throws:
XmlException
IOException
-
parseToXmlObject
public static XmlObject parseToXmlObject(SchemaTypeLoader stl, Node node, SchemaType type, XmlOptions options) throws XmlException
- Throws:
XmlException
-
loadNode
public void loadNode(Node n, Locale.LoadContext context)
-
newSaxHandler
public static XmlSaxHandler newSaxHandler(SchemaTypeLoader stl, SchemaType type, XmlOptions options)
-
clearThreadLocals
public static void clearThreadLocals()
-
toFirstChildElement
public static boolean toFirstChildElement(Cur c)
-
version
public long version()
-
enter
public void enter(Locale otherLocale)
-
exit
public void exit(Locale otherLocale)
-
load
public DomImpl.Dom load(Reader r) throws XmlException, IOException
- Throws:
XmlException
IOException
-
load
public DomImpl.Dom load(Reader r, XmlOptions options) throws XmlException, IOException
- Throws:
XmlException
IOException
-
load
public DomImpl.Dom load(InputStream in) throws XmlException, IOException
- Throws:
XmlException
IOException
-
load
public DomImpl.Dom load(InputStream in, XmlOptions options) throws XmlException, IOException
- Throws:
XmlException
IOException
-
load
public DomImpl.Dom load(String s) throws XmlException
- Throws:
XmlException
-
load
public DomImpl.Dom load(String s, XmlOptions options) throws XmlException
- Throws:
XmlException
-
createDocument
public Document createDocument(String uri, String qname, DocumentType doctype)
- Specified by:
createDocument
in interfaceDOMImplementation
-
createDocumentType
public DocumentType createDocumentType(String qname, String publicId, String systemId)
- Specified by:
createDocumentType
in interfaceDOMImplementation
-
hasFeature
public boolean hasFeature(String feature, String version)
- Specified by:
hasFeature
in interfaceDOMImplementation
-
getFeature
public Object getFeature(String feature, String version)
- Specified by:
getFeature
in interfaceDOMImplementation
-
nodeToXmlStream
public static XMLStreamReader nodeToXmlStream(Node n)
-
streamToNode
public static Node streamToNode(XMLStreamReader xs)
-
setSaajData
public void setSaajData(Node n, Object o)
- Specified by:
setSaajData
in interfaceSaaj.SaajCallback
-
getSaajData
public Object getSaajData(Node n)
- Specified by:
getSaajData
in interfaceSaaj.SaajCallback
-
createSoapElement
public Element createSoapElement(QName name, QName parentName)
- Specified by:
createSoapElement
in interfaceSaaj.SaajCallback
-
importSoapElement
public Element importSoapElement(Document doc, Element elem, boolean deep, QName parentName)
- Specified by:
importSoapElement
in interfaceSaaj.SaajCallback
-
getSchemaTypeLoader
public SchemaTypeLoader getSchemaTypeLoader()
-
-