Class XDKPlatform
java.lang.Object
org.eclipse.persistence.platform.xml.xdk.XDKPlatform
- All Implemented Interfaces:
- XMLPlatform
Purpose: An implementation of XMLPlatform using Oracle XDK APIs.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreates a new 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.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.XSDNodefindChildNode(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'.booleanbooleanisWhitespaceNode(Text text) Check to see if the text node represents a whitespace node.voidReturn a concrete implementation of the XML parser abstraction that is compatible with the XML Platform.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.Return a concrete implementation of the XML transformer abstraction that is compatible with the XML Platform.resolveNamespacePrefix(Node contextNode, String namespacePrefix) Return the namespace URI for the specified namespace prefix relative to the context node.selectNodesAdvanced(Node contextNode, String xPath, XMLNamespaceResolver xmlNamespaceResolver) Execute advanced XPath statements that are required for TopLink EIS.selectSingleNodeAdvanced(Node contextNode, String xPath, XMLNamespaceResolver xmlNamespaceResolver) Execute advanced XPath statements that are required for TopLink EIS.voidsetDisableSecureProcessing(boolean disableSecureProcessing) booleanvalidate(Element elem, XMLDescriptor xmlDescriptor, ErrorHandler errorHandler) Validates a document fragment against a complex type or element in the XML schemabooleanvalidateDocument(Document document, URL xmlSchemaURL, ErrorHandler errorHandler) Validates a document against an XML schema
- 
Constructor Details- 
XDKPlatformpublic XDKPlatform()
 
- 
- 
Method Details- 
selectSingleNodeAdvancedpublic Node selectSingleNodeAdvanced(Node contextNode, String xPath, XMLNamespaceResolver xmlNamespaceResolver) throws XMLPlatformException Execute advanced XPath statements that are required for TopLink EIS.- Specified by:
- selectSingleNodeAdvancedin interface- XMLPlatform
- Parameters:
- contextNode-
- xPath-
- xmlNamespaceResolver-
- Returns:
- Throws:
- XMLPlatformException
 
- 
selectNodesAdvancedpublic NodeList selectNodesAdvanced(Node contextNode, String xPath, XMLNamespaceResolver xmlNamespaceResolver) throws XMLPlatformException Execute advanced XPath statements that are required for TopLink EIS.- Specified by:
- selectNodesAdvancedin interface- XMLPlatform
- Parameters:
- contextNode- 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 URI
- Returns:
- the XPath result
- Throws:
- XMLPlatformException
 
- 
createDocumentDescription copied from interface:XMLPlatformCreates a new document.- Specified by:
- createDocumentin interface- XMLPlatform
- Returns:
- the new document
- Throws:
- XMLPlatformException
 
- 
createDocumentWithPublicIdentifierpublic Document createDocumentWithPublicIdentifier(String name, String publicIdentifier, String systemIdentifier) throws XMLPlatformException Description copied from interface:XMLPlatformCreates a new document with the specified public and system identifiers in the DOCTYPE, and adds a root element with the specified name.- Specified by:
- createDocumentWithPublicIdentifierin interface- XMLPlatform
- Parameters:
- name- the name of the root element publicIdentifier the public identifier systemIdentifier the system identifier
- Returns:
- the new document
- Throws:
- XMLPlatformException
 
- 
createDocumentWithSystemIdentifierpublic Document createDocumentWithSystemIdentifier(String name, String systemIdentifier) throws XMLPlatformException Description copied from interface:XMLPlatformCreates a new document with the specified system identifier in the DOCTYPE, and adds a root element with the specified name.- Specified by:
- createDocumentWithSystemIdentifierin interface- XMLPlatform
- Parameters:
- name- the name of the root element systemIdentifier the system identifier
- Returns:
- the new document
- Throws:
- XMLPlatformException
 
- 
isWhitespaceNodeDescription copied from interface:XMLPlatformCheck to see if the text node represents a whitespace node.- Specified by:
- isWhitespaceNodein interface- XMLPlatform
- Parameters:
- text- a potential whitespace node
- Returns:
- if the text node represents a whitespace node.
 
- 
resolveNamespacePrefixpublic String resolveNamespacePrefix(Node contextNode, String namespacePrefix) throws XMLPlatformException Description copied from interface:XMLPlatformReturn the namespace URI for the specified namespace prefix relative to the context node.- Specified by:
- resolveNamespacePrefixin interface- XMLPlatform
- Parameters:
- contextNode- the node to be looking for the namespace URI namespacePrefix the namespace prefix
- Returns:
- the namespace URI for the specified prefix
- Throws:
- XMLPlatformException
 
- 
newXMLParserDescription copied from interface:XMLPlatformReturn a concrete implementation of the XML parser abstraction that is compatible with the XML Platform.- Specified by:
- newXMLParserin interface- XMLPlatform
- Returns:
- a platform specific XML parser
 
- 
newXMLParserDescription copied from interface:XMLPlatformReturn a concrete implementation of the XML parser abstraction that is compatible with the XML Platform, based on these parser features.- Specified by:
- newXMLParserin interface- XMLPlatform
- Returns:
- a platform specific XML parser
 
- 
newXMLTransformerDescription copied from interface:XMLPlatformReturn a concrete implementation of the XML transformer abstraction that is compatible with the XML Platform.- Specified by:
- newXMLTransformerin interface- XMLPlatform
- Returns:
- a platform specific XML transformer
 
- 
validateDocumentpublic boolean validateDocument(Document document, URL xmlSchemaURL, ErrorHandler errorHandler) throws XMLPlatformException Validates a document against an XML schema- Specified by:
- validateDocumentin interface- XMLPlatform
- Parameters:
- document- - the document to be validated
- xmlSchemaURL- - the schema URL
- errorHandler- - the error handler
- Returns:
- true if the document fragment is valid, false otherwise
- Throws:
- XMLPlatformException
 
- 
validatepublic boolean validate(Element elem, XMLDescriptor xmlDescriptor, ErrorHandler errorHandler) throws XMLPlatformException Validates a document fragment against a complex type or element in the XML schema- Specified by:
- validatein interface- XMLPlatform
- Parameters:
- elem- - the document which contains the document fragment to be validated
- xmlDescriptor- - the path to the complex type or element to be validated against in the schema
- errorHandler- - the error handler
- Returns:
- true if the document fragment is valid, false otherwise
- Throws:
- XMLPlatformException
 
- 
findChildNodeprotected 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'.- Parameters:
- parent- - the parent element
- childName- - the node name to be located
- Returns:
- the child node with name matching 'childName', null if not found
 
- 
namespaceQualifyFragment- Specified by:
- namespaceQualifyFragmentin interface- XMLPlatform
- Parameters:
- next- Element to qualify
 
- 
setDisableSecureProcessingpublic void setDisableSecureProcessing(boolean disableSecureProcessing) - Specified by:
- setDisableSecureProcessingin interface- XMLPlatform
 
- 
isSecureProcessingDisabledpublic boolean isSecureProcessingDisabled()- Specified by:
- isSecureProcessingDisabledin interface- XMLPlatform
 
 
-