com.togethersoft.modules.qa.api
Class AuditViolations
java.lang.Object
|
+--com.togethersoft.modules.qa.api.AuditViolations
- public class AuditViolations
- extends java.lang.Object
Maintains the list of audit violations, generated by all plugins
The only methods that are of interest for plugin creator are
add methods.
|
Field Summary |
private static java.util.Vector |
violations
|
|
Method Summary |
static void |
add(AuditPlugin plugin,
com.togethersoft.openapi.sci.SciObject node,
com.togethersoft.openapi.sci.SciObject item)
Adds violation |
static void |
add(AuditPlugin _plugin,
com.togethersoft.openapi.sci.SciObject _node,
com.togethersoft.openapi.sci.SciObject _item,
int pos_start,
int pos_end)
Adds violation |
static void |
add(AuditPlugin _plugin,
com.togethersoft.openapi.sci.SciObject _node,
com.togethersoft.openapi.sci.SciObject _item,
java.lang.String _explanation)
Adds violation |
private static void |
addProc(AuditViolation vio,
com.togethersoft.openapi.sci.SciObject _node,
com.togethersoft.openapi.sci.SciObject _item)
|
static boolean |
exists(AuditPlugin _plugin,
com.togethersoft.openapi.sci.SciObject _node)
|
static AuditViolation |
get(int idx)
|
static void |
remove(int idx)
|
static void |
reset()
|
static void |
setSize(int size)
|
static int |
size()
|
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
violations
private static java.util.Vector violations
AuditViolations
public AuditViolations()
add
public static void add(AuditPlugin plugin,
com.togethersoft.openapi.sci.SciObject node,
com.togethersoft.openapi.sci.SciObject item)
- Adds violation
- Parameters:
plugin - the plugin that has generated this violationnode - project node to which item belongsitem - item related to the violation
add
public static void add(AuditPlugin _plugin,
com.togethersoft.openapi.sci.SciObject _node,
com.togethersoft.openapi.sci.SciObject _item,
java.lang.String _explanation)
- Adds violation
- Parameters:
plugin - the plugin that has generated this violationnode - project node to which item belongsitem - item related to the violationexplanation - string explanation of violation
add
public static void add(AuditPlugin _plugin,
com.togethersoft.openapi.sci.SciObject _node,
com.togethersoft.openapi.sci.SciObject _item,
int pos_start,
int pos_end)
- Adds violation
- Parameters:
plugin - the plugin that has generated this violationnode - project node to which item belongsitem - item related to the violationpos_start - file offset pf the starting point of textpos_end - file offset pf the ending point of text
addProc
private static void addProc(AuditViolation vio,
com.togethersoft.openapi.sci.SciObject _node,
com.togethersoft.openapi.sci.SciObject _item)
get
public static AuditViolation get(int idx)
size
public static int size()
setSize
public static void setSize(int size)
reset
public static void reset()
remove
public static void remove(int idx)
exists
public static boolean exists(AuditPlugin _plugin,
com.togethersoft.openapi.sci.SciObject _node)