public class BeanObjectWriterHandler extends AbstractObjectWriterHandler
Constructor and Description |
---|
BeanObjectWriterHandler(Set typeinfos)
Create a new writer (gentypetags=false, prefertags=true, flattening=true).
|
BeanObjectWriterHandler(Set typeinfos,
boolean gentypetags)
Create a new writer (prefertags=true, flattening=true).
|
BeanObjectWriterHandler(Set typeinfos,
boolean gentypetags,
boolean prefertags)
Create a new writer (flattening=true).
|
BeanObjectWriterHandler(Set typeinfos,
boolean gentypetags,
boolean prefertags,
boolean flattening)
Create a new writer.
|
Modifier and Type | Method and Description |
---|---|
void |
addPreProcessor(IFilter filter,
IPreProcessor processor)
Add a pre processor.
|
Object |
getObjectType(Object object,
IContext context)
Get the object type
|
IPreProcessor[] |
getPreProcessors(Object object,
Object typeinfo)
Get the pre-processor.
|
QName |
getTagName(Object object,
IContext context)
Get the tag name for an object.
|
QName |
getTagWithPrefix(QName tag,
IContext context)
Get the tag with namespace.
|
TypeInfo |
getTypeInfo(Object object,
QName[] fullpath,
IContext context)
Get the most specific mapping info.
|
void |
removePreProcessor(IFilter filter)
Remove a pre processor.
|
getObjectWriteInfo, getTypeInfoManager
public BeanObjectWriterHandler(Set typeinfos)
public BeanObjectWriterHandler(Set typeinfos, boolean gentypetags)
public BeanObjectWriterHandler(Set typeinfos, boolean gentypetags, boolean prefertags)
public BeanObjectWriterHandler(Set typeinfos, boolean gentypetags, boolean prefertags, boolean flattening)
public TypeInfo getTypeInfo(Object object, QName[] fullpath, IContext context)
getTypeInfo
in interface IObjectWriterHandler
getTypeInfo
in class AbstractObjectWriterHandler
tag
- The tag.fullpath
- The full path.public Object getObjectType(Object object, IContext context)
getObjectType
in class AbstractObjectWriterHandler
object
- The object.public QName getTagWithPrefix(QName tag, IContext context)
public IPreProcessor[] getPreProcessors(Object object, Object typeinfo)
getPreProcessors
in interface IObjectWriterHandler
getPreProcessors
in class AbstractObjectWriterHandler
public void addPreProcessor(IFilter filter, IPreProcessor processor)
filter
- The filter.processor
- The pre processor.public void removePreProcessor(IFilter filter)
filter
- The filter.processor
- The pre processor.Copyright © 2012. All Rights Reserved.