|
Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated) 11g Release 1 (11.1.1) B32476-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.internal.sessions.AbstractRecord oracle.toplink.ox.record.XMLRecord oracle.toplink.ox.record.MarshalRecord oracle.toplink.ox.record.NodeRecord
public class NodeRecord
Use this type of MarshalRecord when the marshal target is a Node.
XMLContext xmlContext = new XMLContext("session-name");
XMLMarshaller xmlMarshaller = xmlContext.createMarshaller();
NodeRecord nodeRecord = new NodeRecord();
nodeRecord.setDOM(myNode);
xmlMarshaller.marshal(myObject, nodeRecord);
If the marshal(Node) method is called on XMLMarshaller, then the Writer is automatically wrapped in a NodeRecord.
XMLContext xmlContext = new XMLContext("session-name");
XMLMarshaller xmlMarshaller = xmlContext.createMarshaller();
xmlMarshaller.marshal(myObject, myNode);
XMLMarshaller
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Method Summary | |
---|---|
void |
cdata(java.lang.String value)
Receive notification of character data to be wrapped in a CDATA node. |
void |
clear()
Clear the sub-nodes of the DOM. |
org.w3c.dom.Document |
getDocument()
Return the document. |
org.w3c.dom.Element |
getDOM()
Return the Node that the object will be marshalled to. |
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. |
void |
node(org.w3c.dom.Node node,
NamespaceResolver namespaceResolver)
Receive notification of a node. |
void |
setDOM(org.w3c.dom.Node dom)
Set the Node that the object will be marshalled to. |
java.lang.String |
transformToXML()
Return the XML string representation of the DOM. |
Methods inherited from class oracle.toplink.ox.record.MarshalRecord |
---|
closeStartGroupingElements, endPrefixMapping, endPrefixMappings, getPositionalNodes, startPrefixMapping, startPrefixMappings |
Methods inherited from class oracle.toplink.ox.record.XMLRecord |
---|
contains, getDocPresPolicy, getNamespaceResolver, resolveNamespacePrefix, setDocPresPolicy, setNamespaceResolver |
Methods inherited from class oracle.toplink.internal.sessions.AbstractRecord |
---|
containsKey, containsKey, containsValue, elements, entrySet, get, get, getValues, getValues, isEmpty, keys, keySet, put, put, putAll, size, values |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public java.lang.String getLocalName()
getLocalName
in class MarshalRecord
public java.lang.String getNamespaceURI()
getNamespaceURI
in class MarshalRecord
public void clear()
clear
in interface java.util.Map
clear
in class MarshalRecord
public org.w3c.dom.Document getDocument()
getDocument
in class MarshalRecord
public org.w3c.dom.Element getDOM()
getDOM
in class MarshalRecord
public void setDOM(org.w3c.dom.Node dom)
writer
- The marshal target.public java.lang.String transformToXML()
transformToXML
in class MarshalRecord
public void node(org.w3c.dom.Node node, NamespaceResolver namespaceResolver)
node
in class MarshalRecord
node
- The Node to be added to the documentpublic void cdata(java.lang.String value)
cdata
in class MarshalRecord
value
- This is the value of the text to be wrapped
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |