|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.mavenhist.extractor.AbstractXMLValueExtractor
net.sf.mavenhist.extractor.AbstractValidatingXMLValueExtractor
public abstract class AbstractValidatingXMLValueExtractor
Used to validate the xml file with a test xpath that has to return a value.
Constructor Summary | |
---|---|
AbstractValidatingXMLValueExtractor()
|
Method Summary | |
---|---|
MultiMetric[] |
extract(Document document)
Implementation that checks first the validity of the xml file with the xpath given from the method getValidityTestXPath . |
protected abstract MultiMetric[] |
extractValidatedDocument(Document document)
Extracts muliple values from one result document. |
protected abstract String |
getValidityTestXPath()
The given xml-file will be tested with this xpath to be sure that the result will be valid. |
protected boolean |
isDocumentValid(Document document,
String xpath)
Tests that the document is valid at all. |
Methods inherited from class net.sf.mavenhist.extractor.AbstractXMLValueExtractor |
---|
extract |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.mavenhist.extractor.INamedExtractor |
---|
getName |
Constructor Detail |
---|
public AbstractValidatingXMLValueExtractor()
Method Detail |
---|
public final MultiMetric[] extract(Document document) throws ExtractionException
getValidityTestXPath
. If the check was successful the method
extractValidatedDocument
is called.
Extracts multiple values from one result document.
document
- to parse for the values.
ExtractionException
- the XML-Queries failed.protected abstract MultiMetric[] extractValidatedDocument(Document document) throws TransformerException
document
- to parse for the values.
TransformerException
- the XML-Queries failed.protected boolean isDocumentValid(Document document, String xpath) throws TransformerException
document
- to search inside.xpath
- to check the document with.
TransformerException
- selection with xpath was not successful.protected abstract String getValidityTestXPath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |