|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.array.primitive.PARSElement
Part of PARString configuring element-related items. See PARString.
Source code: PARSElement.java
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
PARSElement()
Create an unrestricted PARSElement. |
|
PARSElement(boolean b_lmntNullOk)
Create a PARSElement. |
|
PARSElement(boolean b_lmntNullOk,
RCLength rcl_lmntLength)
Create a PARSElement with the element-null setting and RCLength. |
|
PARSElement(boolean b_lmntNullOk,
RCLength rcl_lmntLength,
String[] as_illegal)
Create a PARSElement. |
|
PARSElement(boolean b_lmntNullOk,
String[] as_illegal)
Create a PARSElement. |
|
PARSElement(RCLength rcl_lmntLength)
Create a PARSElement. |
|
PARSElement(RCLength rcl_lmntLength,
String[] as_illegal)
Create a PARSElement. |
|
PARSElement(String[] as_illegal)
Create a PARSElement. |
Method Summary | |
protected Object |
clone()
Get a full (deep) copy of this PARSElement as an Object. |
AOSLHashtable |
getAOSLHIllegal()
Get the AOSLHashtable containing the strings considered illegal. |
APString |
getAPSIllegal()
Get the array of strings considered illegal, as an APString. |
PARSElement |
getPARSEClone()
Get a full (deep) copy of this PARSElement. |
RCLength |
getRCLength()
What character is defined as illegal, should it be found in the char array? |
boolean |
hasIllegalStrings()
Are there strings considered illegal? |
boolean |
isIllegal(String s_tr)
Is the provided string illegal? |
boolean |
isNullLmntOk()
Is a character defined as illegal, should it be found in the char array? |
boolean |
isRestricted()
Does this PARSEIllegal have any restrictions? |
String |
toString()
Get some information about this PARSEIllegal. |
Methods inherited from class xbn.XBNObject |
getXMsgPrefix, sop, sopl, sopl, throwAX, throwAXIfBadStr, throwAXIfNull, throwAXSpoof |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PARSElement()
Create an unrestricted PARSElement.
Equal to PARSElement(true)
public PARSElement(boolean b_lmntNullOk)
Create a PARSElement.
Equal to PARSElement(b_lmntNullOk, (new RCLength()))
public PARSElement(RCLength rcl_lmntLength)
Create a PARSElement.
Equal to PARSElement(true, rcl_lmntLength)
public PARSElement(String[] as_illegal)
Create a PARSElement.
Equal to PARSElement(true, as_illegal)
public PARSElement(boolean b_lmntNullOk, RCLength rcl_lmntLength)
Create a PARSElement with the element-null setting and RCLength.
Equal to PARSElement(b_lmntNullOk, rcl_lmntLength, (new String[] {}))
public PARSElement(boolean b_lmntNullOk, String[] as_illegal)
Create a PARSElement.
Equal to PARSElement(b_lmntNullOk, (new RCLength()), as_illegal)
public PARSElement(RCLength rcl_lmntLength, String[] as_illegal)
Create a PARSElement.
Equal to PARSElement(true, rcl_lmntLength, as_illegal)
public PARSElement(boolean b_lmntNullOk, RCLength rcl_lmntLength, String[] as_illegal)
Create a PARSElement.
b_lmntNullOk
- If true, then any element in the PrimitiveArrayString may be null. If false, then no element may be null.rcl_lmntLength
- The range that each element's length must conform to. May not be null.as_illegal
- The array of strings that no element may be equal to. May not be null. If zero elements in length, then no strings are considered illegal. If at least one element in length, then each element's length must be legal according to rcl_lmntLength.isValid. Duplicate strings in this array are ignored.Method Detail |
public final boolean isNullLmntOk()
Is a character defined as illegal, should it be found in the char array?
public final RCLength getRCLength()
What character is defined as illegal, should it be found in the char array?
public final AOSLHashtable getAOSLHIllegal()
Get the AOSLHashtable containing the strings considered illegal.
public boolean isIllegal(String s_tr)
Is the provided string illegal?
s_tr
- The string to determine illegality of. May not be null.getAOSLHIllegal().containsKey(s_tr)
If otherwise.public final boolean hasIllegalStrings()
Are there strings considered illegal?
(getAPSIllegal().getLength() > 0)
public final APString getAPSIllegal()
Get the array of strings considered illegal, as an APString.
(new APString(as_illegal))
Where ai_illegal is exactly as provided to the constructor. Note this object is only created once.public boolean isRestricted()
Does this PARSEIllegal have any restrictions?
(!isNullLmntOk() || getRCLength().isRestricted() || hasIllegalStrings())
public String toString()
Get some information about this PARSEIllegal.
toString
in class Object
public final PARSElement getPARSEClone()
Get a full (deep) copy of this PARSElement.
(PARSElement)clone()
protected final Object clone() throws CloneNotSupportedException
Get a full (deep) copy of this PARSElement as an Object.
clone
in class Object
|
|||||||||
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