|
||||||||||
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.TypeAttribute
public class TypeAttribute
Attribute for Type classes, i.e., those implementing
GenericType.
Similar to EnumAttribute, but more formal due to its use of
GenericType. Pass it a GenericType and it will only allow
instances of that Type to be set. Value() will return the instance
of the Type that was set, or null of none was set.
Constructor Summary | |
---|---|
TypeAttribute(GenericType type)
Constructor with GenericType and no initial value. |
|
TypeAttribute(GenericType type,
AttributeValue selected)
Constructor with initial value. |
Method Summary | |
---|---|
boolean |
equals(AttributeValue other)
Determines whether one TypeAttribue 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. |
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 TypeAttribute(GenericType type) throws Scheherexception
Scheherexception
public TypeAttribute(GenericType type, AttributeValue selected) throws Scheherexception
Scheherexception
Method Detail |
---|
public AttributeValue value() throws Scheherexception
Scheherexception
public boolean greaterThan(AttributeValue other) throws Scheherexception
greaterThan
in class Attribute
Scheherexception
public boolean equals(AttributeValue other) throws Scheherexception
equals
in class Attribute
Scheherexception
public int maxLength()
Attribute
maxLength
in class Attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |