public final class PackageNamesLoader extends AbstractLoader
Modifier and Type | Method and Description |
---|---|
void |
endElement(String namespaceURI,
String localName,
String qName) |
static Set<String> |
getPackageNames(ClassLoader classLoader)
Returns the set of package names, compiled from all
checkstyle_packages.xml files found on the given classloaders
classpath.
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts) |
error, fatalError, parseInputSource, resolveEntity, warning
characters, endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String namespaceURI, String localName, String qName)
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public static Set<String> getPackageNames(ClassLoader classLoader) throws CheckstyleException
classLoader
- the class loader for loading the
checkstyle_packages.xml files.CheckstyleException
- if an error occurs.Copyright © 2001–2015. All rights reserved.