|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
void |
accept(UiVisitor visitor)
Visitor pattern. |
java.lang.String |
getIndex(java.lang.Object value)
|
java.lang.String |
getIndex(java.lang.Object value,
int maxLength)
Returns a version of the index that is no longer than the specified maximum |
java.util.Vector |
getLegalValues()
|
java.util.Vector |
getLikelyValues()
|
java.lang.String |
getLongestLegalIndex()
If the type is enumerable, this method will scan through all legal values and return the longest index it finds; if the type is not enumerable, no guarantees are given for the result |
int |
getMaxNumLegalValues()
|
int |
getNumLegalValues()
For enumerable types, returns the number of legal values; throws UnsupportedOperationException otherwise |
int |
getNumLikelyValues()
|
int |
getTypicalIndexLength()
Returns the typical lenght of the index |
int |
getUniqueId()
Returns a unique id of this instantiation. |
boolean |
hasIndex()
Index is a short unique summary of the value (which can be used for choosing present values, etc. |
boolean |
hasOrdering()
This method returns true if there exists a natural ordering on the values of this type; false otherwise; |
boolean |
hasSetLegalValues()
|
boolean |
isEnumerable()
This method tells you if possible values for this type can be (reasonably) enumerated |
boolean |
isFinalLegalValues()
Returns true if the legal values are guaranteed not to change throughout the duration of this run time |
boolean |
isLegalValue(java.lang.Object value)
Check if a value is legal for this type. |
boolean |
isLegalValueClass(java.lang.Class c)
Check if a class is legal for this type. |
boolean |
isPrimitiveType()
Test if this is a primitive type. |
java.util.Vector |
orderValues(java.util.Vector v)
This method enforces type-specific ordering on values (can only be legally invoked if hasOrdering() returns true) |
java.lang.String |
toPrettyString(java.lang.String pref)
|
java.lang.Object |
verifyCurrentValue(java.lang.Object value)
This method gets called by UiObjects when they are notified that the legal values of their type have changed; this method looks at the current value of the object and verifies that the value is still legal. |
| Methods inherited from interface edu.washington.cs.supple.rep.SuppleBean |
addPropertyChangeListener, removePropertyChangeListener |
| Method Detail |
public int getUniqueId()
public void accept(UiVisitor visitor)
public boolean isEnumerable()
public boolean hasOrdering()
public java.util.Vector orderValues(java.util.Vector v)
v - values to be ordered
public java.lang.Object verifyCurrentValue(java.lang.Object value)
value - the value to be verified
public int getNumLegalValues()
public int getMaxNumLegalValues()
public boolean hasSetLegalValues()
public boolean isFinalLegalValues()
public java.util.Vector getLegalValues()
public boolean isLegalValue(java.lang.Object value)
value - value to be checked
public boolean isLegalValueClass(java.lang.Class c)
c -
public java.util.Vector getLikelyValues()
public int getNumLikelyValues()
public boolean hasIndex()
public java.lang.String getIndex(java.lang.Object value)
public java.lang.String getIndex(java.lang.Object value,
int maxLength)
maxLength - the maximum length allowed for the index (in characters)
public int getTypicalIndexLength()
public java.lang.String getLongestLegalIndex()
public boolean isPrimitiveType()
public java.lang.String toPrettyString(java.lang.String pref)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||