Class CategoryPath
- java.lang.Object
-
- org.apache.log4j.lf5.viewer.categoryexplorer.CategoryPath
-
public class CategoryPath extends java.lang.ObjectCategoryPath is a collection of CategoryItems which represent a path of categories.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.LinkedList_categoryElements
-
Constructor Summary
Constructors Constructor Description CategoryPath()CategoryPath(java.lang.String category)Construct a CategoryPath.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCategoryElement(CategoryElement categoryElement)Adds the specified categoryElement to the end of the categoryElement set.CategoryElementcategoryElementAt(int index)Returns the CategoryElement at the specified index.booleanisEmpty()voidremoveAllCategoryElements()Removes all categoryElements.intsize()returns the number of CategoryElements.java.lang.StringtoString()
-
-
-
Method Detail
-
size
public int size()
returns the number of CategoryElements.
-
isEmpty
public boolean isEmpty()
-
removeAllCategoryElements
public void removeAllCategoryElements()
Removes all categoryElements.
-
addCategoryElement
public void addCategoryElement(CategoryElement categoryElement)
Adds the specified categoryElement to the end of the categoryElement set.
-
categoryElementAt
public CategoryElement categoryElementAt(int index)
Returns the CategoryElement at the specified index.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-