org.msgpack.template.builder
Class ArrayTemplateBuilder

java.lang.Object
  extended by org.msgpack.template.builder.AbstractTemplateBuilder
      extended by org.msgpack.template.builder.ArrayTemplateBuilder
All Implemented Interfaces:
TemplateBuilder

public class ArrayTemplateBuilder
extends AbstractTemplateBuilder


Field Summary
 
Fields inherited from class org.msgpack.template.builder.AbstractTemplateBuilder
registry
 
Constructor Summary
ArrayTemplateBuilder(TemplateRegistry registry)
           
 
Method Summary
protected
<T> Template<T>
buildTemplate(Class<T> targetClass, FieldEntry[] entries)
           
<T> Template<T>
buildTemplate(Class<T> targetClass, FieldList flist)
           
<T> Template<T>
buildTemplate(Type arrayType)
           
<T> Template<T>
loadTemplate(Type targetType)
           
 boolean matchType(Type targetType, boolean forceBuild)
           
 void writeTemplate(Type targetType, String directoryName)
           
 
Methods inherited from class org.msgpack.template.builder.AbstractTemplateBuilder
checkClassValidation, getFieldOption, isAnnotated, isAnnotated, matchAtArrayTemplateBuilder, matchAtClassTemplateBuilder, matchAtOrdinalEnumTemplateBuilder, toFieldEntries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayTemplateBuilder

public ArrayTemplateBuilder(TemplateRegistry registry)
Method Detail

matchType

public boolean matchType(Type targetType,
                         boolean forceBuild)

buildTemplate

public <T> Template<T> buildTemplate(Type arrayType)
Specified by:
buildTemplate in interface TemplateBuilder
Overrides:
buildTemplate in class AbstractTemplateBuilder

buildTemplate

public <T> Template<T> buildTemplate(Class<T> targetClass,
                                     FieldList flist)
                          throws TemplateBuildException
Specified by:
buildTemplate in interface TemplateBuilder
Overrides:
buildTemplate in class AbstractTemplateBuilder
Throws:
TemplateBuildException

buildTemplate

protected <T> Template<T> buildTemplate(Class<T> targetClass,
                                        FieldEntry[] entries)
Specified by:
buildTemplate in class AbstractTemplateBuilder

writeTemplate

public void writeTemplate(Type targetType,
                          String directoryName)
Specified by:
writeTemplate in interface TemplateBuilder
Overrides:
writeTemplate in class AbstractTemplateBuilder

loadTemplate

public <T> Template<T> loadTemplate(Type targetType)
Specified by:
loadTemplate in interface TemplateBuilder
Overrides:
loadTemplate in class AbstractTemplateBuilder


Copyright © 2011. All Rights Reserved.