public class OptionalObject extends java.lang.Object implements ReadObjectCallback, Patcher
| Modifier and Type | Field and Description |
|---|---|
java.lang.Class<?> |
cls
The formal type of the target class.
|
Optional |
opt
The optional object.
|
java.lang.String |
type
The Slice type ID of the target class.
|
| Constructor and Description |
|---|
OptionalObject(Optional opt,
java.lang.Class<?> cls,
java.lang.String type)
Instantiates the class with the given optional.
|
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(Object obj)
Sets the Ice object of the optional to the passed instance.
|
void |
patch(Object v)
Sets the Ice object of the optional to the passed instance.
|
java.lang.String |
type()
Returns the Slice type ID of the most-derived Slice type supported
by this instance.
|
public Optional opt
public java.lang.Class<?> cls
public java.lang.String type
public OptionalObject(Optional opt, java.lang.Class<?> cls, java.lang.String type)
opt - The target optional.cls - The formal type required for the unmarshaled object.type - The Slice type ID corresponding to the formal type.public void patch(Object v)
public java.lang.String type()
public void invoke(Object obj)
invoke in interface ReadObjectCallbackobj - The new object for the optional.