Class ObjectFieldPutter


  • public class ObjectFieldPutter
    extends FieldPutter
    A field putter for object-type fields.
    • Field Detail

      • value

        private java.lang.Object value
      • unshared

        private final boolean unshared
    • Constructor Detail

      • ObjectFieldPutter

        public ObjectFieldPutter​(boolean unshared)
        Construct a new instance.
        Parameters:
        unshared - true if this object should be recorded as "unshared", false otherwise
    • Method Detail

      • write

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

        public Kind getKind()
        Get the kind of field being written.
        Specified by:
        getKind in class FieldPutter
        Returns:
        the kind of field
      • getObject

        public java.lang.Object getObject()
        Get the object value of this field.
        Overrides:
        getObject in class FieldPutter
        Returns:
        the object value of this field
      • setObject

        public void setObject​(java.lang.Object value)
        Set the object value of this field.
        Overrides:
        setObject in class FieldPutter
        Parameters:
        value - the object value of this field