Package jadex.xml.reader
Interface IObjectReaderHandler
-
- All Superinterfaces:
IBulkObjectLinker
,IObjectLinker
- All Known Implementing Classes:
BeanObjectReaderHandler
,OAVObjectReaderHandler
public interface IObjectReaderHandler extends IObjectLinker, IBulkObjectLinker
Interface for object reader handler. Is called when a tag start is found and an object could be created. Is called when an end tag is found and an object could be linked to its parent.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
convertContentObject(java.lang.String object, QName tag, AReadContext context)
Convert a content string object to another type of object.java.lang.Object
createObject(java.lang.Object typeinfo, boolean root, AReadContext context, java.util.Map<java.lang.String,java.lang.String> rawattributes)
Create an object for the current tag.IPostProcessor[]
getPostProcessors(java.lang.Object object, java.lang.Object typeinfo)
Get the post-processor.TypeInfo
getTypeInfo(java.lang.Object type, QName[] fullpath, AReadContext context)
Get the most specific mapping info.void
handleAttributeValue(java.lang.Object object, QName xmlattrname, java.util.List<QName> attrpath, java.lang.String attrval, java.lang.Object attrinfo, AReadContext context)
Handle the attribute of an object.-
Methods inherited from interface jadex.xml.reader.IBulkObjectLinker
bulkLinkObjects
-
Methods inherited from interface jadex.xml.reader.IObjectLinker
linkObject
-
-
-
-
Method Detail
-
createObject
java.lang.Object createObject(java.lang.Object typeinfo, boolean root, AReadContext context, java.util.Map<java.lang.String,java.lang.String> rawattributes) throws java.lang.Exception
Create an object for the current tag.- Parameters:
type
- The object type to create.root
- Flag, if object should be root object.context
- The context.- Returns:
- The created object (or null for none).
- Throws:
java.lang.Exception
-
convertContentObject
java.lang.Object convertContentObject(java.lang.String object, QName tag, AReadContext context) throws java.lang.Exception
Convert a content string object to another type of object.- Throws:
java.lang.Exception
-
handleAttributeValue
void handleAttributeValue(java.lang.Object object, QName xmlattrname, java.util.List<QName> attrpath, java.lang.String attrval, java.lang.Object attrinfo, AReadContext context) throws java.lang.Exception
Handle the attribute of an object.- Parameters:
object
- The object.xmlattrname
- The attribute name.attrval
- The attribute value.attrinfo
- The attribute info.context
- The context.- Throws:
java.lang.Exception
-
getTypeInfo
TypeInfo getTypeInfo(java.lang.Object type, QName[] fullpath, AReadContext context)
Get the most specific mapping info.- Parameters:
tag
- The tag.fullpath
- The full path.- Returns:
- The most specific mapping info.
-
getPostProcessors
IPostProcessor[] getPostProcessors(java.lang.Object object, java.lang.Object typeinfo)
Get the post-processor.- Returns:
- The post-processor
-
-