|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.batch.AbstractViolationsStaxParser
@Deprecated public abstract class AbstractViolationsStaxParser
Field Summary | |
---|---|
protected SensorContext |
context
Deprecated. |
protected boolean |
doSaveViolationsOnUnexistedResource
Deprecated. |
protected RulesManager |
rulesManager
Deprecated. |
Constructor Summary | |
---|---|
protected |
AbstractViolationsStaxParser(SensorContext context,
RulesManager rulesManager)
Deprecated. |
protected |
AbstractViolationsStaxParser(SensorContext context,
RulesManager rulesManager,
RulesProfile profile)
Deprecated. since 1.11. |
Method Summary | |
---|---|
protected abstract org.codehaus.staxmate.in.SMInputCursor |
cursorForResources(org.codehaus.staxmate.in.SMInputCursor rootCursor)
Deprecated. Cursor for child resources to parse, the returned input cursor should be filtered on SMEvent.START_ELEMENT for optimal perfs |
protected abstract org.codehaus.staxmate.in.SMInputCursor |
cursorForViolations(org.codehaus.staxmate.in.SMInputCursor resourcesCursor)
Deprecated. Cursor for violations to parse for a given resource, the returned input cursor should be filtered on SMEvent.START_ELEMENT for optimal perfs |
protected abstract String |
keyForPlugin()
Deprecated. |
protected abstract String |
lineNumberForViolation(org.codehaus.staxmate.in.SMInputCursor violationCursor)
Deprecated. |
protected abstract String |
messageFor(org.codehaus.staxmate.in.SMInputCursor violationCursor)
Deprecated. |
void |
parse(File violationsXMLFile)
Deprecated. |
void |
parse(InputStream input)
Deprecated. |
protected static Integer |
parseLineIndex(String line)
Deprecated. |
protected abstract String |
ruleKey(org.codehaus.staxmate.in.SMInputCursor violationCursor)
Deprecated. |
void |
setDoSaveViolationsOnUnexistedResource(boolean doSaveViolationsOnUnexistedResource)
Deprecated. Specify if violations must be saved even if when the Resource associated to a violation doesn't yet exist. |
protected abstract Resource |
toResource(org.codehaus.staxmate.in.SMInputCursor resourceCursor)
Deprecated. Transforms a given xml resource to a resource Object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RulesManager rulesManager
protected SensorContext context
protected boolean doSaveViolationsOnUnexistedResource
Constructor Detail |
---|
@Deprecated protected AbstractViolationsStaxParser(SensorContext context, RulesManager rulesManager, RulesProfile profile)
protected AbstractViolationsStaxParser(SensorContext context, RulesManager rulesManager)
Method Detail |
---|
protected abstract org.codehaus.staxmate.in.SMInputCursor cursorForResources(org.codehaus.staxmate.in.SMInputCursor rootCursor) throws javax.xml.stream.XMLStreamException
rootCursor
- the root xml doc cursor
javax.xml.stream.XMLStreamException
protected abstract org.codehaus.staxmate.in.SMInputCursor cursorForViolations(org.codehaus.staxmate.in.SMInputCursor resourcesCursor) throws javax.xml.stream.XMLStreamException
resourcesCursor
- the current resource cursor
javax.xml.stream.XMLStreamException
protected abstract Resource toResource(org.codehaus.staxmate.in.SMInputCursor resourceCursor) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected abstract String messageFor(org.codehaus.staxmate.in.SMInputCursor violationCursor) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected abstract String ruleKey(org.codehaus.staxmate.in.SMInputCursor violationCursor) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected abstract String keyForPlugin()
protected abstract String lineNumberForViolation(org.codehaus.staxmate.in.SMInputCursor violationCursor) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public final void setDoSaveViolationsOnUnexistedResource(boolean doSaveViolationsOnUnexistedResource)
doSaveViolationsOnUnexistedResource
- by default, the value is truepublic void parse(File violationsXMLFile) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public final void parse(InputStream input) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected static Integer parseLineIndex(String line)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |