hudson.plugins.checkstyle.rules
Class TopicRule
java.lang.Object
org.apache.commons.digester.Rule
org.apache.commons.digester.NodeCreateRule
hudson.plugins.checkstyle.rules.TopicRule
public class TopicRule
- extends org.apache.commons.digester.NodeCreateRule
Digester rule to parse the actual content of a DocBook subsection node. Does
not interpret XML elements that are children of a subsection.
- Author:
- Ulli Hafner
| Fields inherited from class org.apache.commons.digester.Rule |
digester, namespaceURI |
|
Constructor Summary |
TopicRule()
Instantiates a new topic rule. |
|
Method Summary |
void |
end()
|
protected java.lang.String |
extractNoteContent(org.w3c.dom.Element subsection)
Extracts the node content. |
| Methods inherited from class org.apache.commons.digester.NodeCreateRule |
begin |
| Methods inherited from class org.apache.commons.digester.Rule |
begin, body, body, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopicRule
public TopicRule()
throws javax.xml.parsers.ParserConfigurationException
- Instantiates a new topic rule.
- Throws:
javax.xml.parsers.ParserConfigurationException - the parser configuration exception
end
public void end()
throws java.lang.Exception
-
- Overrides:
end in class org.apache.commons.digester.NodeCreateRule
- Throws:
java.lang.Exception
extractNoteContent
protected java.lang.String extractNoteContent(org.w3c.dom.Element subsection)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException
- Extracts the node content. Basically returns every character in the
subsection element.
- Parameters:
subsection - the subsection of a rule
- Returns:
- the node content
- Throws:
javax.xml.parsers.ParserConfigurationException - in case of an error
java.io.IOException - in case of an error
Copyright © 2009. All Rights Reserved.