Package deltix.qsrv.hf.pub.codec.intp
Class FieldEncoder
- java.lang.Object
-
- deltix.qsrv.hf.pub.codec.intp.FieldEncoder
-
- Direct Known Subclasses:
ClassFieldEncoder
@DependsOnClass(PropertySupport.class) public abstract class FieldEncoder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringexceptionDescriptionprotected java.lang.StringfieldDescriptionprotected java.lang.StringfieldNameprotected java.lang.Class<?>fieldTypeprotected ValueGettergetterprotected booleanisNullable
-
Constructor Summary
Constructors Modifier Constructor Description protectedFieldEncoder(NonStaticFieldLayout f)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcopy(java.lang.Object obj, EncodingContext ctxt)protected booleanisNull(long value)protected abstract booleanisNullValue(java.lang.Object message)protected voidthrowConstraintViolationException(java.lang.Object v)protected voidthrowNotNullableException()
-
-
-
Field Detail
-
getter
protected final ValueGetter getter
-
fieldType
protected final java.lang.Class<?> fieldType
-
isNullable
protected final boolean isNullable
-
fieldName
protected final java.lang.String fieldName
-
fieldDescription
protected final java.lang.String fieldDescription
-
exceptionDescription
protected final java.lang.String exceptionDescription
-
-
Constructor Detail
-
FieldEncoder
protected FieldEncoder(NonStaticFieldLayout f)
-
-
Method Detail
-
copy
protected abstract void copy(java.lang.Object obj, EncodingContext ctxt) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException- Throws:
java.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
isNull
protected boolean isNull(long value)
-
isNullValue
protected abstract boolean isNullValue(java.lang.Object message) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException- Throws:
java.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
throwNotNullableException
protected void throwNotNullableException()
-
throwConstraintViolationException
protected void throwConstraintViolationException(java.lang.Object v)
-
-