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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKind()Get the kind of field being written.Get the object value of this field.voidSet the object value of this field.voidwrite(Marshaller marshaller) Write the value of this field in its proper native format.
-
Constructor Details
-
ObjectFieldPutter
public ObjectFieldPutter(boolean unshared) Construct a new instance.- Parameters:
unshared-trueif this object should be recorded as "unshared",falseotherwise
-
-
Method Details
-
write
Write the value of this field in its proper native format.- Specified by:
writein 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:
getKindin classFieldPutter- Returns:
- the kind of field
-
getObject
Get the object value of this field.- Overrides:
getObjectin classFieldPutter- Returns:
- the object value of this field
-
setObject
Set the object value of this field.- Overrides:
setObjectin classFieldPutter- Parameters:
value- the object value of this field
-