org.msgpack.template.builder
Class OrdinalEnumTemplateBuilder
java.lang.Object
org.msgpack.template.builder.AbstractTemplateBuilder
org.msgpack.template.builder.OrdinalEnumTemplateBuilder
- All Implemented Interfaces:
- TemplateBuilder
public class OrdinalEnumTemplateBuilder
- extends AbstractTemplateBuilder
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 |
OrdinalEnumTemplateBuilder
public OrdinalEnumTemplateBuilder(TemplateRegistry registry)
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.