public class ObjectFieldPutter extends FieldPutter
Constructor and Description |
---|
ObjectFieldPutter(boolean unshared)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Kind |
getKind()
Get the kind of field being written.
|
java.lang.Object |
getObject()
Get the object value of this field.
|
void |
setObject(java.lang.Object value)
Set the object value of this field.
|
void |
write(Marshaller marshaller)
Write the value of this field in its proper native format.
|
public ObjectFieldPutter(boolean unshared)
unshared
- true
if this object should be recorded as "unshared", false
otherwisepublic void write(Marshaller marshaller) throws java.io.IOException
write
in class FieldPutter
marshaller
- the marshaller to which to writejava.io.IOException
- if an error occurspublic Kind getKind()
getKind
in class FieldPutter
public java.lang.Object getObject()
getObject
in class FieldPutter
public void setObject(java.lang.Object value)
setObject
in class FieldPutter
value
- the object value of this fieldCopyright © 2011 JBoss, a division of Red Hat, Inc.