|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.string.padchop.PCSConfig
Holds and manages configuration for a PadChopString. See PadChopString.
Source code: PCSConfig.java.
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
PCSConfig(int i_length)
Create a PCSConfig. |
|
PCSConfig(int i_length,
SpcfcCfgChop sc_chop,
SpcfcCfgPad sc_pad)
Create a PCSConfig. |
|
PCSConfig(int i_length,
SpcfcCfgChop sc_chop,
SpcfcCfgPad sc_pad,
SpcfcCfgIfNull sc_ifNull)
Create a PCSConfig. |
Method Summary | |
boolean |
doChop()
If the string's length exceeds getLength, should it it be chopped?. |
boolean |
doPad()
If the string's length does not meet getLength, should it it be padded?. |
int |
getLength()
What is the length to pad/chop to? |
SpcfcCfgChop |
getSpcfcCfgChop()
Get the SpcfcCfgChop for direct manipulation. |
SpcfcCfgIfNull |
getSpcfcCfgIfNull()
Get the SpcfcCfgIfNull for direct manipulation. |
SpcfcCfgPad |
getSpcfcCfgPad()
Get the SpcfcCfgPad for direct manipulation. |
void |
setLength(int i_length)
Set the length to pad/chop to. |
void |
setSpcfcCfgChop(SpcfcCfgChop sc_chop)
Set the SpcfcCfgChop. |
void |
setSpcfcCfgIfNull(SpcfcCfgIfNull sc_ifNull)
Set the SpcfcCfgIfNull. |
void |
setSpcfcCfgPad(SpcfcCfgPad sc_pad)
Set the SpcfcCfgPad. |
String |
toString()
Get some information about this PadChopString. |
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 PCSConfig(int i_length)
Create a PCSConfig.
Equal to PCSConfig(i_length, (new SpcfcCfgChop()), (new SpcfcCfgPad()))
public PCSConfig(int i_length, SpcfcCfgChop sc_chop, SpcfcCfgPad sc_pad)
Create a PCSConfig.
Equal to PCSConfig(i_length, sc_chop, sc_pad, (new SpcfcCfgIfNull()))
public PCSConfig(int i_length, SpcfcCfgChop sc_chop, SpcfcCfgPad sc_pad, SpcfcCfgIfNull sc_ifNull)
Create a PCSConfig.
i_length
- The length to chop or pad to. Must be greater than zero. See getLength and setLength.sc_chop
- The chop-specific configuration. If null, chopping does not occur. See getSpcfcCfgChop and setSpcfcCfgChop.sc_pad
- The pad-specific configuration. If null, padding does not occur. See getSpcfcCfgPad and setSpcfcCfgPad.sc_ifNull
- The crash-if-null-specific configuration. May not be null. See getSpcfcCfgIfNull and setSpcfcCfgIfNull.Method Detail |
public final int getLength()
What is the length to pad/chop to?
public final boolean doChop()
If the string's length exceeds getLength, should it it be chopped?. See getLength
(getSpcfcCfgChop() != null)
public final boolean doPad()
If the string's length does not meet getLength, should it it be padded?. See getLength
(getSpcfcCfgPad() != null)
public final SpcfcCfgChop getSpcfcCfgChop()
Get the SpcfcCfgChop for direct manipulation.
The existence of this object declares that chopping will take place. See doChop.
public final SpcfcCfgPad getSpcfcCfgPad()
Get the SpcfcCfgPad for direct manipulation.
The existence of this object declares that padding will take place. See doPad.
public final SpcfcCfgIfNull getSpcfcCfgIfNull()
Get the SpcfcCfgIfNull for direct manipulation.
public final void setSpcfcCfgChop(SpcfcCfgChop sc_chop)
Set the SpcfcCfgChop.
Get with getSpcfcCfgChop
.
sc_chop
- The chop-specific configuration. If null, chopping does not occur.public final void setSpcfcCfgPad(SpcfcCfgPad sc_pad)
Set the SpcfcCfgPad.
Get with getSpcfcCfgPad
.
sc_pad
- The pad-specific configuration. If null, padding does not occur.public final void setSpcfcCfgIfNull(SpcfcCfgIfNull sc_ifNull)
Set the SpcfcCfgIfNull.
Get with getSpcfcCfgIfNull
.
sc_ifNull
- The crash-if-null-specific configuration. May not be null.public final void setLength(int i_length)
Set the length to pad/chop to.
Get with getLength
i_length
- The length to chop or pad to. Must be greater than zero.public String toString()
Get some information about this PadChopString.
toString
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