|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.array.primitive.LPAConfig
Configuration for a ListAOS.
Source code: LPAConfig.java
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
LPAConfig()
Create an LPAConfig with default settings. |
|
LPAConfig(boolean b_makeVisible)
Create an LPAConfig. |
|
LPAConfig(String s_divider)
Create an LPAConfig. |
|
LPAConfig(String s_divider,
boolean b_makeVisible)
Create an LPAConfig. |
|
LPAConfig(String s_prefix,
String s_postfix)
Create an LPAConfig. |
|
LPAConfig(String s_prefix,
String s_postfix,
boolean b_makeVisible)
Create an LPAConfig. |
|
LPAConfig(String s_prefix,
String s_divider,
String s_postfix)
Create an LPAConfig. |
|
LPAConfig(String s_prefix,
String s_divider,
String s_postfix,
boolean b_makeVisible)
Create an LPAConfig. |
|
LPAConfig(String s_prefix,
String s_divider,
String s_postfix,
String s_ifNull)
Create an LPAConfig. |
|
LPAConfig(String s_prefix,
String s_divider,
String s_postfix,
String s_ifNull,
String s_ifEmpty)
Create an LPAConfig. |
|
LPAConfig(String s_prefix,
String s_divider,
String s_postfix,
String s_ifNull,
String s_ifEmpty,
boolean b_makeVisible)
Create an LPAConfig. |
Method Summary | |
boolean |
doMakeVisible()
Get the string that should precede the entire list. |
String |
getDivider()
Get the string that should go between each item in the list. |
String |
getIfEmpty()
Get the string that should be returned in the case that the object-to-be-listed has zero elements. |
String |
getIfNull()
Get the string that should be returned in the case that the object-to-be-listed, as a whole, is null. |
String |
getPostfix()
Get the string that should follow the entire list. |
String |
getPrefix()
Get the string that should precede the entire list. |
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, toString, wait, wait, wait |
Constructor Detail |
public LPAConfig()
Create an LPAConfig with default settings.
Equal to LPAConfig("'", "'")
public LPAConfig(String s_divider)
Create an LPAConfig.
Equal to LPAConfig(null, s_divider, null)
public LPAConfig(String s_prefix, String s_postfix)
Create an LPAConfig.
Equal to LPAConfig(s_prefix, s_postfix, false)
public LPAConfig(String s_prefix, String s_divider, String s_postfix)
Create an LPAConfig.
Equal to LPAConfig(s_prefix, s_divider, s_postfix, false)
public LPAConfig(boolean b_makeVisible)
Create an LPAConfig.
Equal to LPAConfig(null, null, b_makeVisible)
public LPAConfig(String s_divider, boolean b_makeVisible)
Create an LPAConfig.
Equal to LPAConfig(null, s_divider, null, b_makeVisible)
public LPAConfig(String s_prefix, String s_postfix, boolean b_makeVisible)
Create an LPAConfig.
Equal to LPAConfig(s_prefix, ", ", s_postfix, b_makeVisible)
public LPAConfig(String s_prefix, String s_divider, String s_postfix, boolean b_makeVisible)
Create an LPAConfig.
Equal to LPAConfig(s_prefix, s_divider, s_postfix, null, "__ZERO_ELEMENTS__", b_makeVisible)
public LPAConfig(String s_prefix, String s_divider, String s_postfix, String s_ifNull)
Create an LPAConfig.
Equal to LPAConfig(s_prefix, s_divider, s_postfix, s_ifNull, "__ZERO_ELEMENTS__")
public LPAConfig(String s_prefix, String s_divider, String s_postfix, String s_ifNull, String s_ifEmpty)
Create an LPAConfig.
Equal to LPAConfig(s_prefix, s_divider, s_postfix, s_ifNull, s_ifEmpty, false)
public LPAConfig(String s_prefix, String s_divider, String s_postfix, String s_ifNull, String s_ifEmpty, boolean b_makeVisible)
Create an LPAConfig.
Regarding s_prefix and s_postfix: If you do not want any value for the prefix or postfix, set it to null. You could set it to empty string, but null is quicker (with null, you do nothing...with empty string, you actually concatenate empty string onto the returned value).
s_prefix
- What the (whole) returned string should start with. See getPrefix.s_divider
- What should go between each item. (This is the only item that) may not be null. See getDivider.s_postfix
- What the (whole) returned string should end with. See getPostfix.s_ifNull
- If the array of objects to list is null (as a whole), this is the string returned. See getIfNull.s_ifEmpty
- If the array of objects to list has no elements, this is the string returned. See getIfEmpty.b_makeVisible
- If true, then all items are made visible before being listed. See doMakeVisible.Method Detail |
public final String getPrefix()
Get the string that should precede the entire list.
public final String getDivider()
Get the string that should go between each item in the list.
public final String getPostfix()
Get the string that should follow the entire list.
public final String getIfNull()
Get the string that should be returned in the case that the object-to-be-listed, as a whole, is null.
public final String getIfEmpty()
Get the string that should be returned in the case that the object-to-be-listed has zero elements.
public final boolean doMakeVisible()
Get the string that should precede the entire list.
|
|||||||||
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