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