|
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.ContentHandlerRecord
public class ContentHandlerRecord
Use this type of MarshalRecord when the marshal target is a ContentHandler.
XMLContext xmlContext = new XMLContext("session-name");
XMLMarshaller xmlMarshaller = xmlContext.createMarshaller();
ContentHandlerRecord contentHandlerRecord = new ContentHandlerRecord();
marshalRecord.setContentHandler(myContentHandler);
xmlMarshaller.marshal(myObject, contentHandlerRecord);
If the marshal(ContentHandler) method is called on XMLMarshaller, then the ContentHanlder is automatically wrapped in a ContentHandlerRecord.
XMLContext xmlContext = new XMLContext("session-name");
XMLMarshaller xmlMarshaller = xmlContext.createMarshaller();
xmlMarshaller.marshal(myObject, contentHandler);
XMLMarshaller
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
ContentHandlerRecord()
|
Method Summary | |
---|---|
org.xml.sax.ContentHandler |
getContentHandler()
Return the ContentHandler that the object will be marshalled to. |
void |
node(org.w3c.dom.Node node,
NamespaceResolver namespaceResolver)
Receive notification of a node. |
java.lang.String |
resolveNamespacePrefix(java.lang.String s)
|
void |
setContentHandler(org.xml.sax.ContentHandler contentHandler)
Set the ContentHandler that the object will be marshalled to. |
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler lexicalHandler)
Set the LexicalHandler to recieve CDATA related events |
Methods inherited from class oracle.toplink.ox.record.MarshalRecord |
---|
clear, closeStartGroupingElements, endPrefixMappings, getDocument, getDOM, getLocalName, getNamespaceURI, getPositionalNodes, startPrefixMappings, transformToXML |
Methods inherited from class oracle.toplink.ox.record.XMLRecord |
---|
contains, getDocPresPolicy, getNamespaceResolver, 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 |
Constructor Detail |
---|
public ContentHandlerRecord()
Method Detail |
---|
public org.xml.sax.ContentHandler getContentHandler()
public void setContentHandler(org.xml.sax.ContentHandler contentHandler)
contentHandler
- The marshal target.public void setLexicalHandler(org.xml.sax.ext.LexicalHandler lexicalHandler)
public void node(org.w3c.dom.Node node, NamespaceResolver namespaceResolver)
node
in class MarshalRecord
node
- The Node to be added to the documentnamespaceResolver
- The NamespaceResolver can be used to resolve the
namespace URI/prefix of the nodepublic java.lang.String resolveNamespacePrefix(java.lang.String s)
resolveNamespacePrefix
in class XMLRecord
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |