|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--sdmetrics.app.RuleCheckAdapter
Class to start the rule checking and provide a tabular view of the design rule violations. Use this class as follows:
RuleChecker object.
setMessageHandler(sdmetrics.app.SDMessageHandler)) to report progress
and errors to.
setRuleFilter(java.lang.String)) to reduce the
set of rules to check, and, also optionally, check if all identifiers in the
rule filter are defined by at least one rule (checkFilterIdentifiers()).
checkRules(int, int)).
The class will notify you of completion by calling either
SDMessageHandler.finishedComputation() or SDMessageHandler.error(java.lang.String)
on your message handler.
| Constructor Summary | |
RuleCheckAdapter(sdmetrics.metrics.RuleChecker rc)
|
|
| Method Summary | |
java.lang.String |
checkFilterIdentifiers()
Check if there is an application area specified in the current rule filter that is not defined explicitely by at least one rule. |
boolean |
checkRules(int progStart,
int totalProg)
Start the rule checking. |
RuleCheckAdapter |
createNewRuleCheckAdapter()
Create a new rule check adapter based on the same metrics engine. |
java.lang.String |
getColumnDescription(int index,
int col)
Get a description of a specific property of a violated rule. |
java.lang.String |
getColumnName(int index,
int col)
Get the name of a property for a specific design rule violation. |
int |
getNumberOfColumns(int index)
The number of columns (5: name, value, category, severity, and description of the violated rule). |
int |
getNumberOfRows(int index)
Get the number of design rule violations for a table. |
int |
getNumberOfTables()
Returns the number of available tables. |
java.lang.String |
getRowName(int index,
int row)
Get the fully qualified name of the violating model element in a specific row. |
java.lang.String |
getTableName(int index)
Returns the name of a table. |
int |
getTypeID(int index)
Return the metamodel type ID of the elements of a table. |
java.lang.Object |
getValueAt(int index,
int row,
int col)
Get the value of a specific property of a violated rule. |
boolean |
needsChecking()
Test if design rule checking is needed. |
void |
setMessageHandler(SDMessageHandler mh)
Register message handler for progress report. |
boolean |
setRuleFilter(java.lang.String s)
Set the rule filter string that specifies the rules to apply. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RuleCheckAdapter(sdmetrics.metrics.RuleChecker rc)
rc - The object to perform the actual rule checking.| Method Detail |
public void setMessageHandler(SDMessageHandler mh)
mh - The message handler.public RuleCheckAdapter createNewRuleCheckAdapter()
public boolean checkRules(int progStart,
int totalProg)
progStart - The percentage of work completed on the progress bar at the beginning of this job.totalProg - The total percentage alloted to this job.
true if the rule checking went without errors,
false if an error occurred.public boolean needsChecking()
true if design rules still need to be checked, else false.public boolean setRuleFilter(java.lang.String s)
s - String with the filter expression.
true if the filter was correctly installed,
false if an error occurred. The error will be
reported to the message handler.public java.lang.String checkFilterIdentifiers()
public int getNumberOfTables()
DataTable
getNumberOfTables in interface DataTablepublic java.lang.String getTableName(int index)
DataTable
getTableName in interface DataTableindex - Index of the table to access.
public int getTypeID(int index)
DataTable
getTypeID in interface DataTableindex - Index of the table to access.
public int getNumberOfRows(int index)
getNumberOfRows in interface DataTableindex - Index of the table to access.
public int getNumberOfColumns(int index)
getNumberOfColumns in interface DataTableindex - Index of the table to access.
public java.lang.Object getValueAt(int index,
int row,
int col)
getValueAt in interface DataTableindex - Index of the table to access.row - Index of the row to access.col - Index of the column to access.
public java.lang.String getRowName(int index,
int row)
getRowName in interface DataTableindex - Index of the table to access.row - Index of the row.
public java.lang.String getColumnName(int index,
int col)
getColumnName in interface DataTableindex - Index of the table to access.col - Index of the column.
public java.lang.String getColumnDescription(int index,
int col)
getColumnDescription in interface DataTableindex - Index of the table to access.col - Index of the column.
|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||