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

public Class ObjectReadField

extends ReadField
Class Inheritance
Imports
org.jboss.marshalling.reflect.SerializableField, java.io.IOException

A read field whose value is an object type.

Field Summary

Modifier and TypeField and Description
private final Object

Constructor Summary

AccessConstructor and Description
public
ObjectReadField(final SerializableField
the serializable field
field
,
final Object
the value
value
)

Construct a new instance.

public
ObjectReadField(final SerializableField
the serializable field
field
)

Construct a new instance with the default value.

Method Summary

Modifier and TypeMethod and Description
public Kind
getKind()

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

Get the kind of field represented by this object.
public Object
getObject()

Overrides org.jboss.marshalling.util.ReadField.getObject.

Get the object value of this field.
Inherited from org.jboss.marshalling.util.ReadField:
compareTogetBooleangetBytegetChargetDoublegetFloatgetIntgetLonggetNamegetShortisDefaulted

Field Detail

valueback to summary
private final Object value

Constructor Detail

ObjectReadFieldback to summary
public ObjectReadField(final SerializableField field, final Object value)

Construct a new instance.

Parameters
field:SerializableField

the serializable field

value:Object

the value

ObjectReadFieldback to summary
public ObjectReadField(final SerializableField field)

Construct a new instance with the default value.

Parameters
field:SerializableField

the serializable field

Method Detail

getKindback to summary
public Kind getKind()

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

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

Get the kind of field represented by this object.

Returns:Kind

the kind of field represented by this object

getObjectback to summary
public Object getObject() throws IOException

Overrides org.jboss.marshalling.util.ReadField.getObject.

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

Get the object value of this field.

Returns:Object

the object value of this field

Exceptions
IOException:
if the value cannot be read