public class XDKPlatform extends Object implements XMLPlatform
Purpose: An implementation of XMLPlatform using Oracle XDK APIs.
| Constructor and Description |
|---|
XDKPlatform() |
| 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.
|
protected oracle.xml.parser.schema.XSDNode |
findChildNode(oracle.xml.parser.schema.XSDElement parent,
String childName)
This convenience method will iterate through a parent element's children and return the
node corresponding to 'nodeName'.
|
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 xPath,
XMLNamespaceResolver xmlNamespaceResolver)
Execute advanced XPath statements that are required for TopLink EIS.
|
Node |
selectSingleNodeAdvanced(Node contextNode,
String xPath,
XMLNamespaceResolver xmlNamespaceResolver)
Execute advanced XPath statements that are required for TopLink EIS.
|
void |
setDisableSecureProcessing(boolean disableSecureProcessing) |
boolean |
validate(Element elem,
XMLDescriptor xmlDescriptor,
ErrorHandler errorHandler)
Validates a document fragment against a complex type or element in the XML schema
|
boolean |
validateDocument(Document document,
URL xmlSchemaURL,
ErrorHandler errorHandler)
Validates a document against an XML schema
|
public Node selectSingleNodeAdvanced(Node contextNode, String xPath, XMLNamespaceResolver xmlNamespaceResolver) throws XMLPlatformException
selectSingleNodeAdvanced in interface XMLPlatformcontextNode - xPath - xmlNamespaceResolver - XMLPlatformExceptionpublic NodeList selectNodesAdvanced(Node contextNode, String xPath, 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 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 boolean isWhitespaceNode(Text text)
XMLPlatformisWhitespaceNode in interface XMLPlatformtext - a potential whitespace nodepublic 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 XMLParser newXMLParser()
XMLPlatformnewXMLParser in interface XMLPlatformpublic XMLParser newXMLParser(Map<String,Boolean> parserFeatures)
XMLPlatformnewXMLParser in interface XMLPlatformpublic XMLTransformer newXMLTransformer()
XMLPlatformnewXMLTransformer in interface XMLPlatformpublic boolean validateDocument(Document document, URL xmlSchemaURL, ErrorHandler errorHandler) throws XMLPlatformException
validateDocument in interface XMLPlatformdocument - - the document to be validatedxmlSchemaURL - - the schema URLerrorHandler - - the error handlerXMLPlatformExceptionpublic boolean validate(Element elem, XMLDescriptor xmlDescriptor, ErrorHandler errorHandler) throws XMLPlatformException
validate in interface XMLPlatformelem - - the document which contains the document fragment to be validatedxmlDescriptor - - the path to the complex type or element to be validated against in the schemaerrorHandler - - the error handlerXMLPlatformExceptionprotected oracle.xml.parser.schema.XSDNode findChildNode(oracle.xml.parser.schema.XSDElement parent,
String childName)
parent - - the parent elementchildName - - the node name to be locatedpublic 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.