Package deltix.qsrv.hf.pub.codec.intp
Class FieldDecoder
- java.lang.Object
-
- deltix.qsrv.hf.pub.codec.intp.FieldDecoder
-
- Direct Known Subclasses:
ClassFieldDecoder
public abstract class FieldDecoder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected NonStaticFieldInfo
fieldInfo
protected java.lang.Class<?>
fieldType
protected boolean
isNullable
protected ValueSetter
setter
-
Constructor Summary
Constructors Modifier Constructor Description protected
FieldDecoder(NonStaticFieldLayout f)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
copy(DecodingContext ctxt, java.lang.Object obj)
protected java.lang.String
getNotNullableMsg()
boolean
isNull(double value)
boolean
isNull(long value)
abstract boolean
isNull(DecodingContext ctxt)
boolean
isNull(java.lang.String value)
boolean
isNullable()
protected abstract void
setNull(java.lang.Object obj)
protected void
setNull(java.lang.Object obj, int idx)
java.lang.String
toString()
ValidationError
validate(DecodingContext ctxt)
-
-
-
Field Detail
-
setter
protected final ValueSetter setter
-
fieldType
protected final java.lang.Class<?> fieldType
-
isNullable
protected final boolean isNullable
-
fieldInfo
protected final NonStaticFieldInfo fieldInfo
-
-
Constructor Detail
-
FieldDecoder
protected FieldDecoder(NonStaticFieldLayout f)
-
-
Method Detail
-
isNullable
public boolean isNullable()
-
copy
protected abstract void copy(DecodingContext ctxt, java.lang.Object obj) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
setNull
protected abstract void setNull(java.lang.Object obj) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
setNull
protected void setNull(java.lang.Object obj, int idx)
-
isNull
public abstract boolean isNull(DecodingContext ctxt)
-
isNull
public boolean isNull(long value)
-
isNull
public boolean isNull(double value)
-
isNull
public boolean isNull(java.lang.String value)
-
getNotNullableMsg
protected java.lang.String getNotNullableMsg()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
validate
public ValidationError validate(DecodingContext ctxt)
-
-