|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.oxm.XMLBinder
public class XMLBinder
PUBLIC:
Purpose:Provide a runtime public interface for preserving unmapped content from an XML Document.
Responsibilities:
The XML Binder is a runtime class that allows an association to be maintained between the original XML Document and the Java Objects built from the Document. It allows unmapped content (such as comments, processing instructions or other unmapped elements and attributes) to be preserved. The XMLBinder is created through an XMLContext.
XMLContext
Constructor Summary | |
---|---|
XMLBinder(XMLContext context)
|
Method Summary | |
---|---|
DocumentPreservationPolicy |
getDocumentPreservationPolicy()
Gets this XMLBinder's document preservation policy. |
org.xml.sax.ErrorHandler |
getErrorHandler()
|
XMLMarshaller |
getMarshaller()
|
java.lang.Object |
getObject(org.w3c.dom.Node node)
Gets the Java Object associated with the provided XML Node. |
javax.xml.validation.Schema |
getSchema()
|
org.w3c.dom.Node |
getXMLNode(java.lang.Object object)
Gets the XML Node associated with the provided object. |
void |
marshal(java.lang.Object obj,
org.w3c.dom.Node node)
|
void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
|
void |
setMarshaller(XMLMarshaller marshaller)
|
void |
setSchema(javax.xml.validation.Schema aSchema)
|
java.lang.Object |
unmarshal(org.w3c.dom.Node node)
This method will unmarshal the provided node into mapped java objects. |
XMLRoot |
unmarshal(org.w3c.dom.Node node,
java.lang.Class javaClass)
|
void |
updateObject(org.w3c.dom.Node node)
Updates the object associated with the provided node to reflect any changed made to that node. |
void |
updateXML(java.lang.Object obj)
This method will update the cached XML node for the provided object. |
void |
updateXML(java.lang.Object obj,
org.w3c.dom.Node associatedNode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLBinder(XMLContext context)
Method Detail |
---|
public java.lang.Object unmarshal(org.w3c.dom.Node node)
node
-
public XMLRoot unmarshal(org.w3c.dom.Node node, java.lang.Class javaClass)
public void updateXML(java.lang.Object obj)
obj
- public void marshal(java.lang.Object obj, org.w3c.dom.Node node)
public void updateXML(java.lang.Object obj, org.w3c.dom.Node associatedNode)
public org.w3c.dom.Node getXMLNode(java.lang.Object object)
object
-
public java.lang.Object getObject(org.w3c.dom.Node node)
node
-
public void updateObject(org.w3c.dom.Node node)
node
- public DocumentPreservationPolicy getDocumentPreservationPolicy()
DocumentPreservationPolicy
public XMLMarshaller getMarshaller()
public void setMarshaller(XMLMarshaller marshaller)
public void setSchema(javax.xml.validation.Schema aSchema)
public javax.xml.validation.Schema getSchema()
public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
public org.xml.sax.ErrorHandler getErrorHandler()
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |