| java.lang.Object com.sun.kvem.midp.pim.VectorPIMField
VectorPIMField | class VectorPIMField implements PIMField(Code) | | Encapsulation of a multi-value PIM field
|
Method Summary | |
public void | addValue(int attributes, Object value) Adds a value to a PIM field. | public boolean | containsData() Checks if the field contains data. | public int | getAttributes(int index) Gets the field attributes. | public Object | getValue(int index) Gets the value of the field. | public int | getValueCount() Gets the number of value elements. | public boolean | isScalar() Checks if field has scalar value. | public void | removeValue(int index) Removes a value element. | public void | setValue(int attributes, Object value, int index) Sets the value of the field. |
addValue | public void addValue(int attributes, Object value)(Code) | | Adds a value to a PIM field.
Parameters: attributes - properties to update Parameters: value - entry to be updated |
containsData | public boolean containsData()(Code) | | Checks if the field contains data.
true if field contains data |
getAttributes | public int getAttributes(int index)(Code) | | Gets the field attributes.
Parameters: index - element identifier encoded attributes |
getValue | public Object getValue(int index)(Code) | | Gets the value of the field.
Parameters: index - element index field value |
getValueCount | public int getValueCount()(Code) | | Gets the number of value elements.
always returns 1 |
isScalar | public boolean isScalar()(Code) | | Checks if field has scalar value.
always returns true |
removeValue | public void removeValue(int index)(Code) | | Removes a value element.
Parameters: index - identifier for value to remove |
setValue | public void setValue(int attributes, Object value, int index)(Code) | | Sets the value of the field.
Parameters: attributes - field attributes requested Parameters: value - new value for field Parameters: index - element identifier |
|
|