|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectglobal.sandbox.xmlutilities.XMLTools
public abstract class XMLTools
Static version of the XMLUtilities class.
Field Summary | |
---|---|
private static XMLUtilities |
INTERNAL_XMLUTILITIES
Use this constant, if you want to use internal XMLUtilities for the static methods |
private static XMLUtilities |
xmlUtilities
stores XMLUtilities object for the static usage |
Constructor Summary | |
---|---|
protected |
XMLTools()
hidden constructor |
Method Summary | |
---|---|
static javax.xml.transform.Source |
documentToDOMSource(org.w3c.dom.Document source)
converts Document to DOMSource object |
static javax.xml.transform.Source |
documentToDOMSource(org.w3c.dom.Document source,
java.lang.String systemId)
converts Document to DOMSource object |
static java.lang.String |
documentToString(org.w3c.dom.Document source)
converst XML Document into String |
static java.lang.String |
documentToString(org.w3c.dom.Document source,
XMLUtilities xmlUtilities)
converst XML Document into String |
static org.w3c.dom.NodeList |
evaluateXPath(java.lang.String query,
org.w3c.dom.Node context)
evaluates specified XPath expression on specified context node |
static org.w3c.dom.NodeList |
evaluateXPath(java.lang.String query,
org.w3c.dom.Node context,
javax.xml.namespace.NamespaceContext namespaces)
evaluates specified XPath expression on specified context node |
static org.w3c.dom.NodeList |
evaluateXPath(java.lang.String query,
org.w3c.dom.Node context,
javax.xml.namespace.NamespaceContext namespaces,
XMLUtilities xmlUtilities)
evaluates specified XPath expression on specified context node |
static org.w3c.dom.NodeList |
evaluateXPath(java.lang.String query,
org.w3c.dom.Node context,
XMLUtilities xmlUtilities)
evaluates specified XPath expression on specified context node |
static org.w3c.dom.Node |
getFirstNodeForXPath(java.lang.String query,
org.w3c.dom.Node context)
evaluates specified XPath expression and returnes first Node if XPath has matches |
static org.w3c.dom.Node |
getFirstNodeForXPath(java.lang.String query,
org.w3c.dom.Node context,
javax.xml.namespace.NamespaceContext namespaces)
evaluates specified XPath expression and returnes first Node if XPath has matches |
static org.w3c.dom.Node |
getFirstNodeForXPath(java.lang.String query,
org.w3c.dom.Node context,
javax.xml.namespace.NamespaceContext namespaces,
XMLUtilities xmlUtilities)
evaluates specified XPath expression and returnes first Node if XPath has matches |
static org.w3c.dom.Node |
getFirstNodeForXPath(java.lang.String query,
org.w3c.dom.Node context,
XMLUtilities xmlUtilities)
evaluates specified XPath expression and returnes first Node if XPath has matches |
static javax.xml.parsers.DocumentBuilder |
getInternalDocumentBuilder()
obtains DocumentBuilder object internaly used by the XMLUtilities static methods |
static javax.xml.parsers.DocumentBuilderFactory |
getInternalDocumentBuilderFactory()
obtains DocumentBuilderFactory object internaly used by the XMLUtilities static methods |
static javax.xml.namespace.NamespaceContext |
getInternalNamespaceContext()
obtains NamespaceContext object internaly used by the XMLUtilities static methods |
static javax.xml.validation.SchemaFactory |
getInternalSchemaFactory()
obtains SchemaFactory object internaly used by the XMLUtilities static methods |
static javax.xml.transform.Transformer |
getInternalTransformer()
obtains Transformer object internaly used by the XMLUtilities static methods |
static javax.xml.transform.TransformerFactory |
getInternalTransformerFactory()
obtains TransformerFactory object internaly used by the XMLUtilities static methods |
static javax.xml.xpath.XPath |
getInternalXPath()
obtains XPath object internaly used by the XMLUtilities static methods |
static javax.xml.xpath.XPathFactory |
getInternalXPathFactory()
obtains XPathFactory object internaly used by the XMLUtilities static methods |
private static void |
initializeXMLUtilities()
initializes XMLUtilities static member for the static usage |
static void |
initializeXMLUtilities(XMLUtilities xmlUtilities)
initializes XMLUtilities static member for the static usage using specified XMLUtilities |
static org.w3c.dom.Document |
loadDocumentFromFile(java.io.File file)
loads XML from file specified with the File object |
static org.w3c.dom.Document |
loadDocumentFromFile(java.io.File file,
javax.xml.parsers.DocumentBuilder documentBuilder)
loads XML from file specified with the file object |
static org.w3c.dom.Document |
loadDocumentFromFile(java.io.File file,
javax.xml.parsers.DocumentBuilder documentBuilder,
XMLUtilities xmlUtilities)
loads XML from file specified with the file object |
static org.w3c.dom.Document |
loadDocumentFromFile(java.io.File file,
XMLUtilities xmlUtilities)
loads XML from file specified with the File object |
static org.w3c.dom.Document |
loadDocumentFromFile(java.lang.String fileName)
loads XML from file specified with file name |
static org.w3c.dom.Document |
loadDocumentFromFile(java.lang.String fileName,
javax.xml.parsers.DocumentBuilder documentBuilder)
loads XML from file specified with file name |
static org.w3c.dom.Document |
loadDocumentFromFile(java.lang.String fileName,
javax.xml.parsers.DocumentBuilder documentBuilder,
XMLUtilities xmlUtilities)
loads XML from file specified with file name |
static org.w3c.dom.Document |
loadDocumentFromFile(java.lang.String fileName,
XMLUtilities xmlUtilities)
loads XML from file specified with file name |
static org.w3c.dom.Document |
loadDocumentFromStream(java.io.InputStream is)
loads XML from specified stream |
static org.w3c.dom.Document |
loadDocumentFromStream(java.io.InputStream is,
javax.xml.parsers.DocumentBuilder documentBuilder)
loads XML from specified input stream |
static org.w3c.dom.Document |
loadDocumentFromStream(java.io.InputStream is,
javax.xml.parsers.DocumentBuilder documentBuilder,
XMLUtilities xmlUtilities)
loads XML from specified input stream |
static org.w3c.dom.Document |
loadDocumentFromStream(java.io.InputStream is,
XMLUtilities xmlUtilities)
loads XML from specified stream |
static org.w3c.dom.Document |
loadDocumentFromString(java.lang.String source)
loads document from String into the Document |
static org.w3c.dom.Document |
loadDocumentFromString(java.lang.String source,
javax.xml.parsers.DocumentBuilder documentBuilder)
loads document from String into the Document |
static org.w3c.dom.Document |
loadDocumentFromString(java.lang.String source,
javax.xml.parsers.DocumentBuilder documentBuilder,
XMLUtilities xmlUtilities)
loads document from String into the Document |
static org.w3c.dom.Document |
loadDocumentFromString(java.lang.String source,
XMLUtilities xmlUtilities)
loads document from String into the Document |
static javax.xml.transform.Source |
loadSourceFromString(java.lang.String source)
loads XML from String |
static javax.xml.transform.Source |
loadSourceFromString(java.lang.String source,
java.lang.String systemId)
loads XML from String |
static java.lang.String |
sourceToString(javax.xml.transform.Source source)
converts XML Source into String |
static java.lang.String |
sourceToString(javax.xml.transform.Source source,
XMLUtilities xmlUtilities)
converts XML Source into String |
static org.w3c.dom.Document |
transformToDocument(javax.xml.transform.Source xsltTemplate,
javax.xml.transform.Source document)
transforms specified XML using specified XSLT template |
static org.w3c.dom.Document |
transformToDocument(javax.xml.transform.Source xsltTemplate,
javax.xml.transform.Source document,
java.util.Map<java.lang.String,java.lang.Object> parameters)
transforms specified XML using specified XSLT template |
static org.w3c.dom.Document |
transformToDocument(javax.xml.transform.Source xsltTemplate,
javax.xml.transform.Source document,
java.util.Map<java.lang.String,java.lang.Object> parameters,
XMLUtilities xmlUtilities)
transforms specified XML using specified XSLT template |
static org.w3c.dom.Document |
transformToDocument(javax.xml.transform.Source xsltTemplate,
javax.xml.transform.Source document,
XMLUtilities xmlUtilities)
transforms specified XML using specified XSLT template |
static org.w3c.dom.Document |
transformToDocument(javax.xml.transform.Templates xsltTemplate,
javax.xml.transform.Source document)
transforms specified XML document using XSLT (compiled) template |
static org.w3c.dom.Document |
transformToDocument(javax.xml.transform.Templates xsltTemplate,
javax.xml.transform.Source document,
java.util.Map<java.lang.String,java.lang.Object> parameters)
transforms specified XML document using XSLT (compiled) template |
static org.w3c.dom.Document |
transformToDocument(javax.xml.transform.Templates xsltTemplate,
javax.xml.transform.Source document,
java.util.Map<java.lang.String,java.lang.Object> parameters,
XMLUtilities xmlUtilities)
transforms specified XML document using XSLT (compiled) template |
static org.w3c.dom.Document |
transformToDocument(javax.xml.transform.Templates xsltTemplate,
javax.xml.transform.Source document,
XMLUtilities xmlUtilities)
transforms specified XML document using XSLT (compiled) template |
static java.lang.String |
transformToString(javax.xml.transform.Source xsltTemplate,
javax.xml.transform.Source document)
transformes specified XML document using specified XSLT template |
static java.lang.String |
transformToString(javax.xml.transform.Source xsltTemplate,
javax.xml.transform.Source document,
java.util.Map<java.lang.String,java.lang.Object> parameters)
transformes specified XML document using specified XSLT template |
static java.lang.String |
transformToString(javax.xml.transform.Source xsltTemplate,
javax.xml.transform.Source document,
java.util.Map<java.lang.String,java.lang.Object> parameters,
XMLUtilities xmlUtilities)
transformes specified XML document using specified XSLT template |
static java.lang.String |
transformToString(javax.xml.transform.Source xsltTemplate,
javax.xml.transform.Source document,
XMLUtilities xmlUtilities)
transformes specified XML document using specified XSLT template |
static java.lang.String |
transformToString(javax.xml.transform.Templates xsltTemplate,
javax.xml.transform.Source document)
transforms specified XML document using XSLT (compiled) template |
static java.lang.String |
transformToString(javax.xml.transform.Templates xsltTemplate,
javax.xml.transform.Source document,
java.util.Map<java.lang.String,java.lang.Object> parameters)
transforms specified XML document using XSLT (compiled) template |
static java.lang.String |
transformToString(javax.xml.transform.Templates xsltTemplate,
javax.xml.transform.Source document,
java.util.Map<java.lang.String,java.lang.Object> parameters,
XMLUtilities xmlUtilities)
transforms specified XML document using XSLT (compiled) template |
static java.lang.String |
transformToString(javax.xml.transform.Templates xsltTemplate,
javax.xml.transform.Source document,
XMLUtilities xmlUtilities)
transforms specified XML document using XSLT (compiled) template |
static java.lang.String |
validateXmlUsingSchema(javax.xml.transform.Source xmlDocument,
javax.xml.transform.Source xmlSchema)
validates specified XML with the specified XMLScheme |
static java.lang.String |
validateXmlUsingSchema(javax.xml.transform.Source xmlDocument,
javax.xml.transform.Source xmlSchema,
XMLUtilities xmlUtilities)
validates specified XML with the specified XMLScheme |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final XMLUtilities INTERNAL_XMLUTILITIES
private static XMLUtilities xmlUtilities
Constructor Detail |
---|
protected XMLTools()
Method Detail |
---|
public static javax.xml.transform.Source documentToDOMSource(org.w3c.dom.Document source)
source
- Document XML representation
public static javax.xml.transform.Source documentToDOMSource(org.w3c.dom.Document source, java.lang.String systemId)
source
- Document XML representationsystemId
- system ID
public static java.lang.String documentToString(org.w3c.dom.Document source, XMLUtilities xmlUtilities) throws javax.xml.transform.TransformerException, java.io.IOException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
source
- Document to convertxmlUtilities
- custom XMLUtilities; can be null
javax.xml.transform.TransformerException
java.io.IOException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static java.lang.String documentToString(org.w3c.dom.Document source) throws javax.xml.transform.TransformerException, java.io.IOException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
source
- Document to convert
javax.xml.transform.TransformerException
java.io.IOException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.NodeList evaluateXPath(java.lang.String query, org.w3c.dom.Node context, javax.xml.namespace.NamespaceContext namespaces, XMLUtilities xmlUtilities) throws javax.xml.xpath.XPathExpressionException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
query
- XPath expressioncontext
- context nodenamespaces
- namespace contextxmlUtilities
- custom XMLUtilities; can be null
javax.xml.xpath.XPathExpressionException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.NodeList evaluateXPath(java.lang.String query, org.w3c.dom.Node context, javax.xml.namespace.NamespaceContext namespaces) throws javax.xml.xpath.XPathExpressionException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
query
- XPath expressioncontext
- context nodenamespaces
- namespace context
javax.xml.xpath.XPathExpressionException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.NodeList evaluateXPath(java.lang.String query, org.w3c.dom.Node context, XMLUtilities xmlUtilities) throws javax.xml.xpath.XPathExpressionException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
query
- XPath expressioncontext
- context nodexmlUtilities
- custom XMLUtilities; can be null
javax.xml.xpath.XPathExpressionException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.NodeList evaluateXPath(java.lang.String query, org.w3c.dom.Node context) throws javax.xml.xpath.XPathExpressionException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
query
- XPath expressioncontext
- context node
javax.xml.xpath.XPathExpressionException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Node getFirstNodeForXPath(java.lang.String query, org.w3c.dom.Node context, XMLUtilities xmlUtilities) throws javax.xml.xpath.XPathExpressionException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
query
- XPath expressioncontext
- context nodexmlUtilities
- xustom XMLUtilities; can be null
javax.xml.xpath.XPathExpressionException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Node getFirstNodeForXPath(java.lang.String query, org.w3c.dom.Node context) throws javax.xml.xpath.XPathExpressionException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
query
- XPath expressioncontext
- context node
javax.xml.xpath.XPathExpressionException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Node getFirstNodeForXPath(java.lang.String query, org.w3c.dom.Node context, javax.xml.namespace.NamespaceContext namespaces, XMLUtilities xmlUtilities) throws javax.xml.xpath.XPathExpressionException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
query
- XPath expressioncontext
- context nodenamespaces
- namespace contextxmlUtilities
- xustom XMLUtilities; can be null
javax.xml.xpath.XPathExpressionException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Node getFirstNodeForXPath(java.lang.String query, org.w3c.dom.Node context, javax.xml.namespace.NamespaceContext namespaces) throws javax.xml.xpath.XPathExpressionException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
query
- XPath expressioncontext
- context nodenamespaces
- namespace context
javax.xml.xpath.XPathExpressionException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
private static void initializeXMLUtilities() throws javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.transform.TransformerConfigurationException
public static void initializeXMLUtilities(XMLUtilities xmlUtilities)
xmlUtilities
- XMLUtilities to usepublic static javax.xml.validation.SchemaFactory getInternalSchemaFactory()
public static javax.xml.parsers.DocumentBuilder getInternalDocumentBuilder()
public static javax.xml.transform.TransformerFactory getInternalTransformerFactory()
public static javax.xml.transform.Transformer getInternalTransformer()
public static javax.xml.xpath.XPathFactory getInternalXPathFactory()
public static javax.xml.namespace.NamespaceContext getInternalNamespaceContext()
public static java.lang.String validateXmlUsingSchema(javax.xml.transform.Source xmlDocument, javax.xml.transform.Source xmlSchema, XMLUtilities xmlUtilities) throws javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, java.io.IOException
xmlDocument
- XML document to validatexmlSchema
- XMLSchemaxmlUtilities
- specified XMLUtilities. if null, internal will be used
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
public static java.lang.String validateXmlUsingSchema(javax.xml.transform.Source xmlDocument, javax.xml.transform.Source xmlSchema) throws javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, java.io.IOException
xmlDocument
- XML document to validatexmlSchema
- XMLSchema
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
public static org.w3c.dom.Document loadDocumentFromFile(java.lang.String fileName, XMLUtilities xmlUtilities) throws java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
fileName
- file to loadxmlUtilities
- custom XMLUtilities object; can be null
java.io.FileNotFoundException
java.io.IOException
org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Document loadDocumentFromFile(java.lang.String fileName) throws java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
fileName
- file to load
java.io.FileNotFoundException
java.io.IOException
org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Document loadDocumentFromFile(java.lang.String fileName, javax.xml.parsers.DocumentBuilder documentBuilder, XMLUtilities xmlUtilities) throws java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
fileName
- file to loaddocumentBuilder
- custom DocumentBuilderxmlUtilities
- custom XMLUtilities; can be null
java.io.FileNotFoundException
java.io.IOException
org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Document loadDocumentFromFile(java.lang.String fileName, javax.xml.parsers.DocumentBuilder documentBuilder) throws java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
fileName
- file to loaddocumentBuilder
- custom DocumentBuilder
java.io.FileNotFoundException
java.io.IOException
org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Document loadDocumentFromFile(java.io.File file, XMLUtilities xmlUtilities) throws java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
file
- file to loadxmlUtilities
- custom XMLUtilities; can be null
java.io.FileNotFoundException
java.io.IOException
org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Document loadDocumentFromFile(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
file
- file to load
java.io.FileNotFoundException
java.io.IOException
org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Document loadDocumentFromFile(java.io.File file, javax.xml.parsers.DocumentBuilder documentBuilder, XMLUtilities xmlUtilities) throws java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
file
- fileto loaddocumentBuilder
- custom document builderxmlUtilities
- custom XMLUtilities; can be null
java.io.FileNotFoundException
java.io.IOException
org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Document loadDocumentFromFile(java.io.File file, javax.xml.parsers.DocumentBuilder documentBuilder) throws java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException, javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException
file
- fileto loaddocumentBuilder
- custom document builder
java.io.FileNotFoundException
java.io.IOException
org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Document loadDocumentFromStream(java.io.InputStream is, XMLUtilities xmlUtilities) throws javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
is
- input streamxmlUtilities
- custom XMLUtilities (can be null)
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
public static org.w3c.dom.Document loadDocumentFromStream(java.io.InputStream is) throws javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
is
- input stream
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
public static org.w3c.dom.Document loadDocumentFromStream(java.io.InputStream is, javax.xml.parsers.DocumentBuilder documentBuilder, XMLUtilities xmlUtilities) throws javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
is
- input streamdocumentBuilder
- custom Document BuilderxmlUtilities
- custom XMLUtilities (can be null)
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
public static org.w3c.dom.Document loadDocumentFromStream(java.io.InputStream is, javax.xml.parsers.DocumentBuilder documentBuilder) throws javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
is
- input streamdocumentBuilder
- custom Document Builder
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
public static javax.xml.parsers.DocumentBuilderFactory getInternalDocumentBuilderFactory()
public static javax.xml.xpath.XPath getInternalXPath()
public static java.lang.String transformToString(javax.xml.transform.Source xsltTemplate, javax.xml.transform.Source document) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
xsltTemplate
- template to usedocument
- source XML document
String
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
public static java.lang.String transformToString(javax.xml.transform.Source xsltTemplate, javax.xml.transform.Source document, XMLUtilities xmlUtilities) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
xsltTemplate
- XSLT templatedocument
- source XML documentxmlUtilities
- custom XMLUtilities
String
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
public static java.lang.String transformToString(javax.xml.transform.Source xsltTemplate, javax.xml.transform.Source document, java.util.Map<java.lang.String,java.lang.Object> parameters) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
xsltTemplate
- XSLT template to usedocument
- source XML documentparameters
- parameters for the XSLT processor
String
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
public static java.lang.String transformToString(javax.xml.transform.Source xsltTemplate, javax.xml.transform.Source document, java.util.Map<java.lang.String,java.lang.Object> parameters, XMLUtilities xmlUtilities) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
xsltTemplate
- XSLT template to usedocument
- source XML documentparameters
- parameters for the XSLT processorxmlUtilities
- custom XMLUtilities
to use
String
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
public static java.lang.String transformToString(javax.xml.transform.Templates xsltTemplate, javax.xml.transform.Source document, java.util.Map<java.lang.String,java.lang.Object> parameters, XMLUtilities xmlUtilities) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
xsltTemplate
- template to usedocument
- XML document to transformparameters
- parameters for the transformationxmlUtilities
- custom XMLUtilities
to use
String
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
public static java.lang.String transformToString(javax.xml.transform.Templates xsltTemplate, javax.xml.transform.Source document, java.util.Map<java.lang.String,java.lang.Object> parameters) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
xsltTemplate
- template to usedocument
- XML document to transformparameters
- parameters for the transformation
String
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
public static java.lang.String transformToString(javax.xml.transform.Templates xsltTemplate, javax.xml.transform.Source document, XMLUtilities xmlUtilities) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
xsltTemplate
- template to usedocument
- XML document to transformxmlUtilities
- custom XMLUtilities
to use
String
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
public static java.lang.String transformToString(javax.xml.transform.Templates xsltTemplate, javax.xml.transform.Source document) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
xsltTemplate
- template to usedocument
- XML document to transform
String
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
public static org.w3c.dom.Document transformToDocument(javax.xml.transform.Templates xsltTemplate, javax.xml.transform.Source document, java.util.Map<java.lang.String,java.lang.Object> parameters, XMLUtilities xmlUtilities) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.xml.transform.TransformerException
xsltTemplate
- template to usedocument
- XML document to transformparameters
- parameters for the transformationxmlUtilities
- custom XMLUtilities
to use
Document
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException
public static org.w3c.dom.Document transformToDocument(javax.xml.transform.Templates xsltTemplate, javax.xml.transform.Source document, java.util.Map<java.lang.String,java.lang.Object> parameters) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.xml.transform.TransformerException
xsltTemplate
- template to usedocument
- XML document to transformparameters
- parameters for the transformation
Document
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException
public static org.w3c.dom.Document transformToDocument(javax.xml.transform.Templates xsltTemplate, javax.xml.transform.Source document, XMLUtilities xmlUtilities) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.xml.transform.TransformerException
xsltTemplate
- template to usedocument
- XML document to transformxmlUtilities
- custom XMLUtilities
to use
Document
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException
public static org.w3c.dom.Document transformToDocument(javax.xml.transform.Templates xsltTemplate, javax.xml.transform.Source document) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.xml.transform.TransformerException
xsltTemplate
- template to usedocument
- XML document to transform
Document
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException
public static org.w3c.dom.Document loadDocumentFromString(java.lang.String source) throws javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
String
into the Document
source
- source XML
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static org.w3c.dom.Document loadDocumentFromString(java.lang.String source, XMLUtilities xmlUtilities) throws javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
String
into the Document
source
- source XMLxmlUtilities
- custom XMLUtilities
to use
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static org.w3c.dom.Document loadDocumentFromString(java.lang.String source, javax.xml.parsers.DocumentBuilder documentBuilder) throws org.xml.sax.SAXException, java.io.IOException
String
into the Document
source
- source XMLdocumentBuilder
- custom document builder
org.xml.sax.SAXException
java.io.IOException
public static org.w3c.dom.Document loadDocumentFromString(java.lang.String source, javax.xml.parsers.DocumentBuilder documentBuilder, XMLUtilities xmlUtilities) throws javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
String
into the Document
source
- source XMLdocumentBuilder
- cutom DocumentBuilder to usexmlUtilities
- custom XMLUtilities
to use
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static java.lang.String sourceToString(javax.xml.transform.Source source) throws javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, java.io.IOException, javax.xml.transform.TransformerException
source
- source Document
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
javax.xml.transform.TransformerException
public static java.lang.String sourceToString(javax.xml.transform.Source source, XMLUtilities xmlUtilities) throws javax.xml.transform.TransformerConfigurationException, javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, java.io.IOException, javax.xml.transform.TransformerException
source
- source DocumentxmlUtilities
- XMLUtilities
to use
javax.xml.transform.TransformerConfigurationException
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
javax.xml.transform.TransformerException
public static org.w3c.dom.Document transformToDocument(javax.xml.transform.Source xsltTemplate, javax.xml.transform.Source document, java.util.Map<java.lang.String,java.lang.Object> parameters, XMLUtilities xmlUtilities) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.xml.transform.TransformerException
xsltTemplate
- XSLT templatedocument
- source XML documentparameters
- parameters for the templatexmlUtilities
- XMLUtilities
to use
Document
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException
public static org.w3c.dom.Document transformToDocument(javax.xml.transform.Source xsltTemplate, javax.xml.transform.Source document, java.util.Map<java.lang.String,java.lang.Object> parameters) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.xml.transform.TransformerException
xsltTemplate
- XSLT templatedocument
- source XML documentparameters
- parameters for the template
Document
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException
public static org.w3c.dom.Document transformToDocument(javax.xml.transform.Source xsltTemplate, javax.xml.transform.Source document, XMLUtilities xmlUtilities) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.xml.transform.TransformerException
xsltTemplate
- XSLT templatedocument
- source XML documentxmlUtilities
- XMLUtilities
to use
Document
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException
public static org.w3c.dom.Document transformToDocument(javax.xml.transform.Source xsltTemplate, javax.xml.transform.Source document) throws javax.xml.xpath.XPathFactoryConfigurationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.xml.transform.TransformerException
xsltTemplate
- XSLT templatedocument
- source XML document
Document
javax.xml.xpath.XPathFactoryConfigurationException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException
public static javax.xml.transform.Source loadSourceFromString(java.lang.String source)
source
- source string
Source
public static javax.xml.transform.Source loadSourceFromString(java.lang.String source, java.lang.String systemId)
source
- source stringsystemId
- system ID
Source
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |