public class JAXPPlatform extends java.lang.Object implements XMLPlatform
Purpose: An implementation of XMLPlatform using JAXP 1.3 APIs.
| Constructor and Description |
|---|
JAXPPlatform() |
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Document |
createDocument()
Creates a new document.
|
org.w3c.dom.Document |
createDocumentWithPublicIdentifier(java.lang.String name,
java.lang.String publicIdentifier,
java.lang.String systemIdentifier)
Creates a new document with the specified public and system
identifiers in the DOCTYPE, and adds a root element with the
specified name.
|
org.w3c.dom.Document |
createDocumentWithSystemIdentifier(java.lang.String name,
java.lang.String systemIdentifier)
Creates a new document with the specified system identifier in
the DOCTYPE, and adds a root element with the specified name.
|
javax.xml.validation.SchemaFactory |
getSchemaFactory() |
javax.xml.xpath.XPathFactory |
getXPathFactory() |
boolean |
isWhitespaceNode(org.w3c.dom.Text text)
Check to see if the text node represents a whitespace node.
|
void |
namespaceQualifyFragment(org.w3c.dom.Element next) |
XMLParser |
newXMLParser()
Return a concrete implementation of the XML parser abstraction that is
compatible with the XML Platform.
|
XMLParser |
newXMLParser(java.util.Map<java.lang.String,java.lang.Boolean> parserFeatures)
Return a concrete implementation of the XML parser abstraction that is
compatible with the XML Platform, based on these parser features.
|
XMLTransformer |
newXMLTransformer()
Return a concrete implementation of the XML transformer abstraction that is
compatible with the XML Platform.
|
java.lang.String |
resolveNamespacePrefix(org.w3c.dom.Node contextNode,
java.lang.String namespacePrefix)
Return the namespace URI for the specified namespace prefix
relative to the context node.
|
org.w3c.dom.NodeList |
selectNodesAdvanced(org.w3c.dom.Node contextNode,
java.lang.String xPathString,
XMLNamespaceResolver xmlNamespaceResolver)
Execute advanced XPath statements that are required for TopLink EIS.
|
org.w3c.dom.Node |
selectSingleNodeAdvanced(org.w3c.dom.Node contextNode,
java.lang.String xPathString,
XMLNamespaceResolver xmlNamespaceResolver)
Execute advanced XPath statements that are required for TopLink EIS.
|
boolean |
validate(org.w3c.dom.Element elem,
XMLDescriptor xmlDescriptor,
org.xml.sax.ErrorHandler handler)
Validates a document fragment against a complex type or element in the XML schema
|
boolean |
validateDocument(org.w3c.dom.Document document,
java.net.URL xmlSchemaURL,
org.xml.sax.ErrorHandler errorHandler)
Validate the document against the XML Schema
|
public javax.xml.xpath.XPathFactory getXPathFactory()
public javax.xml.validation.SchemaFactory getSchemaFactory()
public org.w3c.dom.NodeList selectNodesAdvanced(org.w3c.dom.Node contextNode,
java.lang.String xPathString,
XMLNamespaceResolver xmlNamespaceResolver)
throws XMLPlatformException
selectNodesAdvanced in interface XMLPlatformcontextNode - the node relative to which the XPath
statement will be executed.
xPath the XPath statement
namespaceResolver used to resolve namespace prefixes
to the corresponding namespace URIXMLPlatformExceptionpublic org.w3c.dom.Node selectSingleNodeAdvanced(org.w3c.dom.Node contextNode,
java.lang.String xPathString,
XMLNamespaceResolver xmlNamespaceResolver)
throws XMLPlatformException
selectSingleNodeAdvanced in interface XMLPlatformcontextNode - xPath - xmlNamespaceResolver - XMLPlatformExceptionpublic boolean isWhitespaceNode(org.w3c.dom.Text text)
XMLPlatformisWhitespaceNode in interface XMLPlatformtext - a potential whitespace nodepublic XMLParser newXMLParser()
XMLPlatformnewXMLParser in interface XMLPlatformpublic XMLParser newXMLParser(java.util.Map<java.lang.String,java.lang.Boolean> parserFeatures)
XMLPlatformnewXMLParser in interface XMLPlatformpublic XMLTransformer newXMLTransformer()
XMLPlatformnewXMLTransformer in interface XMLPlatformpublic org.w3c.dom.Document createDocument()
throws XMLPlatformException
XMLPlatformcreateDocument in interface XMLPlatformXMLPlatformExceptionpublic org.w3c.dom.Document createDocumentWithPublicIdentifier(java.lang.String name,
java.lang.String publicIdentifier,
java.lang.String systemIdentifier)
throws XMLPlatformException
XMLPlatformcreateDocumentWithPublicIdentifier in interface XMLPlatformname - the name of the root element
publicIdentifier the public identifier
systemIdentifier the system identifierXMLPlatformExceptionpublic org.w3c.dom.Document createDocumentWithSystemIdentifier(java.lang.String name,
java.lang.String systemIdentifier)
throws XMLPlatformException
XMLPlatformcreateDocumentWithSystemIdentifier in interface XMLPlatformname - the name of the root element
systemIdentifier the system identifierXMLPlatformExceptionpublic java.lang.String resolveNamespacePrefix(org.w3c.dom.Node contextNode,
java.lang.String namespacePrefix)
throws XMLPlatformException
XMLPlatformresolveNamespacePrefix in interface XMLPlatformcontextNode - the node to be looking for the namespace
URI
namespacePrefix the namespace prefixXMLPlatformExceptionpublic boolean validateDocument(org.w3c.dom.Document document,
java.net.URL xmlSchemaURL,
org.xml.sax.ErrorHandler errorHandler)
throws XMLPlatformException
XMLPlatformvalidateDocument in interface XMLPlatformdocument - the document to be validated
xmlSchemaURL the XML Schema
errorHandler a mechanism for selectively ignoring errorsXMLPlatformExceptionpublic boolean validate(org.w3c.dom.Element elem,
XMLDescriptor xmlDescriptor,
org.xml.sax.ErrorHandler handler)
throws XMLPlatformException
XMLPlatformvalidate in interface XMLPlatformXMLPlatformExceptionpublic void namespaceQualifyFragment(org.w3c.dom.Element next)
namespaceQualifyFragment in interface XMLPlatformnext - Element to qualify