|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.output.OConfig
Configuration for a single "level" of output, consisting of a MsgFormat and on/off state. This is for use in Outputter.
Source code: OConfig.java
A OConfig contains three elements:
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
OConfig()
Create an OConfig. |
|
OConfig(boolean b_on)
Create an OConfig. |
|
OConfig(MsgFormat msg_format)
Create an OConfig. |
|
OConfig(MsgFormat msg_format,
boolean b_on)
Create an OConfig. |
|
OConfig(String s_name,
MsgFormat msg_format,
boolean b_on)
Create an OConfig. |
Method Summary | |
String |
getFormatted(boolean b_useIndent,
String s_message)
Given the provided message body, what is the full message? |
MsgFormat |
getMsgFormat()
Get the MsgFormat for direct manipulation. |
String |
getName()
What is the name of this object?. |
boolean |
isOn()
Is this OConfig output level on or off? |
void |
setMsgFormat(MsgFormat msg_format)
Set the MsgFormat. |
void |
setOn(boolean b_on)
Turn this OConfig output level on or off. |
String |
toString()
Get some information about this OConfig object. |
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 OConfig()
Create an OConfig.
Equal to OConfig(false)
public OConfig(boolean b_on)
public OConfig(MsgFormat msg_format)
Create an OConfig.
Equal to OConfig(msg_format, false)
public OConfig(MsgFormat msg_format, boolean b_on)
Create an OConfig.
Equal to OConfig(null, msg_format, b_on)
public OConfig(String s_name, MsgFormat msg_format, boolean b_on)
Create an OConfig.
s_name
- The name of this OConfig object. See getName.msg_format
- The MsgFormat. See setMsgFormat and getMsgFormat .b_on
- If true, this output level is on. If false, this output level is off. See setOn and isOn.Method Detail |
public final void setMsgFormat(MsgFormat msg_format)
Set the MsgFormat.
msg_format
- The MsgFormat. May not be null. If no prefix is desired, set this to (new MFPlain())
.public MsgFormat getMsgFormat()
Get the MsgFormat for direct manipulation.
public final void setOn(boolean b_on)
Turn this OConfig output level on or off.
Get with isOn.
b_on
- If true, then this output level is on. If false, this output level is off.public boolean isOn()
Is this OConfig output level on or off?
Set with setOn.
This setting is only notification for external classes, it does not directly affect (nor is used by) anything in this class.
public String getFormatted(boolean b_useIndent, String s_message)
Given the provided message body, what is the full message?
s_message
- The body of the message.getMsgFormat().getFormatted(b_useIndent, s_message)
public String toString()
Get some information about this OConfig object.
toString
in class Object
public String getName()
Named
What is the name of this object?. This identifier is used throughout the xbn.named package, particularly in NamedArray.
getName
in interface Named
|
|||||||||
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