|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.util.RangeConfig | +--xbn.util.RCLength
A RangeConfig where the minimum value is always enforced, and may never be lower than zero. This class is helpful when validating something that has length. To manage a number conforming to an RCLength, see RLength.
Source code: RCLength.java. Unit tests: xbn_junit.JUTRCLength.java.
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
RCLength()
Create a, completely unrestricted, RCLength object. |
|
RCLength(int i_max)
Create a RCLength. |
|
RCLength(int i_max,
boolean b_nfrcMax)
Create a RCLength. |
|
RCLength(int i_min,
int i_max)
Create a RCLength. |
|
RCLength(int i_min,
int i_max,
boolean b_nfrcMax)
Create a RCLength. |
|
RCLength(RCLength rc_length)
Create a copy of the provided RCLength. |
Method Summary | |
boolean |
isRestricted()
Are there any restrictions imposed by this RCLength? |
String |
toString()
Get some information about this RCLength. |
String |
toString(boolean b_className)
Get some information about this RCLength. |
Methods inherited from class xbn.util.RangeConfig |
getMax, getMin, isMaxEnforced, isMinEnforced, isValid |
Methods inherited from class xbn.XBNObject |
getXMsgPrefix, sop, sopl, sopl, throwAX, throwAXIfBadStr, throwAXIfNull, throwAXSpoof |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RCLength()
Create a, completely unrestricted, RCLength object.
Equal to RCLength(0, -1, false)
public RCLength(int i_max)
Create a RCLength.
Equal to RCLength(i_min, i_max)
public RCLength(int i_min, int i_max)
Create a RCLength.
Equal to RCLength(i_min, i_max, true)
public RCLength(int i_max, boolean b_nfrcMax)
Create a RCLength.
Equal to RCLength(0, i_max, b_nfrcMax)
public RCLength(int i_min, int i_max, boolean b_nfrcMax)
Create a RCLength.
Equal to RangeConfig(i_min, true, i_max, b_nfrcMax)
. After this super call is successful, it is then verified that i_min is less than zero.
public RCLength(RCLength rc_length)
Create a copy of the provided RCLength.
Equal to RangeConfig(rc_length)
Method Detail |
public boolean isRestricted()
Are there any restrictions imposed by this RCLength?
isRestricted
in class RangeConfig
(getMin() > 0 || isMaxEnforced())
public String toString()
Get some information about this RCLength.
Equal to toString(true)
toString
in class RangeConfig
public String toString(boolean b_className)
Get some information about this RCLength.
toString
in class RangeConfig
b_className
- If true, display the class name at the beginning of the returned string. If false, don't.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
http://sourceforge.net/projects/xbnjava