|
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
public abstract class MarshalRecord
A MarshalRecord encapsulates the marshal target.
MarshalRecords are stateful and state changes are triggered by different event notifications, therefore this class is not thread safe.
XML document creation will differ depending on the subclass of MarshalRecord used. For example when NodeRecord is used a child element is created on the openStartElement event, and when the ContentHandlerRecord is used a child element is not created until the closeStartMethod event.
XMLMarshaller
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
MarshalRecord()
|
Method Summary | |
---|---|
abstract void |
attribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
java.lang.String value)
Receive notification of an attribute. |
abstract void |
attribute(XPathFragment xPathFragment,
NamespaceResolver namespaceResolver,
java.lang.String value)
Receive notification of an attribute. |
abstract void |
cdata(java.lang.String value)
Receive notification of character data to be wrapped in a CDATA node. |
abstract void |
characters(java.lang.String value)
Receive notification of character data. |
void |
clear()
Clear the sub-nodes of the DOM. |
abstract void |
closeStartElement()
Receive notification that all of the attribute events have occured for the most recent element that has been started. |
void |
closeStartGroupingElements(XPathFragment groupingFragment)
|
abstract void |
element(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String Name)
Receive notification of an element. |
abstract void |
endDocument()
Recieve notification that a document is being ended. |
abstract void |
endElement(XPathFragment xPathFragment,
NamespaceResolver namespaceResolver)
Receive notification that an element is being ended. |
void |
endPrefixMapping(java.lang.String prefix)
Receive notification that the scope of this namespace declaration has ended. |
void |
endPrefixMappings(NamespaceResolver namespaceResolver)
|
org.w3c.dom.Document |
getDocument()
Return the document. |
org.w3c.dom.Element |
getDOM()
Return the DOM. |
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.util.HashMap |
getPositionalNodes()
|
abstract void |
node(org.w3c.dom.Node node,
NamespaceResolver resolver)
Receive notification of a node. |
void |
openStartElement(XPathFragment xPathFragment,
NamespaceResolver namespaceResolver)
Receive notification that an element is being started. |
abstract void |
startDocument(java.lang.String encoding,
java.lang.String version)
Receive notification that a document is being started. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String namespaceURI)
Receive notification that a namespace has been declared. |
void |
startPrefixMappings(NamespaceResolver namespaceResolver)
|
java.lang.String |
transformToXML()
Return the XML string representation of the DOM. |
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 |
Constructor Detail |
---|
public MarshalRecord()
Method Detail |
---|
public java.util.HashMap getPositionalNodes()
public java.lang.String getLocalName()
getLocalName
in class XMLRecord
public java.lang.String getNamespaceURI()
getNamespaceURI
in class XMLRecord
public void clear()
clear
in interface java.util.Map
clear
in class XMLRecord
public org.w3c.dom.Document getDocument()
getDocument
in class XMLRecord
public org.w3c.dom.Element getDOM()
getDOM
in class XMLRecord
public java.lang.String transformToXML()
transformToXML
in class XMLRecord
public abstract void startDocument(java.lang.String encoding, java.lang.String version)
encoding
- The XML document will be encoded using this encoding.version
- This specifies the version of XML.public abstract void endDocument()
public void startPrefixMapping(java.lang.String prefix, java.lang.String namespaceURI)
prefix
- The namespace prefix.namespaceURI
- The namespace URI.public void startPrefixMappings(NamespaceResolver namespaceResolver)
public void endPrefixMapping(java.lang.String prefix)
prefix
- The namespace prefix.public void endPrefixMappings(NamespaceResolver namespaceResolver)
public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver)
xPathFragment
- The XPathFragment contains the name and prefix
information about the XML element being ended.namespaceResolver
- The NamespaceResolver can be used to resolve the
namespace URI for the namespace prefix held by the XPathFragment (if
required).public abstract void element(java.lang.String namespaceURI, java.lang.String localName, java.lang.String Name)
namespaceURI
- The namespace URI, if the element is not namespace
qualified the value of this parameter wil be null.localName
- The local name of the element.qName
- The qualified name of the element.public abstract void attribute(XPathFragment xPathFragment, NamespaceResolver namespaceResolver, java.lang.String value)
xPathFragment
- The XPathFragment contains the name and prefix
information about the XML element being ended.namespaceResolver
- The NamespaceResolver can be used to resolve the
namespace URI for the namespace prefix held by the XPathFragment (if
required).value
- This is the complete value for the attribute.public abstract void attribute(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, java.lang.String value)
namespaceURI
- The namespace URI, if the attribute is not namespace
qualified the value of this parameter wil be null.localName
- The local name of the attribute.qName
- The qualified name of the attribute.value
- This is the complete value for the attribute.public abstract void closeStartElement()
public abstract void endElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver)
xPathFragment
- The XPathFragment contains the name and prefix
information about the XML element being ended.namespaceResolver
- The NamespaceResolver can be used to resolve the
namespace URI for the namespace prefix held by the XPathFragment (if
required).public abstract void characters(java.lang.String value)
value
- This is the entire value of the text node.public abstract void cdata(java.lang.String value)
value
- This is the value of the text to be wrappedpublic abstract void node(org.w3c.dom.Node node, NamespaceResolver resolver)
node
- The Node to be added to the documentnamespaceResolver
- The NamespaceResolver can be used to resolve the
namespace URI/prefix of the nodepublic void closeStartGroupingElements(XPathFragment groupingFragment)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |