Class HintHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.owasp.dependencycheck.xml.hints.HintHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
@NotThreadSafe public class HintHandler extends org.xml.sax.helpers.DefaultHandlerA handler to load hint rules.- Author:
- Jeremy Long
-
-
Constructor Summary
Constructors Constructor Description HintHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)Handles the end element event.java.util.List<HintRule>getHintRules()Returns the list of hint rules.java.util.List<VendorDuplicatingHintRule>getVendorDuplicatingHintRules()Returns the list of vendor duplicating hint rules.voidstartElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attr)Handles the start element event.
-
-
-
Method Detail
-
getHintRules
public java.util.List<HintRule> getHintRules()
Returns the list of hint rules.- Returns:
- the value of hintRules
-
getVendorDuplicatingHintRules
public java.util.List<VendorDuplicatingHintRule> getVendorDuplicatingHintRules()
Returns the list of vendor duplicating hint rules.- Returns:
- the list of vendor duplicating hint rules
-
startElement
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attr) throws org.xml.sax.SAXExceptionHandles the start element event.- Specified by:
startElementin interfaceorg.xml.sax.ContentHandler- Overrides:
startElementin classorg.xml.sax.helpers.DefaultHandler- Parameters:
uri- the URI of the element being processedlocalName- the local name of the element being processedqName- the qName of the element being processedattr- the attributes of the element being processed- Throws:
org.xml.sax.SAXException- thrown if there is an exception processing
-
endElement
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXExceptionHandles the end element event.- Specified by:
endElementin interfaceorg.xml.sax.ContentHandler- Overrides:
endElementin classorg.xml.sax.helpers.DefaultHandler- Parameters:
uri- the element's URIlocalName- the local nameqName- the qualified name- Throws:
org.xml.sax.SAXException- thrown if there is an exception processing the element
-
-