Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-03

oracle.toplink.ox.record
Class DOMRecord

java.lang.Object
  extended by oracle.toplink.internal.sessions.AbstractRecord
      extended by oracle.toplink.ox.record.XMLRecord
          extended by oracle.toplink.ox.record.DOMRecord
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map, Record
Direct Known Subclasses:
EISDOMRecord

public class DOMRecord
extends XMLRecord

Provides a Record/Map API on an XML DOM element.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
DOMRecord(org.w3c.dom.Node node)
           
 
Method Summary
 void clear()
          Clear the sub-nodes of the DOM.
 boolean contains(java.lang.Object value)
          Check if the value is contained in the row.
 java.util.Set entrySet()
          todo: need to check attributes, should be prefix or nodename?
 org.w3c.dom.Document getDocument()
          Return the document.
 org.w3c.dom.Node getDOM()
          Return the DOM.
 java.lang.Object getIndicatingNoEntry(DatabaseField key, boolean shouldReturnNode)
           
 java.lang.String getLocalName()
          Get the local name of the context root element.
 java.lang.String getNamespaceURI()
          Get the namespace URI for the context root element.
 java.lang.Object getValuesIndicatingNoEntry(DatabaseField key)
           
 java.util.Set keySet()
          Return the set of element names from the DOM.
 java.lang.String resolveNamespacePrefix(java.lang.String prefix)
           
 void setDOM(org.w3c.dom.Element element)
           
 int size()
          Return the number of elements in the DOM.
 void transformFromXML(java.io.Reader reader)
          Set the XML from an XML reader.
 void transformFromXML(java.lang.String xml)
          Set the XML from an XML string.
 void transformToWriter(java.io.Writer writer)
          Write the XML string representation of the DOM.
 java.lang.String transformToXML()
          Return the XML string representation of the DOM.
 java.util.Collection values()
          Return the collection of element values from the DOM.
 
Methods inherited from class oracle.toplink.ox.record.XMLRecord
getDocPresPolicy, getNamespaceResolver, setDocPresPolicy, setNamespaceResolver
 
Methods inherited from class oracle.toplink.internal.sessions.AbstractRecord
containsKey, containsKey, containsValue, elements, get, get, isEmpty, keys, put, put, putAll
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

DOMRecord

public DOMRecord(org.w3c.dom.Node node)
Method Detail

getLocalName

public java.lang.String getLocalName()
Get the local name of the context root element.

Specified by:
getLocalName in class XMLRecord

getNamespaceURI

public java.lang.String getNamespaceURI()
Get the namespace URI for the context root element.

Specified by:
getNamespaceURI in class XMLRecord

clear

public void clear()
Clear the sub-nodes of the DOM.

Specified by:
clear in interface java.util.Map
Specified by:
clear in class XMLRecord

getDocument

public org.w3c.dom.Document getDocument()
Return the document.

Specified by:
getDocument in class XMLRecord

contains

public boolean contains(java.lang.Object value)
Check if the value is contained in the row.

Overrides:
contains in class XMLRecord

getIndicatingNoEntry

public java.lang.Object getIndicatingNoEntry(DatabaseField key,
                                             boolean shouldReturnNode)

getValuesIndicatingNoEntry

public java.lang.Object getValuesIndicatingNoEntry(DatabaseField key)

getDOM

public org.w3c.dom.Node getDOM()
Return the DOM.

Specified by:
getDOM in class XMLRecord

entrySet

public java.util.Set entrySet()
todo: need to check attributes, should be prefix or nodename? / innerclass

Specified by:
entrySet in interface java.util.Map
Overrides:
entrySet in class oracle.toplink.internal.sessions.AbstractRecord

setDOM

public void setDOM(org.w3c.dom.Element element)

keySet

public java.util.Set keySet()
Return the set of element names from the DOM. todo: need to check attributes, should be prefix or nodename? / innerclass

Specified by:
keySet in interface java.util.Map
Overrides:
keySet in class oracle.toplink.internal.sessions.AbstractRecord

values

public java.util.Collection values()
Return the collection of element values from the DOM. todo: needs to do gets with the keys to have correct values, need to check attributes / innerclass

Specified by:
values in interface java.util.Map
Overrides:
values in class oracle.toplink.internal.sessions.AbstractRecord

size

public int size()
Return the number of elements in the DOM.

Specified by:
size in interface java.util.Map
Overrides:
size in class oracle.toplink.internal.sessions.AbstractRecord

transformFromXML

public void transformFromXML(java.lang.String xml)
Set the XML from an XML string.


transformFromXML

public void transformFromXML(java.io.Reader reader)
Set the XML from an XML reader.


transformToXML

public java.lang.String transformToXML()
Return the XML string representation of the DOM.

Specified by:
transformToXML in class XMLRecord

transformToWriter

public void transformToWriter(java.io.Writer writer)
Write the XML string representation of the DOM.


resolveNamespacePrefix

public java.lang.String resolveNamespacePrefix(java.lang.String prefix)
Overrides:
resolveNamespacePrefix in class XMLRecord

Copyright © 1998, 2010, Oracle. All Rights Reserved.