Top Description Fields Constructors Methods
org.jboss.marshalling.util

public Class ObjectFieldPutter

extends FieldPutter
Class Inheritance
Imports
org.jboss.marshalling.Marshaller, java.io.IOException

A field putter for object-type fields.

Field Summary

Modifier and TypeField and Description
private final boolean
private Object

Constructor Summary

AccessConstructor and Description
public
ObjectFieldPutter(final boolean
true if this object should be recorded as "unshared", false otherwise
unshared
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public Kind
getKind()

Implements abstract org.jboss.marshalling.util.FieldPutter.getKind.

Get the kind of field being written.
public Object
getObject()

Overrides org.jboss.marshalling.util.FieldPutter.getObject.

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

Overrides org.jboss.marshalling.util.FieldPutter.setObject.

Set the object value of this field.
public void
write(final Marshaller
the marshaller to which to write
marshaller
)

Implements abstract org.jboss.marshalling.util.FieldPutter.write.

Write the value of this field in its proper native format.
Inherited from org.jboss.marshalling.util.FieldPutter:
getBooleangetBytegetChargetDoublegetFloatgetIntgetLonggetShortsetBooleansetBytesetCharsetDoublesetFloatsetIntsetLongsetShort

Field Detail

unsharedback to summary
private final boolean unshared
valueback to summary
private Object value

Constructor Detail

ObjectFieldPutterback to summary
public ObjectFieldPutter(final boolean unshared)

Construct a new instance.

Parameters
unshared:boolean

true if this object should be recorded as "unshared", false otherwise

Method Detail

getKindback to summary
public Kind getKind()

Implements abstract org.jboss.marshalling.util.FieldPutter.getKind.

Doc from org.jboss.marshalling.util.FieldPutter.getKind.

Get the kind of field being written.

Returns:Kind

the kind of field

getObjectback to summary
public Object getObject()

Overrides org.jboss.marshalling.util.FieldPutter.getObject.

Doc from org.jboss.marshalling.util.FieldPutter.getObject.

Get the object value of this field.

Returns:Object

the object value of this field

setObjectback to summary
public void setObject(final Object value)

Overrides org.jboss.marshalling.util.FieldPutter.setObject.

Doc from org.jboss.marshalling.util.FieldPutter.setObject.

Set the object value of this field.

Parameters
value:Object

the object value of this field

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

Implements abstract org.jboss.marshalling.util.FieldPutter.write.

Doc from org.jboss.marshalling.util.FieldPutter.write.

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