Class FieldPutter

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FieldPutter()
      Construct a new instance.
    • Constructor Detail

      • FieldPutter

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

      • 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