public class AttributeChangeOperation extends ValueObject
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_ADD
Deprecated.
See ADD_ACTION.
|
static int |
ACTION_ADD_ENUM
Deprecated.
See ADD_ACTION.
|
static java.lang.String |
ACTION_CHANGE
Deprecated.
See REPLACE_ACTION.
|
static int |
ACTION_CHANGE_ENUM
Deprecated.
See REPLACE_ACTION.
|
static java.lang.String |
ACTION_REMOVE
Deprecated.
See REMOVE_ACTION.
|
static int |
ACTION_REMOVE_ENUM
Deprecated.
See REMOVE_ACTION.
|
static int |
ADD_ACTION
Integer constant for the add action.
|
static int |
REMOVE_ACTION
Integer constant for the remove action.
|
static int |
REPLACE_ACTION
Integer constant for the change/replace action.
|
| Constructor and Description |
|---|
AttributeChangeOperation()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAction()
Deprecated.
See getModificationAction.
|
java.util.Collection<AttributeValue> |
getChangeData()
Returns a collection of the AttributeValue objects that hold the
values of the attributes to be added, removed, or replaced.
|
int |
getChangeDataSize()
Returns the number of attributes in the subject of the action.
|
int |
getModificationAction()
Returns the action to be performed on the attribute.
|
void |
setAction(java.lang.String action)
Deprecated.
See setModificationAction.
|
void |
setChangeData(java.util.Collection<AttributeValue> subjectData)
Replaces the subject of the change action with a collection of
AttributeValue objects.
|
void |
setModificationAction(int action)
Sets the action to be performed on the attribute.
|
java.lang.String |
toString()
Returns a string representation of the attribute change operation.
|
java.lang.String |
toXML()
Returns an XML String representation of the attribute operation.
|
clone, equals, hashCodepublic static final int ADD_ACTION
public static final int REMOVE_ACTION
public static final int REPLACE_ACTION
public static final int ACTION_ADD_ENUM
public static final int ACTION_REMOVE_ENUM
public static final int ACTION_CHANGE_ENUM
public static final java.lang.String ACTION_ADD
public static final java.lang.String ACTION_CHANGE
public static final java.lang.String ACTION_REMOVE
public java.lang.String getAction()
public void setAction(java.lang.String action)
action - String representation of the action to be performed.public int getModificationAction()
public void setModificationAction(int action)
action - int representation of the action to be performed.public java.util.Collection<AttributeValue> getChangeData()
public void setChangeData(java.util.Collection<AttributeValue> subjectData)
subjectData - Subject of action as a collection of AttributeValue objects.public int getChangeDataSize()
public java.lang.String toString()
toString in class ValueObjectpublic java.lang.String toXML()