xbn.string.padchop
Class SpcfcCfgIfNull

java.lang.Object
  |
  +--xbn.XBNObject
        |
        +--xbn.string.padchop.SpcfcCfgIfNull

public class SpcfcCfgIfNull
extends XBNObject

Part of PCSConfig that configures crash-if-null-specific items. See PCSConfig.

Source code:  SpcfcCfgIfNull.java


Fields inherited from class xbn.XBNObject
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP
 
Constructor Summary
SpcfcCfgIfNull()
          Create a SpcfcCfgIfNull with default settings.
SpcfcCfgIfNull(boolean b_crashIfNull)
          Create a SpcfcCfgIfNull.
SpcfcCfgIfNull(boolean b_crashIfNull, StringBuffer sb_ifNull)
          Create a SpcfcCfgIfNull.
SpcfcCfgIfNull(StringBuffer sb_ifNull)
          Create a SpcfcCfgIfNull.
 
Method Summary
 boolean doCrashIfNull()
          If [the string to be padded/trimmed] is null, should an exception be thrown?
 StringBuffer getIfNullSB()
          If [the string to be padded/trimmed] is null, what should be returned in its place?
 String toString()
          Get some information about this SpcfcCfgIfNull.
 
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

SpcfcCfgIfNull

public SpcfcCfgIfNull()

Create a SpcfcCfgIfNull with default settings.

Equal to SpcfcCfgIfNull(false)


SpcfcCfgIfNull

public SpcfcCfgIfNull(boolean b_crashIfNull)

Create a SpcfcCfgIfNull.

Equal to SpcfcCfgIfNull(b_crashIfNull, (new StringBuffer("")))


SpcfcCfgIfNull

public SpcfcCfgIfNull(StringBuffer sb_ifNull)

Create a SpcfcCfgIfNull.

Equal to SpcfcCfgIfNull(false, sb_ifNull)


SpcfcCfgIfNull

public SpcfcCfgIfNull(boolean b_crashIfNull,
                      StringBuffer sb_ifNull)

Create a SpcfcCfgIfNull.

Parameters:
b_crashIfNull - If true and [the string to be padded/chopped] is null, throw an AssertException. If false and [the string to be padded/chopped] is null, return sb_ifNull. See doCrashIfNull.
sb_ifNull - The StringBuffer to return when [the string to be padded/chopped] is null and b_crashIfNull is false. See getIfNullSB.
Method Detail

doCrashIfNull

public final boolean doCrashIfNull()

If [the string to be padded/trimmed] is null, should an exception be thrown?

Returns:
b_crashIfNull Exactly as provided to the constructor.

getIfNullSB

public final StringBuffer getIfNullSB()

If [the string to be padded/trimmed] is null, what should be returned in its place?

Returns:
sb_ifNull Exactly as provided to the constructor.

toString

public String toString()

Get some information about this SpcfcCfgIfNull.

Overrides:
toString in class Object



Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.

 

http://sourceforge.net/projects/xbnjava

 

SourceForge.net Logo