|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.maven.plugin.PluginScriptParser
final class PluginScriptParser
Class to parse plugin XML scripts to find goals and tag libraries.
Constructor Summary | |
---|---|
PluginScriptParser(PluginDefinitionHandler handler,
JellyScriptHousing jellyScriptHousing)
Constructor. |
Method Summary | |
---|---|
void |
error(org.xml.sax.SAXParseException spe)
Error callback. |
void |
fatalError(org.xml.sax.SAXParseException spe)
Fatal error callback. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes attributes)
Handles opening elements of the xml file. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
We are looking for namespace declarations like the following: xmlns:doc="doc" Here we know that the given plugin.jelly script (or any jelly script used within Maven) has a dependency on the dyna tag lib named 'doc'. |
void |
warning(org.xml.sax.SAXParseException spe)
Warning callback. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
PluginScriptParser(PluginDefinitionHandler handler, JellyScriptHousing jellyScriptHousing)
Method Detail |
---|
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
startPrefixMapping
in interface org.xml.sax.ContentHandler
startPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
prefix
- Prefix to be used in the jelly script.uri
- Uri of the dyna tag lib.public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String rawName, org.xml.sax.Attributes attributes)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void warning(org.xml.sax.SAXParseException spe)
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
spe
- The parse exception that caused the callback to be invoked.public void error(org.xml.sax.SAXParseException spe)
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
spe
- The parse exception that caused the callback to be invoked.public void fatalError(org.xml.sax.SAXParseException spe)
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
spe
- The parse exception that caused the callback to be invoked.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |