Top Description Constructors Methods
org.jboss.marshalling.util

public abstract Class FieldPutter

extends Object
Class Inheritance
Known Direct Subclasses
org.jboss.marshalling.util.FloatFieldPutter, org.jboss.marshalling.util.IntFieldPutter, org.jboss.marshalling.util.LongFieldPutter, org.jboss.marshalling.util.ObjectFieldPutter, org.jboss.marshalling.util.ShortFieldPutter, org.jboss.marshalling.util.BooleanFieldPutter, org.jboss.marshalling.util.ByteFieldPutter, org.jboss.marshalling.util.CharFieldPutter, org.jboss.marshalling.util.DoubleFieldPutter
Imports
java.io.IOException, org.jboss.marshalling.Marshaller

Base class for a field "putter" which represents a field's data cell.

Constructor Summary

AccessConstructor and Description
protected
FieldPutter()

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

the boolean value of this field
getBoolean
()

Get the boolean value of this field.

public byte

Returns:

the byte value of this field
getByte
()

Get the byte value of this field.

public char

Returns:

the character value of this field
getChar
()

Get the character value of this field.

public double

Returns:

the double value of this field
getDouble
()

Get the double value of this field.

public float

Returns:

the float value of this field
getFloat
()

Get the float value of this field.

public int

Returns:

the integer value of this field
getInt
()

Get the integer value of this field.

public abstract Kind

Returns:

the kind of field
getKind
()

Get the kind of field being written.

public long

Returns:

the long value of this field
getLong
()

Get the long value of this field.

public Object

Returns:

the object value of this field
getObject
()

Get the object value of this field.

public short

Returns:

the short value of this field
getShort
()

Get the short value of this field.

public void
setBoolean(boolean
the boolean value of this field
value
)

Set the boolean value of this field.

public void
setByte(byte
the byte value of this field
value
)

Set the byte value of this field.

public void
setChar(char
the character value of this field
value
)

Set the character value of this field.

public void
setDouble(double
the double value of this field
value
)

Set the double value of this field.

public void
setFloat(float
the float value of this field
value
)

Set the float value of this field.

public void
setInt(int
the integer value of this field
value
)

Set the integer value of this field.

public void
setLong(long
the long value of this field
value
)

Set the long value of this field.

public void
setObject(Object
the object value of this field
value
)

Set the object value of this field.

public void
setShort(short
the short value of this field
value
)

Set the short value of this field.

public abstract void
write(final Marshaller
the marshaller to which to write
marshaller
)

Write the value of this field in its proper native format.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FieldPutterback to summary
protected FieldPutter()

Construct a new instance.

Method Detail

getBooleanback to summary
public boolean getBoolean()

Get the boolean value of this field.

Returns:boolean

the boolean value of this field

getByteback to summary
public byte getByte()

Get the byte value of this field.

Returns:byte

the byte value of this field

getCharback to summary
public char getChar()

Get the character value of this field.

Returns:char

the character value of this field

getDoubleback to summary
public double getDouble()

Get the double value of this field.

Returns:double

the double value of this field

getFloatback to summary
public float getFloat()

Get the float value of this field.

Returns:float

the float value of this field

getIntback to summary
public int getInt()

Get the integer value of this field.

Returns:int

the integer value of this field

getKindback to summary
public abstract Kind getKind()

Get the kind of field being written.

Returns:Kind

the kind of field

getLongback to summary
public long getLong()

Get the long value of this field.

Returns:long

the long value of this field

getObjectback to summary
public Object getObject()

Get the object value of this field.

Returns:Object

the object value of this field

getShortback to summary
public short getShort()

Get the short value of this field.

Returns:short

the short value of this field

setBooleanback to summary
public void setBoolean(boolean value)

Set the boolean value of this field.

Parameters
value:boolean

the boolean value of this field

setByteback to summary
public void setByte(byte value)

Set the byte value of this field.

Parameters
value:byte

the byte value of this field

setCharback to summary
public void setChar(char value)

Set the character value of this field.

Parameters
value:char

the character value of this field

setDoubleback to summary
public void setDouble(double value)

Set the double value of this field.

Parameters
value:double

the double value of this field

setFloatback to summary
public void setFloat(float value)

Set the float value of this field.

Parameters
value:float

the float value of this field

setIntback to summary
public void setInt(int value)

Set the integer value of this field.

Parameters
value:int

the integer value of this field

setLongback to summary
public void setLong(long value)

Set the long value of this field.

Parameters
value:long

the long value of this field

setObjectback to summary
public void setObject(Object value)

Set the object value of this field.

Parameters
value:Object

the object value of this field

setShortback to summary
public void setShort(short value)

Set the short value of this field.

Parameters
value:short

the short value of this field

writeback to summary
public abstract void write(final Marshaller marshaller) throws IOException

Write the value of this field in its proper native format.

Parameters
marshaller:Marshaller

the marshaller to which to write

Exceptions
IOException:
if an error occurs