|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cmc.tcgui.datadef.AttributeType
cz.cmc.tcgui.datadef.AttributeTypeNumber
Abstract parent implementing common properties for attribute types based on numbers.
Field Summary | |
protected boolean |
nonzero
The 'nonzero' flag |
protected boolean |
positive
The 'positive' flag |
Constructor Summary | |
AttributeTypeNumber()
Creates new AttributeTypeNumber with "positive" and "nonzero" flags set to false. |
|
AttributeTypeNumber(boolean positive,
boolean nonzero)
Creates new AttributeTypeNumber with "positive" and "nonzero" flags set to given values. |
Method Summary | |
boolean |
getNonzero()
Checks whether this AttributeTypeNumber has 'nonzero' flag set. |
boolean |
getPositive()
Checks whether this AttributeTypeNumber has 'positive' flag set. |
void |
setNonzero(boolean nonzero)
Sets the 'nonzero' flag. |
void |
setPositive(boolean positive)
Sets the 'positive' flag. |
String |
toString()
Returns String representing this object. |
Methods inherited from class cz.cmc.tcgui.datadef.AttributeType |
clone |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected boolean positive
setPositive(boolean)
protected boolean nonzero
setNonzero(boolean)
Constructor Detail |
public AttributeTypeNumber()
public AttributeTypeNumber(boolean positive, boolean nonzero)
positive
- boolean value to which to set the "positive" flag tononzero
- boolean value to which to set the "nonzero" flag toMethod Detail |
public boolean getPositive()
public void setPositive(boolean positive)
positive
- New value for the 'positive' flagpublic boolean getNonzero()
public void setNonzero(boolean nonzero)
public String toString()
toString
in class AttributeType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |