|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.Modifier
public class Modifier
The Modifier class encapsulates a modification requests made to the data object inside a DataControl. A Modifier object is composed of a command and the key/values pair that the command will operate on.
Field Summary | |
---|---|
protected int |
_command
Reference to the command representaion associated with this control |
protected java.lang.String |
_key
Reference to the key of the object being modified in the DataControl. |
protected java.io.Serializable[] |
_values
Array of objects associated to the key for which the operation will take place. |
static int |
ADD
Constant representing and add operation on the data control. |
static int |
REMOVE
Constant representing and remove operation on the data control. |
static int |
REPLACE
Constant representing and replace operation on the data control. |
Constructor Summary | |
---|---|
Modifier(int command,
java.lang.String key,
java.io.Serializable value)
Instantitates a new Modifier object. |
|
Modifier(int command,
java.lang.String key,
java.io.Serializable[] values)
Instantitates a new Modifier object. |
Method Summary | |
---|---|
java.util.Enumeration |
enumerateValues()
This method returns the enumeration of objects associated to the operation in this control object. |
int |
getCommand()
This method returns the integer representation of the operation associated to this Modifier object. |
java.lang.String |
getKey()
This method returns the key of the objects being modified by this control object. |
java.io.Serializable[] |
getValues()
This method returns the list of objects associated to the operation in this control object. |
void |
setCommand(int command)
This method sets the integer representation of the operation associated to this control object. |
void |
setKey(java.lang.String key)
This method returns the key associated to the objects for which this control will operate on. |
void |
setValue(java.io.Serializable value)
This method sets the objects associated to the operation in this control object. |
void |
setValues(java.io.Serializable[] values)
This method sets the objects associated to the operation in this control object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ADD
public static final int REMOVE
public static final int REPLACE
protected int _command
protected java.lang.String _key
protected java.io.Serializable[] _values
Constructor Detail |
---|
public Modifier(int command, java.lang.String key, java.io.Serializable[] values)
command
- The integer representation of the operation to be performed
on the DataControl. This parameter must be one of the
following pre-defined constants:
key
- The key for which the operations in the DataControl will
take place.values
- The array of objects to be associated with the given key.public Modifier(int command, java.lang.String key, java.io.Serializable value)
command
- The integer representation of the operation to be performed
on the DataControl. This parameter must be one of the
following pre-defined constants:
key
- The key for which the operations in the DataControl will
take place.value
- The object to be associated with the given key.Method Detail |
---|
public int getCommand()
public java.lang.String getKey()
public java.io.Serializable[] getValues()
public java.util.Enumeration enumerateValues()
public void setCommand(int command)
command
- The integer representation of the operation to be performed
on the DataControl. This parameter must be one of the
following pre-defined constants:
public void setKey(java.lang.String key)
key
- The key for which the operations in the DataControl will
take place.public void setValues(java.io.Serializable[] values)
values
- The array of objects associated with the given key.public void setValue(java.io.Serializable value)
value
- The object associated with the given key.public java.lang.String toString()
toString
in class java.lang.Object
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.