cz.cmc.tcgui.datadef
Class AttributeTypeInt

java.lang.Object
  extended bycz.cmc.tcgui.datadef.AttributeType
      extended bycz.cmc.tcgui.datadef.AttributeTypeNumber
          extended bycz.cmc.tcgui.datadef.AttributeTypeInt
All Implemented Interfaces:
Cloneable

public class AttributeTypeInt
extends AttributeTypeNumber

AttributeTypeInt is used to mark attributes which store int value.


Field Summary
 
Fields inherited from class cz.cmc.tcgui.datadef.AttributeTypeNumber
nonzero, positive
 
Constructor Summary
AttributeTypeInt()
          Creates new AttributeTypeInt with "positive" and "nonzero" flags set to false.
AttributeTypeInt(boolean positive, boolean nonzero)
          Creates new AttributeTypeInt with "positive" and "nonzero" flags set to given values.
 
Method Summary
 String toString()
          Returns String representing this object.
 
Methods inherited from class cz.cmc.tcgui.datadef.AttributeTypeNumber
getNonzero, getPositive, setNonzero, setPositive
 
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
 

Constructor Detail

AttributeTypeInt

public AttributeTypeInt()
Creates new AttributeTypeInt with "positive" and "nonzero" flags set to false.


AttributeTypeInt

public AttributeTypeInt(boolean positive,
                        boolean nonzero)
Creates new AttributeTypeInt with "positive" and "nonzero" flags set to given values.

Parameters:
positive - boolean value to which to set the "positive" flag to
nonzero - boolean value to which to set the "nonzero" flag to
Method Detail

toString

public String toString()
Returns String representing this object.

Overrides:
toString in class AttributeTypeNumber
Returns:
String representation of this object