org.asteriskjava.config
Class Category
java.lang.Object
org.asteriskjava.config.ConfigElement
org.asteriskjava.config.Category
public class Category
- extends ConfigElement
Constructor Summary |
Category(java.lang.String name)
The last object in the list will get assigned any trailing comments when EOF is hit. |
Category(java.lang.String filename,
int lineno,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Category
public Category(java.lang.String name)
- The last object in the list will get assigned any trailing comments when EOF is hit.
Category
public Category(java.lang.String filename,
int lineno,
java.lang.String name)
getName
public java.lang.String getName()
- Returns the name of this category.
- Returns:
- the name of this category.
isTemplate
public boolean isTemplate()
- Checks if this category is a template.
- Returns:
true
if this category is a template, false
otherwise.
getBaseCategories
public java.util.List<Category> getBaseCategories()
- Returns a list of categories this category inherits from.
- Returns:
- a list of categories this category inherits from, never
null
.
getElements
public java.util.List<ConfigElement> getElements()
addElement
public void addElement(ConfigElement element)
format
public java.lang.String format()
rawFormat
protected java.lang.StringBuilder rawFormat(java.lang.StringBuilder sb)
- Specified by:
rawFormat
in class ConfigElement
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.