@Deprecated public class XMLDecoder extends Object
| Constructor and Description |
|---|
XMLDecoder()
Deprecated.
Default constructor.
|
XMLDecoder(ObjectContext objectContext)
Deprecated.
Creates an XMLDecoder that will register decoded DataObjects with the specified
context.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public XMLDecoder()
XMLDecoder(ObjectContext)public XMLDecoder(ObjectContext objectContext)
objectContext - The context to register decoded DataObjects with.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.CayenneRuntimeExceptionpublic Object decode(Reader xml, String mappingUrl) throws CayenneRuntimeException
xml - Wrapped XML.mappingUrl - Mapping file describing how the XML elements and object
properties correlate.CayenneRuntimeExceptionprotected Object decodeElement(Element element) throws CayenneRuntimeException
element - The XML element.CayenneRuntimeExceptionprotected Collection<Object> decodeCollection(Element xml) throws CayenneRuntimeException
xml - The XML element representing the elements in the collection to decode.CayenneRuntimeExceptionpublic static List<Object> decodeList(Reader xml) throws CayenneRuntimeException
xml - The wrapped XML encoding of the list of DataObjects.CayenneRuntimeExceptionpublic 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.CayenneRuntimeExceptionpublic 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.CayenneRuntimeExceptionpublic 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.CayenneRuntimeExceptionCopyright © 2001–2018 Apache Cayenne. All rights reserved.