public enum AnswerType extends java.lang.Enum<AnswerType>
QueryOperation
Enum Constant and Description |
---|
CLEARED_OBJECTS
Answer contains clones of the original objects with
cleared surplus data |
CLONED_OBJECTS
Answer contains clones of the original objects
|
CLONNED_OBJECTS
Deprecated.
Use
CLONED_OBJECTS instead. |
NODATA_OBJECTS
Answer contains only
objects |
ORIGINAL_OBJECTS
Answer contains the original objects as is
|
REMOTE_OBJECTS
Deprecated.
Use
NODATA_OBJECTS instead. |
Modifier and Type | Method and Description |
---|---|
AbstractObject |
update(AbstractObject object)
Updates a
AbstractObject so that it conforms to this answer type. |
static AnswerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AnswerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnswerType ORIGINAL_OBJECTS
public static final AnswerType CLONED_OBJECTS
@Deprecated public static final AnswerType CLONNED_OBJECTS
CLONED_OBJECTS
instead.public static final AnswerType CLEARED_OBJECTS
cleared surplus data
public static final AnswerType NODATA_OBJECTS
objects
@Deprecated public static final AnswerType REMOTE_OBJECTS
NODATA_OBJECTS
instead.objects
public static AnswerType[] values()
for (AnswerType c : AnswerType.values()) System.out.println(c);
public static AnswerType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic AbstractObject update(AbstractObject object) throws java.lang.CloneNotSupportedException
AbstractObject
so that it conforms to this answer type.
That means, the object is cloned, cleared or transformed into a NoDataObject
.object
- the object to updatejava.lang.CloneNotSupportedException
- if a clone was requested but the specified object cannot be cloned