public abstract class IntegerField extends SimpleType
Modifier and Type | Field and Description |
---|---|
protected String |
ns |
constantOrDefaultOrCopy
defaultValue, initialValue
operator, presence, requiresPMapFlag, types
Modifier | Constructor and Description |
---|---|
protected |
IntegerField(FieldTypeInstruction fieldTypeInstruction) |
Modifier and Type | Method and Description |
---|---|
ITypeValue |
createValue(String value) |
ITypeValue |
createValue(String id,
String value) |
ITypeValue |
decodeDelta(Context context,
BinaryMessage message)
Decodes value from stream with delta operator.
|
ITypeValue |
decodeIncrement(Context context,
BinaryMessage message)
Decodes value from stream with increment operator.
|
byte[] |
encodeDelta(ITypeValue value,
Context context,
EncodePresenceMapBuilder presenceMapBuilder)
Encodes value with delta operator.
|
byte[] |
encodeIncrement(ITypeValue value,
Context context,
EncodePresenceMapBuilder presenceMapBuilder)
Encodes value with increment operator.
|
boolean |
equals(Object o) |
ITypeValue |
getDefaultValue()
Gets default value for type.
|
ITypeValue |
getInitialValue()
Gets the initial value for type.
|
String |
getNs()
Gets the value of the ns property.
|
Map<QName,String> |
getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.
|
ITypeValue |
getTypeValue(Long value) |
protected ITypeValue |
getTypeValue(String value) |
int |
hashCode() |
static String |
removeInvalidCharacters(String value) |
void |
setNs(String value)
Sets the value of the ns property.
|
String |
toString() |
assignOperator, compareTo, getConstantOrDefaultOrCopy, setConstantOrDefaultOrCopy
decodeConstant, decodeCopy, decodeDefault, decodeNone, encodeConstant, encodeCopy, encodeDefault, encodeNone
decodeInternal, decodeTail, encodeInternal, encodeTail
decode, encode, getCoderType, getDictionary, getIndex, getNullValue, setDictionary, setIndex
getId, getIdInteger, getName, getOperator, getPresence, getTypes, isOptional, requiresPMap, setId, setName, setOperator, setOptional, setPresence, setTypes
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
requiresPMap
getId, getIdInteger, getName, isOptional, setOptional
protected String ns
protected IntegerField(FieldTypeInstruction fieldTypeInstruction)
public void setNs(String value)
value
- allowed object is
String
public ITypeValue createValue(String id, String value)
createValue
in interface Type
createValue
in class TypeAdaptor
public ITypeValue createValue(String value)
createValue
in interface Type
createValue
in class TypeAdaptor
public ITypeValue getTypeValue(Long value)
protected ITypeValue getTypeValue(String value)
getTypeValue
in class GenericType
public byte[] encodeIncrement(ITypeValue value, Context context, EncodePresenceMapBuilder presenceMapBuilder)
TypeEncoder
encodeIncrement
in interface TypeEncoder
encodeIncrement
in class TypeAdaptor
value
- the valuecontext
- the contextpresenceMapBuilder
- the PM Mappublic ITypeValue decodeIncrement(Context context, BinaryMessage message)
TypeDecoder
decodeIncrement
in interface TypeDecoder
decodeIncrement
in class TypeAdaptor
context
- the contextmessage
- the stream messagepublic byte[] encodeDelta(ITypeValue value, Context context, EncodePresenceMapBuilder presenceMapBuilder)
TypeEncoder
encodeDelta
in interface TypeEncoder
encodeDelta
in class TypeAdaptor
value
- the valuecontext
- the contextpresenceMapBuilder
- the PM Mappublic ITypeValue decodeDelta(Context context, BinaryMessage message)
TypeDecoder
decodeDelta
in interface TypeDecoder
decodeDelta
in class TypeAdaptor
context
- the contextmessage
- the stream messagepublic Map<QName,String> getOtherAttributes()
public String toString()
toString
in class AbstractModelType
public ITypeValue getDefaultValue()
ModelType
getDefaultValue
in interface ModelType
getDefaultValue
in class AbstractType
public ITypeValue getInitialValue()
ModelType
getInitialValue
in interface ModelType
getInitialValue
in class TypeAdaptor
Copyright © 2000-2017 EPAM Systems. All Rights Reserved.