|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.xml.XMLDecoder
public class XMLDecoder
XMLDecoder is used to decode XML into objects.
| Constructor Summary | |
|---|---|
XMLDecoder()
Deprecated. Default constructor. |
|
XMLDecoder(ObjectContext objectContext)
Deprecated. Creates an XMLDecoder that will register decoded DataObjects with the specified context. |
|
| Method Summary | |
|---|---|
java.lang.Object |
decode(java.io.Reader xml)
Deprecated. Decodes XML wrapped by a Reader into an object. |
java.lang.Object |
decode(java.io.Reader xml,
java.lang.String mappingUrl)
Deprecated. Decodes XML wrapped by a Reader into an object, using the supplied mapping file to guide the decoding process. |
java.lang.Boolean |
decodeBoolean(java.lang.String xmlTag)
Deprecated. Decodes an XML element to a Boolean. |
protected java.util.Collection<java.lang.Object> |
decodeCollection(org.w3c.dom.Element xml)
Deprecated. Decodes a Collection represented by XML wrapped by a Reader into a List of objects. |
java.lang.Double |
decodeDouble(java.lang.String xmlTag)
Deprecated. Decodes an XML element to a Double. |
protected java.lang.Object |
decodeElement(org.w3c.dom.Element element)
Deprecated. Decodes the XML element to an object. |
java.lang.Float |
decodeFloat(java.lang.String xmlTag)
Deprecated. Decodes an XML element to a Float. |
java.lang.Integer |
decodeInteger(java.lang.String xmlTag)
Deprecated. Decodes an XML element to an Integer. |
static java.util.List<java.lang.Object> |
decodeList(java.io.Reader xml)
Deprecated. Decodes a list of DataObjects. |
static java.util.List<java.lang.Object> |
decodeList(java.io.Reader xml,
ObjectContext objectContext)
Deprecated. Decodes a list of DataObjects, registering them the supplied context. |
static java.util.List<java.lang.Object> |
decodeList(java.io.Reader xml,
java.lang.String mappingUrl)
Deprecated. Decodes a list of DataObjects using the supplied mapping file to guide the decoding process. |
static java.util.List<java.lang.Object> |
decodeList(java.io.Reader xml,
java.lang.String mappingUrl,
ObjectContext objectContext)
Deprecated. Decodes a list of DataObjects using the supplied mapping file to guide the decoding process, registering them the supplied context. |
protected java.lang.Object |
decodeObject(org.w3c.dom.Element child)
Deprecated. Decodes an XML element to an Object. |
java.lang.Object |
decodeObject(java.lang.String xmlTag)
Deprecated. Decodes an object from XML. |
java.lang.String |
decodeString(java.lang.String xmlTag)
Deprecated. Decodes an XML element to a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLDecoder()
XMLDecoder(ObjectContext)public XMLDecoder(ObjectContext objectContext)
objectContext - The context to register decoded DataObjects with.| Method Detail |
|---|
public java.lang.Boolean decodeBoolean(java.lang.String xmlTag)
xmlTag - The tag identifying the element.
public java.lang.Double decodeDouble(java.lang.String xmlTag)
xmlTag - The tag identifying the element.
public java.lang.Float decodeFloat(java.lang.String xmlTag)
xmlTag - The tag identifying the element.
public java.lang.Integer decodeInteger(java.lang.String xmlTag)
xmlTag - The tag identifying the element.
public java.lang.Object decodeObject(java.lang.String xmlTag)
xmlTag - The XML tag corresponding to the root of the encoded object.
protected java.lang.Object decodeObject(org.w3c.dom.Element child)
child - The XML element.
public java.lang.String decodeString(java.lang.String xmlTag)
xmlTag - The tag identifying the element.
public java.lang.Object decode(java.io.Reader xml)
throws CayenneRuntimeException
xml - Wrapped XML.
CayenneRuntimeException
public java.lang.Object decode(java.io.Reader xml,
java.lang.String mappingUrl)
throws CayenneRuntimeException
xml - Wrapped XML.mappingUrl - Mapping file describing how the XML elements and object
properties correlate.
CayenneRuntimeException
protected java.lang.Object decodeElement(org.w3c.dom.Element element)
throws CayenneRuntimeException
element - The XML element.
CayenneRuntimeException
protected java.util.Collection<java.lang.Object> decodeCollection(org.w3c.dom.Element xml)
throws CayenneRuntimeException
xml - The XML element representing the elements in the collection to decode.
CayenneRuntimeException
public static java.util.List<java.lang.Object> decodeList(java.io.Reader xml)
throws CayenneRuntimeException
xml - The wrapped XML encoding of the list of DataObjects.
CayenneRuntimeException
public static java.util.List<java.lang.Object> decodeList(java.io.Reader xml,
ObjectContext objectContext)
throws CayenneRuntimeException
xml - The wrapped XML encoding of the list of DataObjects.objectContext - The context to register the decode DataObjects with.
CayenneRuntimeException
public static java.util.List<java.lang.Object> decodeList(java.io.Reader xml,
java.lang.String mappingUrl)
throws CayenneRuntimeException
xml - The wrapped XML encoding of the list of DataObjects.mappingUrl - Mapping file describing how the XML elements and object
properties correlate.
CayenneRuntimeException
public static java.util.List<java.lang.Object> decodeList(java.io.Reader xml,
java.lang.String mappingUrl,
ObjectContext objectContext)
throws CayenneRuntimeException
xml - The wrapped XML encoding of the list of objects.mappingUrl - Mapping file describing how the XML elements and object
properties correlate.objectContext - The context to register the decode DataObjects with.
CayenneRuntimeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||