@NotThreadSafe public class PomHandler extends DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
ARTIFACTID
The artifactId element.
|
static String |
DESCRIPTION
The description element.
|
static String |
GROUPID
The artifactId element.
|
static String |
LICENSE_NODE
The license element.
|
static String |
LICENSES
The licenses element.
|
static String |
NAME
The name element.
|
static String |
ORGANIZATION
The organization element.
|
static String |
PARENT
The parent element.
|
static String |
PROJECT
The project element.
|
static String |
URL
The url element.
|
static String |
VERSION
The version element.
|
| Constructor and Description |
|---|
PomHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Collects the body text of the node being processed.
|
void |
endElement(String uri,
String localName,
String qName)
Handles the end element event.
|
Model |
getModel()
Returns the model obtained from the pom.xml.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Handles the start element event.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic static final String PROJECT
public static final String GROUPID
public static final String ARTIFACTID
public static final String VERSION
public static final String PARENT
public static final String NAME
public static final String ORGANIZATION
public static final String DESCRIPTION
public static final String LICENSES
public static final String LICENSE_NODE
public static final String URL
public Model getModel()
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandleruri - the uri of the element being processedlocalName - the local name of the element being processedqName - the qName of the element being processedattributes - the attributes of the element being processedSAXException - thrown if there is an exception processingpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandleruri - the URI of the elementlocalName - the local name of the elementqName - the qName of the elementSAXException - thrown if there is an exception processingpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerch - the char array of textstart - the start position to copy text from in the char arraylength - the number of characters to copy from the char arraySAXException - thrown if there is a parsing exceptionCopyright © 2012–2020 OWASP. All rights reserved.