|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.array.primitive.PrimitiveArrayRule | +--xbn.array.primitive.PARChar
Defines the rules to be enforced by PrimitiveArrayChar.isValid. See PrimitiveArrayChar.isValid.
Source code: PARChar.java.
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
PARChar()
Create a completely unrestricted PARChar. |
|
PARChar(char[] ac_illegal)
Create a PARChar. |
|
PARChar(PARChar par_char)
Create a full (deep) copy of the provided PARChar. |
|
PARChar(PARDupNullLen par_dupNullLen)
Create a PARChar. |
|
PARChar(PARDupNullLen par_dupNullLen,
char[] ac_illegal)
Create a PARChar. |
|
PARChar(PARDupNullLen par_dupNullLen,
PAROrderDir par_orderDir)
Create a PARChar. |
|
PARChar(PARDupNullLen par_dupNullLen,
PAROrderDir par_orderDir,
char[] ac_illegal)
Create an PARCGoodUnq. |
|
PARChar(PAROrderDir par_orderDir)
Create a PARChar. |
|
PARChar(PAROrderDir par_orderDir,
char[] ac_illegal)
Create a PARChar. |
Method Summary | |
APChar |
getAPCIllegal()
Get the array of chars considered illegal, as an APChar. |
boolean |
hasIllegalChars()
Is there at least one int considered illegal? |
boolean |
isIllegal(char c_har)
Is the provided char illegal? |
boolean |
isRestricted()
Does this PARChar have any restrictions? |
String |
toString()
Get some information about this PARChar. |
Methods inherited from class xbn.array.primitive.PrimitiveArrayRule |
getPARDupNullLen, getPAROrderDir |
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 PARChar()
Create a completely unrestricted PARChar.
Equal to PARChar(new PARDupNullLen())
Using this constructor causes isRestricted to equal true (until values are subsequently altered).
public PARChar(PARDupNullLen par_dupNullLen)
Create a PARChar.
Equal to PARChar(par_dupNullLen, (new PAROrderDir()))
public PARChar(PAROrderDir par_orderDir)
Create a PARChar.
Equal to PARChar((new PARDupNullLen()), par_orderDir)
public PARChar(char[] ac_illegal)
Create a PARChar.
Equal to PARChar((new PARDupNullLen()), ac_illegal)
public PARChar(PARDupNullLen par_dupNullLen, PAROrderDir par_orderDir)
Create a PARChar.
Equal to PARChar(par_dupNullLen, par_orderDir, (new char[] {}))
public PARChar(PARDupNullLen par_dupNullLen, char[] ac_illegal)
Create a PARChar.
Equal to PARChar(par_dupNullLen, (new PAROrderDir()), ac_illegal)
public PARChar(PAROrderDir par_orderDir, char[] ac_illegal)
Create a PARChar.
Equal to PARChar((new PARDupNullLen()), par_dupNullLen, par_orderDir, ac_illegal)
public PARChar(PARDupNullLen par_dupNullLen, PAROrderDir par_orderDir, char[] ac_illegal)
Create an PARCGoodUnq.
The first line of this constructor calls PrimitiveArrayRule(par_dupNullLen, par_orderDir)
.
ac_illegal
- Contains all chars considered illegal. Note that this is sorted in this constructor. May not be null. If zero elements in length, no chars are considered illegal.public PARChar(PARChar par_char)
Create a full (deep) copy of the provided PARChar.
The first line of this constructor calls PrimitiveArrayRule(par_char)
Method Detail |
public final APChar getAPCIllegal()
Get the array of chars considered illegal, as an APChar.
(new APChar(ac_illegal))
Where ac_illegal is exactly as provided to the constructor (except that it is sorted). Note this object is only created once.public final boolean hasIllegalChars()
Is there at least one int considered illegal?
(getAPCIllegal().getLength() > 0)
public boolean isIllegal(char c_har)
Is the provided char illegal?
c_har
- The char to determine legality of. May not be null.(Arrays.binarySearch(ac_illegal, c_har) > -1)
Where ac_illegal is exactly as provided to the constructor.public boolean isRestricted()
Does this PARChar have any restrictions?
isRestricted
in class PrimitiveArrayRule
(super.isRestricted() || getAPCIllegal().getLength() > 0)
public String toString()
Get some information about this PARChar.
toString
in class PrimitiveArrayRule
|
|||||||||
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