public abstract class AbstractType extends AbstractModelType implements TypeEncoder, TypeDecoder, Type
Modifier and Type | Field and Description |
---|---|
protected ITypeValue |
defaultValue |
protected ITypeValue |
initialValue |
operator, presence, requiresPMapFlag, types
Modifier | Constructor and Description |
---|---|
protected |
AbstractType(FieldTypeInstruction fieldTypeInstruction) |
Modifier and Type | Method and Description |
---|---|
void |
assignOperator() |
ITypeValue |
decode(BinaryMessage message,
Context context) |
protected abstract ITypeValue |
decodeInternal(BinaryMessage message) |
byte[] |
encode(ITypeValue fieldValue,
Context context,
EncodePresenceMapBuilder presenceMapBuilder) |
protected abstract byte[] |
encodeInternal(ITypeValue encodingValue) |
FieldTypeInstruction |
getCoderType() |
ITypeValue |
getDefaultValue()
Gets default value for type.
|
String |
getDictionary() |
int |
getIndex()
Gets numeric index of type.
|
protected ITypeValue |
getNullValue() |
void |
setDictionary(String dictionary) |
void |
setIndex(int index)
Sets numeric index of type.
|
compareTo, getId, getIdInteger, getName, getOperator, getPresence, getTypes, isOptional, requiresPMap, setId, setName, setOperator, setOptional, setPresence, setTypes, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
encodeConstant, encodeCopy, encodeDefault, encodeDelta, encodeIncrement, encodeNone, encodeTail
decodeConstant, decodeCopy, decodeDefault, decodeDelta, decodeIncrement, decodeNone, decodeTail
createValue, createValue, requiresPMap
getId, getIdInteger, getInitialValue, getName, isOptional, setOptional
compareTo
protected ITypeValue initialValue
protected ITypeValue defaultValue
protected AbstractType(FieldTypeInstruction fieldTypeInstruction)
public FieldTypeInstruction getCoderType()
getCoderType
in interface Type
public void assignOperator()
assignOperator
in interface Type
public String getDictionary()
getDictionary
in interface Type
public void setDictionary(String dictionary)
setDictionary
in interface Type
public ITypeValue getDefaultValue()
ModelType
getDefaultValue
in interface ModelType
protected ITypeValue getNullValue()
public ITypeValue decode(BinaryMessage message, Context context)
public byte[] encode(ITypeValue fieldValue, Context context, EncodePresenceMapBuilder presenceMapBuilder)
protected abstract ITypeValue decodeInternal(BinaryMessage message)
protected abstract byte[] encodeInternal(ITypeValue encodingValue)
public int getIndex()
ModelType
Copyright © 2000-2017 EPAM Systems. All Rights Reserved.