public final class SuppressionsLoader extends AbstractLoader
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
DTD_PUBLIC_ID_1_0
The public ID for the configuration dtd.
|
private static java.lang.String |
DTD_PUBLIC_ID_1_1
The public ID for the configuration dtd.
|
private static java.lang.String |
DTD_RESOURCE_NAME_1_0
The resource for the configuration dtd.
|
private static java.lang.String |
DTD_RESOURCE_NAME_1_1
The resource for the configuration dtd.
|
private FilterSet |
filterChain
The filter chain to return in getAFilterChain(),
configured during parsing.
|
private static java.lang.String |
UNABLE_TO_FIND_ERROR_MESSAGE
File search error message.
|
| Modifier | Constructor and Description |
|---|---|
private |
SuppressionsLoader()
Creates a new
SuppressionsLoader instance. |
| Modifier and Type | Method and Description |
|---|---|
private static java.util.Map<java.lang.String,java.lang.String> |
createIdToResourceNameMap()
Creates mapping between local resources and dtd ids.
|
private static FilterSet |
loadSuppressions(org.xml.sax.InputSource source,
java.lang.String sourceName)
Returns the suppression filters in a specified source.
|
static FilterSet |
loadSuppressions(java.lang.String filename)
Returns the suppression filters in a specified file.
|
void |
startElement(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes) |
error, fatalError, parseInputSource, resolveEntityprivate static final java.lang.String DTD_PUBLIC_ID_1_0
private static final java.lang.String DTD_RESOURCE_NAME_1_0
private static final java.lang.String DTD_PUBLIC_ID_1_1
private static final java.lang.String DTD_RESOURCE_NAME_1_1
private static final java.lang.String UNABLE_TO_FIND_ERROR_MESSAGE
private final FilterSet filterChain
private SuppressionsLoader()
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
SuppressionsLoader instance.javax.xml.parsers.ParserConfigurationException - if an error occursorg.xml.sax.SAXException - if an error occurspublic void startElement(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic static FilterSet loadSuppressions(java.lang.String filename) throws CheckstyleException
filename - name of the suppressions file.CheckstyleException - if an error occurs.private static FilterSet loadSuppressions(org.xml.sax.InputSource source, java.lang.String sourceName) throws CheckstyleException
source - the source for the suppressions.sourceName - the name of the source.CheckstyleException - if an error occurs.private static java.util.Map<java.lang.String,java.lang.String> createIdToResourceNameMap()