BooleanFieldPutter
, ByteFieldPutter
, CharFieldPutter
, DoubleFieldPutter
, FloatFieldPutter
, IntFieldPutter
, LongFieldPutter
, ObjectFieldPutter
, ShortFieldPutter
public abstract class FieldPutter extends Object
Modifier | Constructor | Description |
---|---|---|
protected |
FieldPutter() |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
getBoolean() |
Get the boolean value of this field.
|
byte |
getByte() |
Get the byte value of this field.
|
char |
getChar() |
Get the character value of this field.
|
double |
getDouble() |
Get the double value of this field.
|
float |
getFloat() |
Get the float value of this field.
|
int |
getInt() |
Get the integer value of this field.
|
abstract Kind |
getKind() |
Get the kind of field being written.
|
long |
getLong() |
Get the long value of this field.
|
Object |
getObject() |
Get the object value of this field.
|
short |
getShort() |
Get the short value of this field.
|
void |
setBoolean(boolean value) |
Set the boolean value of this field.
|
void |
setByte(byte value) |
Set the byte value of this field.
|
void |
setChar(char value) |
Set the character value of this field.
|
void |
setDouble(double value) |
Set the double value of this field.
|
void |
setFloat(float value) |
Set the float value of this field.
|
void |
setInt(int value) |
Set the integer value of this field.
|
void |
setLong(long value) |
Set the long value of this field.
|
void |
setObject(Object value) |
Set the object value of this field.
|
void |
setShort(short value) |
Set the short value of this field.
|
abstract void |
write(Marshaller marshaller) |
Write the value of this field in its proper native format.
|
public abstract void write(Marshaller marshaller) throws IOException
marshaller
- the marshaller to which to writeIOException
- if an error occurspublic abstract Kind getKind()
public boolean getBoolean()
public void setBoolean(boolean value)
value
- the boolean value of this fieldpublic byte getByte()
public void setByte(byte value)
value
- the byte value of this fieldpublic char getChar()
public void setChar(char value)
value
- the character value of this fieldpublic double getDouble()
public void setDouble(double value)
value
- the double value of this fieldpublic float getFloat()
public void setFloat(float value)
value
- the float value of this fieldpublic int getInt()
public void setInt(int value)
value
- the integer value of this fieldpublic long getLong()
public void setLong(long value)
value
- the long value of this fieldpublic Object getObject()
public void setObject(Object value)
value
- the object value of this fieldpublic short getShort()
public void setShort(short value)
value
- the short value of this fieldCopyright © 2018 JBoss by Red Hat. All rights reserved.