org.msgpack.template.builder
Class OrdinalEnumTemplateBuilder

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

public class OrdinalEnumTemplateBuilder
extends AbstractTemplateBuilder


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

Constructor Detail

OrdinalEnumTemplateBuilder

public OrdinalEnumTemplateBuilder(TemplateRegistry registry)
Method Detail

matchType

public boolean matchType(Type targetType,
                         boolean hasAnnotation)

buildTemplate

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

buildTemplate

public <T> Template<T> buildTemplate(Type targetType)
                          throws TemplateBuildException
Specified by:
buildTemplate in interface TemplateBuilder
Overrides:
buildTemplate in class AbstractTemplateBuilder
Throws:
TemplateBuildException

checkOrdinalEnumValidation

protected void checkOrdinalEnumValidation(Class<?> targetClass)


Copyright © 2011. All Rights Reserved.