|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ca.directory.jxplorer.viewer.tableviewer.AttributeValue
TableAttributeEditor utility class; encapsulates the idea of an editable (String) attribute value, as displayed in a table. It also checks to see if an attribute is Binary, and sets a 'binary' flag as a warning to cell editors to use special handling.
| Field Summary | |
java.lang.Object |
value
|
| Constructor Summary | |
AttributeValue(java.lang.String ID,
java.lang.Object v)
initialise with an object, take a backup, and set changed to false |
|
| Method Summary | |
java.lang.Object |
backup()
|
boolean |
changed()
|
java.lang.String |
getID()
|
java.lang.String[] |
getOptions()
adds a list of suggested options to the Attribute Value... |
java.lang.String |
getStringValue()
te: gets the value of the edited object. |
byte[] |
getValue()
gets the value of the edited object. |
boolean |
hasOptions()
Whether the Attribute Value has been given a set of suggested values. |
boolean |
isBinary()
|
boolean |
isEmpty()
|
boolean |
isNaming()
Returns whether this value is a naming value. |
void |
reset()
reset the value back to what it was initialised with. |
void |
setBinary(boolean bin)
sets the binary-ness of the attribute (this may be known externally from schema). |
void |
setNamingStatus(boolean state)
sets whether this value is a naming value (e.g. the 'Smith' in cn=Smith). |
void |
setOptions(java.lang.String[] ops)
adds a list of suggested options to the Attribute Value... |
void |
setStringValue(java.lang.String b)
synonym for update, used for EditableString interface... |
void |
setValue(byte[] b)
synonym for update, used for EditableBinary interface... |
boolean |
testBinary()
Checks whether the object is binary (actually, it checks if the object isn't a String...) |
java.lang.String |
toString()
Returns value as string. |
void |
update(java.lang.Object data)
update object |
java.lang.Object |
value()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.Object value
| Constructor Detail |
public AttributeValue(java.lang.String ID,
java.lang.Object v)
| Method Detail |
public void setNamingStatus(boolean state)
public boolean isNaming()
public boolean hasOptions()
public void setOptions(java.lang.String[] ops)
public java.lang.String[] getOptions()
public void update(java.lang.Object data)
public void setValue(byte[] b)
setValue in interface EditableBinaryb - an array of bytes that may be edited later.public void setStringValue(java.lang.String b)
setStringValue in interface EditableStringpublic byte[] getValue()
EditableBinary
getValue in interface EditableBinarypublic java.lang.String getStringValue()
EditableString
getStringValue in interface EditableStringpublic void reset()
public void setBinary(boolean bin)
public boolean testBinary()
public boolean isEmpty()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getID()
public boolean changed()
public java.lang.Object value()
public java.lang.Object backup()
public boolean isBinary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||