java.lang .Object org.openharmonise.rm.resources.metadata.properties.ranges .AbstractRange org.openharmonise.rm.resources.metadata.properties.ranges .NumberRange All known Subclasses: org.openharmonise.rm.resources.metadata.properties.ranges .IntegerRange , org.openharmonise.rm.resources.metadata.properties.ranges .FloatRange ,NumberRange abstract public class NumberRange extends AbstractRange implements Range ,Publishable (Code) Abstract class which represents a Property
range which is
restricted to Number
values.
author: Michael Bellversion: $Revision: 1.2 $
Field Summary final public static String ATTRIB_EXCLUSIVE final public static String TAG_MAX final public static String TAG_MIN protected booleanm_bHasMax A boolean
to indicate whether this range has a maximum
value.protected booleanm_bHasMin A boolean
to indicate whether this range has a minimum
value.protected booleanm_bMaxExclusive A boolean
to indicate whether the maximum limit is
exclusive.protected booleanm_bMinExclusive A boolean
to indicate whether the minimum limit is
exclusive.
Constructor Summary public NumberRange () public NumberRange (String sObjClassName) Constructs a NumberRange
with the specified class restriction.public NumberRange (String sObjClassName, String sDetails) Constructs a NumberRange
with the specified class restriction.
Method Summary public booleanequals (Object obj) public Class getPropertyInstanceClass () public booleanhasMax () Returns true
if this range has a maximum limit.public voidhasMax (boolean bHasMax) Sets whether this range has a maximum limit.public booleanhasMin () Returns true
if this range has a minimum limit.public voidhasMin (boolean bHasMin) Sets whether this range has a minimum limit.protected booleanisExclusive (Element el) Returns true
if the specified XML element has an
attribute which matches ATTRIB_EXCLUSIVE
and
had a 'true' value.public booleanisMaxExclusive () Returns true
if max limit is exclusive.public booleanisMinExclusive () Return the minimum value this range will allow.public booleanisValid (Object obj)
ATTRIB_EXCLUSIVE final public static String ATTRIB_EXCLUSIVE (Code)
m_bHasMax protected boolean m_bHasMax(Code) A boolean
to indicate whether this range has a maximum
value.
m_bHasMin protected boolean m_bHasMin(Code) A boolean
to indicate whether this range has a minimum
value.
m_bMaxExclusive protected boolean m_bMaxExclusive(Code) A boolean
to indicate whether the maximum limit is
exclusive. true
if the value is exclusive, false
otherwise.
m_bMinExclusive protected boolean m_bMinExclusive(Code) A boolean
to indicate whether the minimum limit is
exclusive. true
if the value is exclusive, false
otherwise.
NumberRange public NumberRange()(Code) Constructs a new NumberRange
NumberRange public NumberRange(String sObjClassName)(Code) Constructs a NumberRange
with the specified class restriction.
Parameters: sObjClassName - the class name of objects within this range
NumberRange public NumberRange(String sObjClassName, String sDetails)(Code) Constructs a NumberRange
with the specified class restriction.
Parameters: sObjClassName - the class name of objects within this rangeParameters: sDetails - a String
representation of the non classtype restrictions
hasMax public boolean hasMax()(Code) Returns true
if this range has a maximum limit.
true
if this range has a maximum limit
hasMax public void hasMax(boolean bHasMax)(Code) Sets whether this range has a maximum limit.
Parameters: bHasMin - true
if this range has a maximum limit, otherwisefalse
hasMin public boolean hasMin()(Code) Returns true
if this range has a minimum limit.
true
if this range has a minimum limit
hasMin public void hasMin(boolean bHasMin)(Code) Sets whether this range has a minimum limit.
Parameters: bHasMin - true
if this range has a minimum limit, otherwisefalse
isExclusive protected boolean isExclusive(Element el)(Code) Returns true
if the specified XML element has an
attribute which matches ATTRIB_EXCLUSIVE
and
had a 'true' value.
Parameters: el - the XML element returns the boolean
value of the ATTRIB_EXCLUSIVE
attribute
isMaxExclusive public boolean isMaxExclusive()(Code) Returns true
if max limit is exclusive.
true
if max limit is exclusive
isMinExclusive public boolean isMinExclusive()(Code) Return the minimum value this range will allow.
the minimum value this range will allow