Class FieldPutter

java.lang.Object
org.jboss.marshalling.util.FieldPutter
Direct Known Subclasses:
BooleanFieldPutter, ByteFieldPutter, CharFieldPutter, DoubleFieldPutter, FloatFieldPutter, IntFieldPutter, LongFieldPutter, ObjectFieldPutter, ShortFieldPutter

public abstract class FieldPutter extends Object
Base class for a field "putter" which represents a field's data cell.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Construct a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Get the boolean value of this field.
    byte
    Get the byte value of this field.
    char
    Get the character value of this field.
    double
    Get the double value of this field.
    float
    Get the float value of this field.
    int
    Get the integer value of this field.
    abstract Kind
    Get the kind of field being written.
    long
    Get the long value of this field.
    Get the object value of this field.
    short
    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
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FieldPutter

      protected FieldPutter()
      Construct a new instance.
  • Method Details

    • write

      public abstract void write(Marshaller marshaller) throws IOException
      Write the value of this field in its proper native format.
      Parameters:
      marshaller - the marshaller to which to write
      Throws:
      IOException - if an error occurs
    • getKind

      public abstract Kind getKind()
      Get the kind of field being written.
      Returns:
      the kind of field
    • getBoolean

      public boolean getBoolean()
      Get the boolean value of this field.
      Returns:
      the boolean value of this field
    • setBoolean

      public void setBoolean(boolean value)
      Set the boolean value of this field.
      Parameters:
      value - the boolean value of this field
    • getByte

      public byte getByte()
      Get the byte value of this field.
      Returns:
      the byte value of this field
    • setByte

      public void setByte(byte value)
      Set the byte value of this field.
      Parameters:
      value - the byte value of this field
    • getChar

      public char getChar()
      Get the character value of this field.
      Returns:
      the character value of this field
    • setChar

      public void setChar(char value)
      Set the character value of this field.
      Parameters:
      value - the character value of this field
    • getDouble

      public double getDouble()
      Get the double value of this field.
      Returns:
      the double value of this field
    • setDouble

      public void setDouble(double value)
      Set the double value of this field.
      Parameters:
      value - the double value of this field
    • getFloat

      public float getFloat()
      Get the float value of this field.
      Returns:
      the float value of this field
    • setFloat

      public void setFloat(float value)
      Set the float value of this field.
      Parameters:
      value - the float value of this field
    • getInt

      public int getInt()
      Get the integer value of this field.
      Returns:
      the integer value of this field
    • setInt

      public void setInt(int value)
      Set the integer value of this field.
      Parameters:
      value - the integer value of this field
    • getLong

      public long getLong()
      Get the long value of this field.
      Returns:
      the long value of this field
    • setLong

      public void setLong(long value)
      Set the long value of this field.
      Parameters:
      value - the long value of this field
    • getObject

      public Object getObject()
      Get the object value of this field.
      Returns:
      the object value of this field
    • setObject

      public void setObject(Object value)
      Set the object value of this field.
      Parameters:
      value - the object value of this field
    • getShort

      public short getShort()
      Get the short value of this field.
      Returns:
      the short value of this field
    • setShort

      public void setShort(short value)
      Set the short value of this field.
      Parameters:
      value - the short value of this field