|
Oracle TopLink API Reference 10g Release 3 (10.1.3) B13698-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.toplink.publicinterface.DatabaseRow
oracle.toplink.ox.record.XMLRecord
oracle.toplink.ox.record.MarshalRecord
oracle.toplink.ox.record.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 Form| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Method Summary | |
void |
clear()PUBLIC: Clear the sub-nodes of the DOM. |
org.w3c.dom.Document |
getDocument()PUBLIC: Return the document. |
org.w3c.dom.Element |
getDOM()Return the Node that the object will be marshalled to. |
java.lang.String |
getLocalName()PUBLIC: Get the local name of the context root element. |
java.lang.String |
getNamespaceURI()PUBLIC: Get the namespace URI for the context root element. |
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, getPositionalNodes, startPrefixMapping |
| Methods inherited from class oracle.toplink.ox.record.XMLRecord |
contains, resolveNamespacePrefix |
| Methods inherited from class oracle.toplink.publicinterface.DatabaseRow |
containsKey, containsKey, containsValue, elements, entrySet, get, get, 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()
XMLRecordgetLocalName in class MarshalRecordpublic java.lang.String getNamespaceURI()
XMLRecordgetNamespaceURI in class MarshalRecordpublic void clear()
XMLRecordclear in interface java.util.Mapclear in class MarshalRecordpublic org.w3c.dom.Document getDocument()
XMLRecordgetDocument in class MarshalRecordpublic org.w3c.dom.Element getDOM()
getDOM in class MarshalRecordpublic void setDOM(org.w3c.dom.Node dom)
public java.lang.String transformToXML()
XMLRecordtransformToXML in class MarshalRecord
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||