public class BeanObjectReaderHandler extends Object implements IObjectReaderHandler
| Constructor and Description |
|---|
BeanObjectReaderHandler()
Create a new handler for custom XML formats.
|
BeanObjectReaderHandler(Set typeinfos)
Create a new handler for Java XML supporting on-the-fly
type info creation for arrays.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bulkLinkObjects(List childs,
Object parent,
Object linkinfo,
QName[] pathname,
ReadContext context)
Link an object to its parent.
|
void |
bulkLinkObjects(Object parent,
List children,
ReadContext context)
Bulk link chilren to its parent.
|
Object |
convertContentObject(String value,
QName tag,
ReadContext context)
Convert an object to another type of object.
|
Object |
createObject(Object type,
boolean root,
ReadContext context,
Map rawattributes)
Create an object for the current tag.
|
Object |
getObjectType(Object object,
ReadContext context)
Get the object type
|
IPostProcessor |
getPostProcessor(Object object,
Object typeinfo)
Get the post-processor.
|
TypeInfo |
getTypeInfo(Object object,
QName[] fullpath,
ReadContext context)
Get the most specific mapping info.
|
void |
handleAttributeValue(Object object,
QName xmlattrname,
List attrpath,
String attrval,
Object attrinfo,
ReadContext context)
Handle the attribute of an object.
|
void |
linkObject(Object object,
Object parent,
Object linkinfo,
QName[] pathname,
ReadContext context)
Link an object to its parent.
|
public static final Object NULL
public BeanObjectReaderHandler()
public BeanObjectReaderHandler(Set typeinfos)
public TypeInfo getTypeInfo(Object object, QName[] fullpath, ReadContext context)
getTypeInfo in interface IObjectReaderHandlertag - The tag.fullpath - The full path.public Object createObject(Object type, boolean root, ReadContext context, Map rawattributes) throws Exception
createObject in interface IObjectReaderHandlertype - The object type to create.root - Flag, if object should be root object.context - The context.Exceptionpublic Object getObjectType(Object object, ReadContext context)
object - The object.public Object convertContentObject(String value, QName tag, ReadContext context) throws Exception
convertContentObject in interface IObjectReaderHandlerExceptionpublic void handleAttributeValue(Object object, QName xmlattrname, List attrpath, String attrval, Object attrinfo, ReadContext context) throws Exception
handleAttributeValue in interface IObjectReaderHandlerobject - The object.attrname - The attribute name.attrval - The attribute value.attrinfo - The attribute info.context - The context.Exceptionpublic void linkObject(Object object, Object parent, Object linkinfo, QName[] pathname, ReadContext context) throws Exception
linkObject in interface IObjectLinkerobject - The object.parent - The parent object.linkinfo - The link info.tagname - The current tagname (for name guessing).context - The context.Exceptionpublic void bulkLinkObjects(List childs, Object parent, Object linkinfo, QName[] pathname, ReadContext context) throws Exception
object - The object.parent - The parent object.linkinfo - The link info.tagname - The current tagname (for name guessing).context - The context.Exceptionpublic void bulkLinkObjects(Object parent, List children, ReadContext context) throws Exception
bulkLinkObjects in interface IBulkObjectLinkerparent - The parent object.children - The children objects (link datas).context - The context.classloader - The classloader.root - The root object.Exceptionpublic IPostProcessor getPostProcessor(Object object, Object typeinfo)
getPostProcessor in interface IObjectReaderHandlerCopyright © 2012. All Rights Reserved.