Package org.jboss.marshalling.util
Class ObjectFieldPutter
java.lang.Object
org.jboss.marshalling.util.FieldPutter
org.jboss.marshalling.util.ObjectFieldPutter
A field putter for object-type fields.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKind()
Get the kind of field being written.Get the object value of this field.void
Set the object value of this field.void
write
(Marshaller marshaller) Write the value of this field in its proper native format.
-
Field Details
-
value
-
-
Constructor Details
-
ObjectFieldPutter
public ObjectFieldPutter(boolean unshared) Construct a new instance.- Parameters:
unshared
-true
if this object should be recorded as "unshared",false
otherwise
-
-
Method Details
-
write
Write the value of this field in its proper native format.- Specified by:
write
in classFieldPutter
- Parameters:
marshaller
- the marshaller to which to write- Throws:
IOException
- if an error occurs
-
getKind
Get the kind of field being written.- Specified by:
getKind
in classFieldPutter
- Returns:
- the kind of field
-
getObject
Get the object value of this field.- Overrides:
getObject
in classFieldPutter
- Returns:
- the object value of this field
-
setObject
Set the object value of this field.- Overrides:
setObject
in classFieldPutter
- Parameters:
value
- the object value of this field
-