|
||||||||||
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(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. |
void |
addMessage(java.lang.String aKey,
java.lang.String aValue)
Adds a custom message to 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. |
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> |
getMessages()
Returns an unmodifiable map instance containing the custom messages for this configuration. |
java.lang.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(java.lang.String aName)
aName
- the name for this DefaultConfiguration.Method Detail |
---|
public java.lang.String[] getAttributeNames()
getAttributeNames
in interface Configuration
public java.lang.String getAttribute(java.lang.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 java.lang.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(java.lang.String aName, java.lang.String aValue)
aName
- the name of the attribute.aValue
- the value of the attribute.public void addMessage(java.lang.String aKey, java.lang.String aValue)
aKey
- the message keyaValue
- the custom message patternpublic com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> getMessages()
getMessages
in interface Configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |