Class FieldPutter

    • Constructor Summary

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

      All Methods Instance Methods Abstract Methods Concrete Methods 
      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.
      java.lang.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​(java.lang.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.
      • Methods inherited from class java.lang.Object

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

      • FieldPutter

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

      • write

        public abstract void write​(Marshaller marshaller)
                            throws java.io.IOException
        Write the value of this field in its proper native format.
        Parameters:
        marshaller - the marshaller to which to write
        Throws:
        java.io.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 java.lang.Object getObject()
        Get the object value of this field.
        Returns:
        the object value of this field
      • setObject

        public void setObject​(java.lang.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