|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.puppycrawl.tools.checkstyle.DefaultConfiguration
Default implementation of the Configuration interface.
Constructor Summary | |
DefaultConfiguration(java.lang.String aName)
Instantiates a DefaultConfiguration. |
Method Summary | |
void |
addAttribute(java.lang.String aName,
java.lang.String aValue)
Adds an attribute to this configuration. |
void |
addChild(Configuration aConfiguration)
Makes a configuration a child of this configuration. |
java.lang.String |
getAttribute(java.lang.String aName)
The attribute value for an attribute name. |
java.lang.String[] |
getAttributeNames()
The set of attribute names. |
Configuration[] |
getChildren()
The set of child configurations. |
java.lang.String |
getName()
The name 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(java.lang.String aName)
aName
- the name for this DefaultConfiguration.Method Detail |
public java.lang.String[] getAttributeNames()
Configuration
getAttributeNames
in interface Configuration
Configuration
public java.lang.String getAttribute(java.lang.String aName) throws CheckstyleException
Configuration
getAttribute
in interface Configuration
aName
- the attribute name
CheckstyleException
- if aName is not a valid attribute nameConfiguration
public Configuration[] getChildren()
Configuration
getChildren
in interface Configuration
Configuration
public java.lang.String getName()
Configuration
getName
in interface Configuration
Configuration
public void addChild(Configuration aConfiguration)
aConfiguration
- the child configuration.public void addAttribute(java.lang.String aName, java.lang.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 |