public class XmlCheckContextImpl extends Object implements XmlCheckContext
XmlCheckContext.XmlDocumentLocation| Constructor and Description |
|---|
XmlCheckContextImpl(Document document,
File file,
XPath xPath,
SonarComponents sonarComponents) |
| Modifier and Type | Method and Description |
|---|---|
AnalyzerMessage |
buildAnalyzerMessage(JavaCheck check,
String message,
Integer line,
Iterable<XmlCheckContext.XmlDocumentLocation> secondary,
Integer cost,
File file) |
XPathExpression |
compile(String expression) |
Iterable<Node> |
evaluate(XPathExpression expression,
Node node) |
Iterable<Node> |
evaluateOnDocument(XPathExpression expression) |
File |
getFile() |
SonarComponents |
getSonarComponents() |
void |
reportIssue(JavaCheck check,
int line,
String message) |
void |
reportIssue(JavaCheck check,
Node node,
String message) |
void |
reportIssue(JavaCheck check,
Node node,
String message,
Iterable<XmlCheckContext.XmlDocumentLocation> secondary) |
void |
reportIssue(JavaCheck check,
Node node,
String message,
Iterable<XmlCheckContext.XmlDocumentLocation> secondary,
Integer cost) |
void |
reportIssueOnFile(JavaCheck check,
String message) |
public XmlCheckContextImpl(Document document, File file, XPath xPath, SonarComponents sonarComponents)
public File getFile()
getFile in interface XmlCheckContextpublic XPathExpression compile(String expression)
compile in interface XmlCheckContextpublic Iterable<Node> evaluateOnDocument(XPathExpression expression)
evaluateOnDocument in interface XmlCheckContextpublic Iterable<Node> evaluate(XPathExpression expression, Node node)
evaluate in interface XmlCheckContextpublic void reportIssueOnFile(JavaCheck check, String message)
reportIssueOnFile in interface XmlCheckContextpublic void reportIssue(JavaCheck check, int line, String message)
reportIssue in interface XmlCheckContextpublic void reportIssue(JavaCheck check, Node node, String message)
reportIssue in interface XmlCheckContextpublic void reportIssue(JavaCheck check, Node node, String message, Iterable<XmlCheckContext.XmlDocumentLocation> secondary)
reportIssue in interface XmlCheckContextpublic void reportIssue(JavaCheck check, Node node, String message, Iterable<XmlCheckContext.XmlDocumentLocation> secondary, @Nullable Integer cost)
reportIssue in interface XmlCheckContextpublic AnalyzerMessage buildAnalyzerMessage(JavaCheck check, String message, Integer line, Iterable<XmlCheckContext.XmlDocumentLocation> secondary, @Nullable Integer cost, File file)
public SonarComponents getSonarComponents()
Copyright © 2012–2017 SonarSource. All rights reserved.