|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.puppycrawl.tools.checkstyle.DefaultConfiguration
public final class DefaultConfiguration
Default implementation of the Configuration interface.
Constructor Summary | |
---|---|
DefaultConfiguration(String aName)
Instantiates a DefaultConfiguration. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultConfiguration(String aName)
aName
- the name for this DefaultConfiguration.Method Detail |
---|
public String[] getAttributeNames()
getAttributeNames
in interface Configuration
public String getAttribute(String aName) throws CheckstyleException
getAttribute
in interface Configuration
aName
- the attribute name
CheckstyleException
- if aName is not a valid attribute namepublic Configuration[] getChildren()
getChildren
in interface Configuration
public String getName()
getName
in interface Configuration
public void addChild(Configuration aConfiguration)
aConfiguration
- the child configuration.public void removeChild(Configuration aConfiguration)
aConfiguration
- the child configuration to remove.public void addAttribute(String aName, String aValue)
aName
- the name of the attribute.aValue
- the value of the attribute.
|
Back to the Checkstyle Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |