public abstract class AbstractObjectWriterHandler extends Object implements IObjectWriterHandler
Constructor and Description |
---|
AbstractObjectWriterHandler(boolean gentypetags,
boolean prefertags,
boolean flattening,
Set typeinfos)
Create a new writer handler.
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
getObjectType(Object object,
IContext context)
Get the object type
|
WriteObjectInfo |
getObjectWriteInfo(Object object,
TypeInfo typeinfo,
IContext context)
Get write info for an object.
|
IPreProcessor[] |
getPreProcessors(Object object,
Object typeinfo)
Get the pre-processors.
|
TypeInfo |
getTypeInfo(Object object,
QName[] fullpath,
IContext context)
Get the most specific mapping info.
|
TypeInfoTypeManager |
getTypeInfoManager()
Get the titmanager.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTagName, getTagWithPrefix
public AbstractObjectWriterHandler(boolean gentypetags, boolean prefertags, boolean flattening, Set typeinfos)
public TypeInfo getTypeInfo(Object object, QName[] fullpath, IContext context)
getTypeInfo
in interface IObjectWriterHandler
type
- The type.fullpath
- The full path.public TypeInfoTypeManager getTypeInfoManager()
public abstract Object getObjectType(Object object, IContext context)
object
- The object.public WriteObjectInfo getObjectWriteInfo(Object object, TypeInfo typeinfo, IContext context) throws Exception
getObjectWriteInfo
in interface IObjectWriterHandler
object
- The object.typeinfo
- The Typeinfo.Exception
public IPreProcessor[] getPreProcessors(Object object, Object typeinfo)
getPreProcessors
in interface IObjectWriterHandler
Copyright © 2012. All Rights Reserved.