public class Field extends Object
Constructor and Description |
---|
Field()
Constructor.
|
Field(int tag,
byte[] buffer,
int offset,
int length)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
get()
Returns the field value as string.
|
BigDecimal |
getBigDecimal()
Returns the field value as
BigDecimal . |
byte[] |
getBytes()
Returns the field value as a byte array.
|
double |
getDouble()
Returns field value as double.
|
int |
getInteger()
Returns the field value as integer.
|
long |
getLong()
Returns the field value as long.
|
ScaledDecimal |
getScaledDecimal()
Returns field value as
ScaledDecimal . |
int |
getTag()
Returns field tag number.
|
ValuePtr |
getValuePtr()
Returns field value as a pointer to a byte array.
|
String |
toString() |
public Field()
public Field(int tag, byte[] buffer, int offset, int length)
tag
- tag numberbuffer
- buffer containing the valueoffset
- offset of the value in the bufferlength
- length of the valuepublic int getTag()
public ValuePtr getValuePtr()
ValuePtr.isSet()
to check whether value is setpublic int getInteger()
ValueIsIncorrectException
- if the value can't be parsed to intpublic String get()
public ScaledDecimal getScaledDecimal()
ScaledDecimal
.ValueIsIncorrectException
- if the field value can't be parsed to ScaledDecimal
public double getDouble()
ValueIsIncorrectException
- if the value can't be parsed to doublepublic byte[] getBytes()
public BigDecimal getBigDecimal()
BigDecimal
.BigDecimal
ValueIsIncorrectException
- if the value can't be parsed to BigDecimal
public long getLong()
ValueIsIncorrectException
- if the value can't be parsed to longCopyright © 2005–2024 Onix Solutions. All rights reserved.