public class JAXPPlatform extends Object implements XMLPlatform
Purpose: An implementation of XMLPlatform using JAXP 1.3 APIs.
| Constructor and Description |
|---|
JAXPPlatform() |
| Modifier and Type | Method and Description |
|---|---|
Document |
createDocument()
Creates a new document.
|
Document |
createDocumentWithPublicIdentifier(String name,
String publicIdentifier,
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.
|
Document |
createDocumentWithSystemIdentifier(String name,
String systemIdentifier)
Creates a new document with the specified system identifier in
the DOCTYPE, and adds a root element with the specified name.
|
SchemaFactory |
getSchemaFactory() |
XPathFactory |
getXPathFactory() |
boolean |
isSecureProcessingDisabled() |
boolean |
isWhitespaceNode(Text text)
Check to see if the text node represents a whitespace node.
|
void |
namespaceQualifyFragment(Element next) |
XMLParser |
newXMLParser()
Return a concrete implementation of the XML parser abstraction that is
compatible with the XML Platform.
|
XMLParser |
newXMLParser(Map<String,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.
|
String |
resolveNamespacePrefix(Node contextNode,
String namespacePrefix)
Return the namespace URI for the specified namespace prefix
relative to the context node.
|
NodeList |
selectNodesAdvanced(Node contextNode,
String xPathString,
XMLNamespaceResolver xmlNamespaceResolver)
Execute advanced XPath statements that are required for TopLink EIS.
|
Node |
selectSingleNodeAdvanced(Node contextNode,
String xPathString,
XMLNamespaceResolver xmlNamespaceResolver)
Execute advanced XPath statements that are required for TopLink EIS.
|
void |
setDisableSecureProcessing(boolean disableSecureProcessing) |
boolean |
validate(Element elem,
XMLDescriptor xmlDescriptor,
ErrorHandler handler)
Validates a document fragment against a complex type or element in the XML schema
|
boolean |
validateDocument(Document document,
URL xmlSchemaURL,
ErrorHandler errorHandler)
Validate the document against the XML Schema
|
public XPathFactory getXPathFactory()
public SchemaFactory getSchemaFactory()
public NodeList selectNodesAdvanced(Node contextNode, 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 Node selectSingleNodeAdvanced(Node contextNode, String xPathString, XMLNamespaceResolver xmlNamespaceResolver) throws XMLPlatformException
selectSingleNodeAdvanced in interface XMLPlatformcontextNode - xPathString - xmlNamespaceResolver - XMLPlatformExceptionpublic boolean isWhitespaceNode(Text text)
XMLPlatformisWhitespaceNode in interface XMLPlatformtext - a potential whitespace nodepublic XMLParser newXMLParser()
XMLPlatformnewXMLParser in interface XMLPlatformpublic XMLParser newXMLParser(Map<String,Boolean> parserFeatures)
XMLPlatformnewXMLParser in interface XMLPlatformpublic XMLTransformer newXMLTransformer()
XMLPlatformnewXMLTransformer in interface XMLPlatformpublic Document createDocument() throws XMLPlatformException
XMLPlatformcreateDocument in interface XMLPlatformXMLPlatformExceptionpublic Document createDocumentWithPublicIdentifier(String name, String publicIdentifier, String systemIdentifier) throws XMLPlatformException
XMLPlatformcreateDocumentWithPublicIdentifier in interface XMLPlatformname - the name of the root element
publicIdentifier the public identifier
systemIdentifier the system identifierXMLPlatformExceptionpublic Document createDocumentWithSystemIdentifier(String name, String systemIdentifier) throws XMLPlatformException
XMLPlatformcreateDocumentWithSystemIdentifier in interface XMLPlatformname - the name of the root element
systemIdentifier the system identifierXMLPlatformExceptionpublic String resolveNamespacePrefix(Node contextNode, String namespacePrefix) throws XMLPlatformException
XMLPlatformresolveNamespacePrefix in interface XMLPlatformcontextNode - the node to be looking for the namespace
URI
namespacePrefix the namespace prefixXMLPlatformExceptionpublic boolean validateDocument(Document document, URL xmlSchemaURL, ErrorHandler errorHandler) throws XMLPlatformException
XMLPlatformvalidateDocument in interface XMLPlatformdocument - the document to be validatedxmlSchemaURL - the XML SchemaerrorHandler - a mechanism for selectively ignoring errorsXMLPlatformExceptionpublic boolean validate(Element elem, XMLDescriptor xmlDescriptor, ErrorHandler handler) throws XMLPlatformException
XMLPlatformvalidate in interface XMLPlatformXMLPlatformExceptionpublic void namespaceQualifyFragment(Element next)
namespaceQualifyFragment in interface XMLPlatformnext - Element to qualifypublic void setDisableSecureProcessing(boolean disableSecureProcessing)
setDisableSecureProcessing in interface XMLPlatformpublic boolean isSecureProcessingDisabled()
isSecureProcessingDisabled in interface XMLPlatformCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.