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.String
exceptionDescription
protected java.lang.String
fieldDescription
protected java.lang.String
fieldName
protected java.lang.Class<?>
fieldType
protected ValueGetter
getter
protected boolean
isNullable
-
Constructor Summary
Constructors Modifier Constructor Description protected
FieldEncoder(NonStaticFieldLayout f)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
copy(java.lang.Object obj, EncodingContext ctxt)
protected boolean
isNull(long value)
protected abstract boolean
isNullValue(java.lang.Object message)
protected void
throwConstraintViolationException(java.lang.Object v)
protected void
throwNotNullableException()
-
-
-
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.IllegalArgumentException
java.lang.IllegalAccessException
java.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.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
throwNotNullableException
protected void throwNotNullableException()
-
throwConstraintViolationException
protected void throwConstraintViolationException(java.lang.Object v)
-
-