fr.opensagres.xdocreport.template.formatter.xsd
Class XSDFieldsMetadataClassSerializer

java.lang.Object
  extended by fr.opensagres.xdocreport.template.formatter.xsd.XSDFieldsMetadataClassSerializer
All Implemented Interfaces:
IBaseDiscovery, IFieldsMetadataClassSerializer

public class XSDFieldsMetadataClassSerializer
extends Object
implements IFieldsMetadataClassSerializer


Constructor Summary
XSDFieldsMetadataClassSerializer()
           
 
Method Summary
 String getDescription()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSDFieldsMetadataClassSerializer

public XSDFieldsMetadataClassSerializer()
Method Detail

getId

public String getId()
Specified by:
getId in interface IBaseDiscovery

getDescription

public String getDescription()
Specified by:
getDescription in interface IBaseDiscovery

load

public void load(FieldsMetadata fieldsMetadata,
                 String key,
                 Class<?> clazz)
          throws XDocReportException
Description copied from interface: IFieldsMetadataClassSerializer
Load simple fields metadata in the given fieldsMetadata by using the given key and Java Class.

Specified by:
load in interface IFieldsMetadataClassSerializer
Parameters:
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.
Throws:
XDocReportException

load

public void load(FieldsMetadata fieldsMetadata,
                 String key,
                 Class<?> clazz,
                 boolean listType)
          throws XDocReportException
Description copied from interface: IFieldsMetadataClassSerializer
Load simple/list fields metadata in the given fieldsMetadata by using the given key and Java Class.

Specified by:
load in interface IFieldsMetadataClassSerializer
Parameters:
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.
Throws:
XDocReportException


Copyright © 2012. All Rights Reserved.