|
||||||||||
| 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. |
void |
addMessage(String aKey,
String aValue)
Adds a custom message to 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. |
com.google.common.collect.ImmutableMap<String,String> |
getMessages()
Returns an unmodifiable map instance containing the custom messages for this configuration. |
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 ConfigurationaName - the attribute name
CheckstyleException - 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.
public void addAttribute(String aName,
String aValue)
aName - the name of the attribute.aValue - the value of the attribute.
public void addMessage(String aKey,
String aValue)
aKey - the message keyaValue - the custom message patternpublic com.google.common.collect.ImmutableMap<String,String> getMessages()
getMessages in interface Configuration
|
Back to the Checkstyle Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||