|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.opensagres.xdocreport.template.formatter.AbstractFieldsMetadataClassSerializer
public abstract class AbstractFieldsMetadataClassSerializer
Abstract class for Fields metadata serializer.
Constructor Summary | |
---|---|
AbstractFieldsMetadataClassSerializer(String id,
String description)
|
Method Summary | |
---|---|
String |
getDescription()
Returns the description of the discovery. |
protected abstract String |
getFieldName(String key,
String getterName)
|
String |
getId()
Returns the id of the discovery. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractFieldsMetadataClassSerializer(String id, String description)
Method Detail |
---|
public String getId()
IBaseDiscovery
getId
in interface IBaseDiscovery
public String getDescription()
IBaseDiscovery
getDescription
in interface IBaseDiscovery
public void load(FieldsMetadata fieldsMetadata, String key, Class<?> clazz) throws XDocReportException
IFieldsMetadataClassSerializer
load
in interface IFieldsMetadataClassSerializer
fieldsMetadata
- 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.
XDocReportException
public void load(FieldsMetadata fieldsMetadata, String key, Class<?> clazz, boolean listType) throws XDocReportException
IFieldsMetadataClassSerializer
load
in interface IFieldsMetadataClassSerializer
fieldsMetadata
- 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.
XDocReportException
protected abstract String getFieldName(String key, String getterName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |