public abstract class AbstractFieldsMetadataClassSerializer extends Object implements IFieldsMetadataClassSerializer
| Constructor and Description |
|---|
AbstractFieldsMetadataClassSerializer(String id,
String description) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
protected abstract String |
getFieldName(String key,
String getterName) |
String |
getId() |
void |
load(FieldsMetadata fieldsMetadata,
String key,
Class<?> clazz)
Load simple fields metadata in the given fieldsMetadata by using the given key and Java Class.
|
void |
load(FieldsMetadata fieldsMetadata,
String key,
Class<?> clazz,
boolean listType)
Load simple/list fields metadata in the given fieldsMetadata by using the given key and Java Class.
|
void |
setFilter(IPropertyDescriptorFilter filter) |
public String getId()
getId in interface IBaseDiscoverypublic String getDescription()
getDescription in interface IBaseDiscoverypublic void setFilter(IPropertyDescriptorFilter filter)
public void load(FieldsMetadata fieldsMetadata, String key, Class<?> clazz) throws XDocReportException
IFieldsMetadataClassSerializerload in interface IFieldsMetadataClassSerializerfieldsMetadata - the fieldsMetadata where fields metadata must be added.key - the key (first token) to use to generate field name.clazz - the Java class model to use to load fields metadata.XDocReportExceptionpublic void load(FieldsMetadata fieldsMetadata, String key, Class<?> clazz, boolean listType) throws XDocReportException
IFieldsMetadataClassSerializerload in interface IFieldsMetadataClassSerializerfieldsMetadata - the fieldsMetadata where fields metadata must be added.key - the key (first token) to use to generate field name.clazz - the Java class model to use to load fields metadata.listType - true if it's a list and false otherwise.XDocReportExceptionCopyright © 2015. All Rights Reserved.