|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.xml.XMLDecoder
@Deprecated 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 | |
|---|---|
Object |
decode(Reader xml)
Deprecated. Decodes XML wrapped by a Reader into an object. |
Object |
decode(Reader xml,
String mappingUrl)
Deprecated. Decodes XML wrapped by a Reader into an object, using the supplied mapping file to guide the decoding process. |
Boolean |
decodeBoolean(String xmlTag)
Deprecated. Decodes an XML element to a Boolean. |
protected Collection<Object> |
decodeCollection(Element xml)
Deprecated. Decodes a Collection represented by XML wrapped by a Reader into a List of objects. |
Double |
decodeDouble(String xmlTag)
Deprecated. Decodes an XML element to a Double. |
protected Object |
decodeElement(Element element)
Deprecated. Decodes the XML element to an object. |
Float |
decodeFloat(String xmlTag)
Deprecated. Decodes an XML element to a Float. |
Integer |
decodeInteger(String xmlTag)
Deprecated. Decodes an XML element to an Integer. |
static List<Object> |
decodeList(Reader xml)
Deprecated. Decodes a list of DataObjects. |
static List<Object> |
decodeList(Reader xml,
ObjectContext objectContext)
Deprecated. Decodes a list of DataObjects, registering them the supplied context. |
static List<Object> |
decodeList(Reader xml,
String mappingUrl)
Deprecated. Decodes a list of DataObjects using the supplied mapping file to guide the decoding process. |
static List<Object> |
decodeList(Reader xml,
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 Object |
decodeObject(Element child)
Deprecated. Decodes an XML element to an Object. |
Object |
decodeObject(String xmlTag)
Deprecated. Decodes an object from XML. |
String |
decodeString(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 Boolean decodeBoolean(String xmlTag)
xmlTag - The tag identifying the element.
public Double decodeDouble(String xmlTag)
xmlTag - The tag identifying the element.
public Float decodeFloat(String xmlTag)
xmlTag - The tag identifying the element.
public Integer decodeInteger(String xmlTag)
xmlTag - The tag identifying the element.
public Object decodeObject(String xmlTag)
xmlTag - The XML tag corresponding to the root of the encoded object.
protected Object decodeObject(Element child)
child - The XML element.
public String decodeString(String xmlTag)
xmlTag - The tag identifying the element.
public Object decode(Reader xml)
throws CayenneRuntimeException
xml - Wrapped XML.
CayenneRuntimeException
public Object decode(Reader xml,
String mappingUrl)
throws CayenneRuntimeException
xml - Wrapped XML.mappingUrl - Mapping file describing how the XML elements and object
properties correlate.
CayenneRuntimeException
protected Object decodeElement(Element element)
throws CayenneRuntimeException
element - The XML element.
CayenneRuntimeException
protected Collection<Object> decodeCollection(Element xml)
throws CayenneRuntimeException
xml - The XML element representing the elements in the collection to decode.
CayenneRuntimeException
public static List<Object> decodeList(Reader xml)
throws CayenneRuntimeException
xml - The wrapped XML encoding of the list of DataObjects.
CayenneRuntimeException
public static List<Object> decodeList(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 List<Object> decodeList(Reader xml,
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 List<Object> decodeList(Reader xml,
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 | |||||||||