|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--sdmetrics.app.ElementPoolAdapter
Provide a tabular view of the analyzed UML design. There is one table per model element type, table rows are model elements, and columns are the modelelement attributes. Optionally filters model element types that are not represented in the model.
This class is used to implement the "dump model" feature that writes the the UML model to an external file.
| Constructor Summary | |
ElementPoolAdapter(ElementPool pool,
boolean skipEmptyTables)
|
|
| Method Summary | |
java.lang.String |
getColumnDescription(int index,
int col)
Get the description of the an attribute. |
java.lang.String |
getColumnName(int index,
int col)
Get the name of the attribute in a column. |
int |
getNumberOfColumns(int index)
Return the number of attributes (columns) in a table. |
int |
getNumberOfRows(int index)
Return the number of model elements (rows) in a table. |
int |
getNumberOfTables()
Returns the number of available tables. |
java.util.Collection |
getReferencedIds(int index,
int row,
int col)
Get the set of model element IDs referenced by a (multivalued) crossreference attribute. |
java.lang.String |
getRowName(int index,
int row)
Get the fully qualified name of a model element in a specific row. |
java.lang.String |
getTableName(int index)
Returns the name of a table. |
int |
getTypeID(int index)
Get the metamodel element type for a table. |
java.lang.Object |
getValueAt(int index,
int row,
int col)
Get the value of an attribute for a specific model element. |
java.lang.String |
getXMIID(int index,
int row)
Get the XMI ID of a model element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ElementPoolAdapter(ElementPool pool,
boolean skipEmptyTables)
pool - Element pool to display.skipEmptyTables - If set to true, no tables are created for model
element types that are not represented in the model are now shown. If set
to false, a table is created for every model element type.| Method Detail |
public java.util.Collection getReferencedIds(int index,
int row,
int col)
index - Index of the tablerow - Row index of the model elementcol - Column index of the cross reference attribute
null if the attribut does not reference any model elements.
public java.lang.String getXMIID(int index,
int row)
index - Index of the tablerow - Row index of the model element
public int getTypeID(int index)
getTypeID in interface DataTableindex - Index of the table.
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 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 | |||||||||