public final class DefaultConfiguration extends Object implements Configuration
| Constructor and Description |
|---|
DefaultConfiguration(String aName)
Instantiates a DefaultConfiguration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String aName,
String aValue)
Adds an attribute to this configuration.
|
void |
addChild(Configuration aConfiguration)
Makes a configuration a child of this configuration.
|
String |
getAttribute(String aName)
The attribute value for an attribute name.
|
String[] |
getAttributeNames()
The set of attribute names.
|
Configuration[] |
getChildren()
The set of child configurations.
|
String |
getName()
The name of this configuration.
|
void |
removeChild(Configuration aConfiguration)
Removes a child of this configuration.
|
public DefaultConfiguration(String aName)
aName - the name for this DefaultConfiguration.public String[] getAttributeNames()
getAttributeNames in interface Configurationpublic String getAttribute(String aName) throws CheckstyleException
getAttribute in interface ConfigurationaName - the attribute nameCheckstyleException - if aName is not a valid attribute namepublic Configuration[] getChildren()
getChildren in interface Configurationpublic String getName()
getName in interface Configurationpublic void addChild(Configuration aConfiguration)
aConfiguration - the child configuration.public void removeChild(Configuration aConfiguration)
aConfiguration - the child configuration to remove.