net.sf.sqs_xml.reader.model
Class UJAXP
java.lang.Object
net.sf.sqs_xml.reader.model.UJAXP
- public final class UJAXP
- extends java.lang.Object
UJAXP
- Since:
- Feb. 20, 2000
- Version:
- Jul. 10, 2003
- Author:
- ASAMI, Tomoharu (asami@relaxer.org)
Constructor Summary |
UJAXP()
|
Method Summary |
static org.w3c.dom.Document |
getDocument(java.io.File file)
|
static org.w3c.dom.Document |
getDocument(java.io.File file,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getDocument(java.io.File file,
int flags)
|
static org.w3c.dom.Document |
getDocument(java.io.File file,
int flags,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getDocument(java.io.File file,
int flags,
org.xml.sax.ErrorHandler handler,
org.xml.sax.EntityResolver resolver)
|
static org.w3c.dom.Document |
getDocument(org.xml.sax.InputSource is)
|
static org.w3c.dom.Document |
getDocument(org.xml.sax.InputSource is,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getDocument(org.xml.sax.InputSource is,
int flags)
|
static org.w3c.dom.Document |
getDocument(org.xml.sax.InputSource is,
int flags,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getDocument(org.xml.sax.InputSource is,
int flags,
org.xml.sax.ErrorHandler handler,
org.xml.sax.EntityResolver resolver)
|
static org.w3c.dom.Document |
getDocument(java.io.InputStream in)
|
static org.w3c.dom.Document |
getDocument(java.io.InputStream in,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getDocument(java.io.InputStream in,
int flags)
|
static org.w3c.dom.Document |
getDocument(java.io.InputStream in,
int flags,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getDocument(java.io.InputStream in,
int flags,
org.xml.sax.ErrorHandler handler,
org.xml.sax.EntityResolver resolver)
|
static org.w3c.dom.Document |
getDocument(java.io.Reader reader)
|
static org.w3c.dom.Document |
getDocument(java.io.Reader reader,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getDocument(java.io.Reader reader,
int flags)
|
static org.w3c.dom.Document |
getDocument(java.io.Reader reader,
int flags,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getDocument(java.io.Reader reader,
int flags,
org.xml.sax.ErrorHandler handler,
org.xml.sax.EntityResolver resolver)
|
static org.w3c.dom.Document |
getDocument(java.lang.String uri)
|
static org.w3c.dom.Document |
getDocument(java.lang.String uri,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getDocument(java.lang.String uri,
int flags)
|
static org.w3c.dom.Document |
getDocument(java.lang.String uri,
int flags,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getDocument(java.lang.String uri,
java.lang.String baseUri,
int flags,
org.xml.sax.ErrorHandler handler,
org.xml.sax.EntityResolver resolver)
|
static org.w3c.dom.Document |
getDocument(java.net.URL url)
|
static org.w3c.dom.Document |
getDocument(java.net.URL url,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getDocument(java.net.URL url,
int flags)
|
static org.w3c.dom.Document |
getDocument(java.net.URL url,
int flags,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getDocument(java.net.URL url,
int flags,
org.xml.sax.ErrorHandler handler,
org.xml.sax.EntityResolver resolver)
|
static org.xml.sax.EntityResolver |
getEntityResolver()
|
static java.net.URL |
getEntityResource(java.lang.String systemId)
|
static org.xml.sax.ErrorHandler |
getErrorHandler()
|
static org.w3c.dom.Document |
getValidDocument(java.io.File file)
|
static org.w3c.dom.Document |
getValidDocument(java.io.File file,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getValidDocument(org.xml.sax.InputSource is)
|
static org.w3c.dom.Document |
getValidDocument(org.xml.sax.InputSource is,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getValidDocument(java.io.InputStream in)
|
static org.w3c.dom.Document |
getValidDocument(java.io.InputStream in,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getValidDocument(java.io.Reader reader)
|
static org.w3c.dom.Document |
getValidDocument(java.io.Reader reader,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getValidDocument(java.lang.String uri)
|
static org.w3c.dom.Document |
getValidDocument(java.lang.String uri,
org.xml.sax.ErrorHandler handler)
|
static org.w3c.dom.Document |
getValidDocument(java.net.URL url)
|
static org.w3c.dom.Document |
getValidDocument(java.net.URL url,
org.xml.sax.ErrorHandler handler)
|
static boolean |
isMatchDataComplex(org.w3c.dom.Element element,
java.lang.String typeExpr)
|
static boolean |
isMatchDataComplex(java.lang.String data,
java.lang.String typeExpr)
|
static boolean |
isMatchDataComplexAttr(org.w3c.dom.Element element,
java.lang.String attrName,
java.lang.String typeExpr)
|
static boolean |
isMatchDataComplexElement(org.w3c.dom.Element element,
java.lang.String elementName,
java.lang.String typeExpr)
|
static void |
main(java.lang.String[] args)
|
static org.w3c.dom.Document |
makeDocument()
|
static org.w3c.dom.Document |
makeDocument(org.xml.sax.ErrorHandler handler)
|
static java.lang.String |
makeUri(java.lang.String uri,
java.lang.String baseUri)
|
static void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
|
static void |
setEntityResource(java.lang.String systemId,
java.net.URL resource)
|
static void |
setErrorHandler(org.xml.sax.ErrorHandler handler)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FLAG_NONE
public static final int FLAG_NONE
- See Also:
- Constant Field Values
FLAG_VALIDATION
public static final int FLAG_VALIDATION
- See Also:
- Constant Field Values
FLAG_NAMESPACE_AWARE
public static final int FLAG_NAMESPACE_AWARE
- See Also:
- Constant Field Values
FLAG_WHITESPACE
public static final int FLAG_WHITESPACE
- See Also:
- Constant Field Values
FLAG_EXPAND_ENTITY_REF
public static final int FLAG_EXPAND_ENTITY_REF
- See Also:
- Constant Field Values
FLAG_IGNORE_COMMENTS
public static final int FLAG_IGNORE_COMMENTS
- See Also:
- Constant Field Values
FLAG_COALESCING
public static final int FLAG_COALESCING
- See Also:
- Constant Field Values
UJAXP
public UJAXP()
getDocument
public static org.w3c.dom.Document getDocument(java.io.File file,
int flags)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.lang.String uri,
int flags)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.net.URL url,
int flags)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.InputStream in,
int flags)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(org.xml.sax.InputSource is,
int flags)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.Reader reader,
int flags)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.File file,
int flags,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.lang.String uri,
int flags,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.net.URL url,
int flags,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.InputStream in,
int flags,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(org.xml.sax.InputSource is,
int flags,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.Reader reader,
int flags,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.File file)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.lang.String uri)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.net.URL url)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.InputStream in)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(org.xml.sax.InputSource is)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.Reader reader)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.File file,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.lang.String uri,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.net.URL url,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.InputStream in,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(org.xml.sax.InputSource is,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.Reader reader,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.File file,
int flags,
org.xml.sax.ErrorHandler handler,
org.xml.sax.EntityResolver resolver)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.lang.String uri,
java.lang.String baseUri,
int flags,
org.xml.sax.ErrorHandler handler,
org.xml.sax.EntityResolver resolver)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
makeUri
public static java.lang.String makeUri(java.lang.String uri,
java.lang.String baseUri)
getDocument
public static org.w3c.dom.Document getDocument(java.net.URL url,
int flags,
org.xml.sax.ErrorHandler handler,
org.xml.sax.EntityResolver resolver)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.InputStream in,
int flags,
org.xml.sax.ErrorHandler handler,
org.xml.sax.EntityResolver resolver)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(org.xml.sax.InputSource is,
int flags,
org.xml.sax.ErrorHandler handler,
org.xml.sax.EntityResolver resolver)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getDocument
public static org.w3c.dom.Document getDocument(java.io.Reader reader,
int flags,
org.xml.sax.ErrorHandler handler,
org.xml.sax.EntityResolver resolver)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getValidDocument
public static org.w3c.dom.Document getValidDocument(java.io.File file)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getValidDocument
public static org.w3c.dom.Document getValidDocument(java.lang.String uri)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getValidDocument
public static org.w3c.dom.Document getValidDocument(java.net.URL url)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getValidDocument
public static org.w3c.dom.Document getValidDocument(java.io.InputStream in)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getValidDocument
public static org.w3c.dom.Document getValidDocument(org.xml.sax.InputSource is)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getValidDocument
public static org.w3c.dom.Document getValidDocument(java.io.Reader reader)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getValidDocument
public static org.w3c.dom.Document getValidDocument(java.io.File file,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getValidDocument
public static org.w3c.dom.Document getValidDocument(java.lang.String uri,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getValidDocument
public static org.w3c.dom.Document getValidDocument(java.net.URL url,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getValidDocument
public static org.w3c.dom.Document getValidDocument(java.io.InputStream in,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getValidDocument
public static org.w3c.dom.Document getValidDocument(org.xml.sax.InputSource is,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
getValidDocument
public static org.w3c.dom.Document getValidDocument(java.io.Reader reader,
org.xml.sax.ErrorHandler handler)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
makeDocument
public static org.w3c.dom.Document makeDocument()
throws javax.xml.parsers.ParserConfigurationException
- Throws:
javax.xml.parsers.ParserConfigurationException
makeDocument
public static org.w3c.dom.Document makeDocument(org.xml.sax.ErrorHandler handler)
throws javax.xml.parsers.ParserConfigurationException
- Throws:
javax.xml.parsers.ParserConfigurationException
getErrorHandler
public static org.xml.sax.ErrorHandler getErrorHandler()
getEntityResolver
public static org.xml.sax.EntityResolver getEntityResolver()
setErrorHandler
public static void setErrorHandler(org.xml.sax.ErrorHandler handler)
setEntityResolver
public static void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResource
public static void setEntityResource(java.lang.String systemId,
java.net.URL resource)
getEntityResource
public static java.net.URL getEntityResource(java.lang.String systemId)
isMatchDataComplex
public static boolean isMatchDataComplex(org.w3c.dom.Element element,
java.lang.String typeExpr)
isMatchDataComplexAttr
public static boolean isMatchDataComplexAttr(org.w3c.dom.Element element,
java.lang.String attrName,
java.lang.String typeExpr)
isMatchDataComplexElement
public static boolean isMatchDataComplexElement(org.w3c.dom.Element element,
java.lang.String elementName,
java.lang.String typeExpr)
isMatchDataComplex
public static boolean isMatchDataComplex(java.lang.String data,
java.lang.String typeExpr)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception