|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.finra.jtaf.core.utilities.logging.Section
public class Section
Serves as a container for messages and other message sections. TODO: Sections and Messages should have the same base class, but I can't think of a good word for it.
Constructor Summary | |
---|---|
Section(String name)
External classes are only allowed to instantiate root message sections. |
Method Summary | |
---|---|
void |
addMessage(Message message)
Inserts the message into this section. |
org.apache.log4j.Level |
getLevel()
A section's level is Max(max level of subsection, max level of message). |
List<Message> |
getMessages()
|
String |
getName()
A text label for the section. |
Section |
getParent()
|
List<Section> |
getSections()
|
boolean |
isEmpty()
Does this Section contain anything useful? |
Section |
newSection(String name)
Retrieves the section w/ the given name, or creates a new section if none w/ the given name exists |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Section(String name)
name
- Method Detail |
---|
public final String getName()
public final boolean isEmpty()
public Section newSection(String name)
name
-
public List<Section> getSections()
public final void addMessage(Message message)
message
- public final List<Message> getMessages()
public final org.apache.log4j.Level getLevel()
public final Section getParent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |