|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstory.dbcore.attributes.Attribute
story.dbcore.attributes.EnumAttribute
public class EnumAttribute
Attribute for enums, i.e., sets of strings, so that the attribute
can only be set to one of those strings (or null).
Pass it a HashSet of objects that are possible, and it will only
allow objects whose string serializations (using toString()) are
present in the HashSet to be set.
| Constructor Summary | |
|---|---|
EnumAttribute(ImmutableHashSet myEnum)
Constructor with enum HashSet and no initial value. |
|
EnumAttribute(ImmutableHashSet myEnum,
AttributeValue selected)
Constructor with initial value. |
|
| Method Summary | |
|---|---|
boolean |
equals(AttributeValue other)
Determines whether one EnumAttribue value is equal to another. |
boolean |
greaterThan(AttributeValue other)
Determines whether the attribute is greater than another attribute. |
int |
maxLength()
All extending classes must report their maximum length. |
java.lang.String |
renderMembers()
|
AttributeValue |
value()
Get the attribute value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumAttribute(ImmutableHashSet myEnum)
public EnumAttribute(ImmutableHashSet myEnum,
AttributeValue selected)
throws Scheherexception
Scheherexception| Method Detail |
|---|
public AttributeValue value()
throws Scheherexception
Scheherexception
public boolean greaterThan(AttributeValue other)
throws Scheherexception
greaterThan in class AttributeScheherexception
public boolean equals(AttributeValue other)
throws Scheherexception
equals in class AttributeScheherexception
public int maxLength()
throws Scheherexception
Attribute
maxLength in class AttributeScheherexceptionpublic java.lang.String renderMembers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||