|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuditModel
A model of the results of an audit. It collects the displayable constructs, violations, attribute values (measurements), exception approvals, and statistics produced by an Auditor
as it audits. This model is usable while the audit is in progress, as well as after it completes. It is presented as a tree table of opaque Object
s, where the objects correspond to audited constructs and violations, and have attributes and approvals.
The model supports filtering and sorting. Clients of this interface see the filtered, sorted view; in particular, through the following tree structure methods:
getVisibleParent(java.lang.Object)
,getVisibleChildren(java.lang.Object)
,iterateChildren(java.lang.Object, oracle.jdeveloper.audit.service.Iteration)
,iterateViolations(java.lang.Object, oracle.jdeveloper.audit.service.Iteration)
Nested Class Summary | |
---|---|
static class |
AuditModel.Count The count attributes maintained for each row of the model. |
Method Summary | ||
---|---|---|
void |
addAuditModelListener(AuditModelListener listener) Adds an audit model listener to this model. |
|
void |
addFilter(AuditModelFilter filter) Adds a filter to this model. |
|
void |
clear() Clears all rows from the model. |
|
|
findFilter(java.lang.Class<T> type) Finds a filter of this model of a specified type. |
|
java.util.Comparator<java.lang.Object> |
getChildComparator() Gets the comparator used to sort the children of row of this model. |
|
int |
getChildCount(java.lang.Object row) Gets the number of children of a row of this model. |
|
java.util.List<?> |
getChildren(java.lang.Object row) Gets the children of a row of this model. |
|
Metric |
getColumn(int index) Gets the column at an index. |
|
int |
getColumnCount() Gets the number of columns in this model. |
|
int |
getColumnIndex(Metric column) Gets the index of a column. |
|
int |
getCount(java.lang.Object row, AuditModel.Count count) Gets the value of a count of a row of this model. |
|
Displayable |
getDisplayable(java.lang.Object row) Gets a Displayable describing a row of this model. |
|
Location |
getFocusLocation(java.lang.Object row) Gets the focus Location of an object represented by a row in this model. |
|
int |
getIndexOf(java.lang.Object row) Gets the index of a row of this model in the children of its parent, 0 for the root row. |
|
Location |
getLocation(java.lang.Object row) Gets the Location of an object represented by a row of this model. |
|
java.util.List<Location> |
getLocations() Gets the locations audited to create this model. |
|
java.lang.Object |
getParent(java.lang.Object row) Gets the parent row of a row of this model, null for the root row. |
|
Profile |
getProfile() Gets the profile used to create this model. |
|
java.lang.Object |
getRoot() Gets the root row of this model, null if none. |
|
Severity |
getSeverity(java.lang.Object row) Gets the worst severity of the issues contained by a row of this model, or null if none. |
|
int |
getSortColumn() Gets the selected primary sort column. |
|
int |
getSortDirection() Gets the sort direction of the primary sort column, 1 for ascending, -1 for descending. |
|
java.util.List<Transform> |
getTransformsApplied(Violation violation) Gets the transforms applied to a violation of this model, in application order. |
|
java.lang.Class<?> |
getType(java.lang.Object row) Gets the type of an object of this model. |
|
java.lang.Object |
getValue(java.lang.Object row, int columnIndex) Gets the value of a column of a row of this model. |
|
Violation |
getViolation(java.lang.Object row) Gets the violation represented by a row of this model, or null if the row does not represent a violation. |
|
int |
getVisibleChildCount(java.lang.Object row) Gets the number of visible children of a row of this model. |
|
java.util.List<?> |
getVisibleChildren(java.lang.Object row) Gets the visible children of a row of this model. |
|
int |
getVisibleIndexOf(java.lang.Object row) Gets the index of a row of this model in the visible children of its visible parent, 0 for the root row. |
|
java.lang.Object |
getVisibleParent(java.lang.Object row) Gets the visible parent row of a row of this model, null for the root row. |
|
boolean |
hasChildren(java.lang.Object row) Gets whether a row of this model has children. |
|
boolean |
hasVisibleChildren(java.lang.Object row) Gets whether a row of this model has visible children. |
|
boolean |
isLeaf(java.lang.Object row) Gets whether a row of this model ,i>can have children. |
|
boolean |
isOutOfBand(java.lang.Object row) Gets whether the value of any column of a row of this model is out-of-band. |
|
boolean |
isOutOfBand(java.lang.Object row, int columnIndex) Gets whether the value of a column of a row of this model is out-of-band. |
|
boolean |
isViolation(java.lang.Object row) Gets whether the object represented by a row of this model is a violation. |
|
boolean |
isVisible(java.lang.Object row) Gets whether a row of this model is visible. |
|
java.lang.Object |
iterateChildren(java.lang.Object row, Iteration iteration) Iterates the children of a row of this model. |
|
Violation |
iterateViolations(java.lang.Object row, Iteration iteration) Iterates the violations contained by a row of this model. |
|
void |
removeAuditModelListener(AuditModelListener listener) Removes an audit model listener from this model. |
|
void |
removeFilter(AuditModelFilter filter) Removes a filter from this model. |
|
void |
setSortColumn(int column) Sets the primary sort column for children of a row of this model, or null to sort by getLocation(java.lang.Object) . |
|
void |
setTransformDone(Transform transform, Violation violation) Sets a transform done for a violation of this model. |
|
void |
setTransformUndone(Transform transform, Violation violation) Sets a transform undone for a violation of this model. |
|
void |
setValue(java.lang.Object row, int columnIndex, java.lang.Object value) Sets the value of an column of a row of this model. |
Methods inherited from interface oracle.jdeveloper.audit.service.AuditListener |
---|
auditorCleared, auditStarted, auditStopped, issueReported, locationEntered, locationExited, modelEntered, modelExited, phaseStarted, valueReported |
Method Detail |
---|
void addAuditModelListener(AuditModelListener listener)
void removeAuditModelListener(AuditModelListener listener)
Profile getProfile()
java.util.List<Location> getLocations()
int getColumnCount()
Metric getColumn(int index)
int getColumnIndex(Metric column)
void setSortColumn(int column)
getLocation(java.lang.Object)
. If the specified column is already the primary sort column, toggles the sort direction.int getSortColumn()
int getSortDirection()
void clear()
java.lang.Object getRoot()
java.lang.Object getParent(java.lang.Object row)
int getIndexOf(java.lang.Object row)
boolean isLeaf(java.lang.Object row)
boolean hasChildren(java.lang.Object row)
int getChildCount(java.lang.Object row)
java.util.List<?> getChildren(java.lang.Object row)
java.util.Comparator<java.lang.Object> getChildComparator()
The order reflects invocations of setSortColumn(int)
.
boolean isVisible(java.lang.Object row)
void addFilter(AuditModelFilter filter)
The model hides any row for which any filter of the model returns false from AuditModelFilter.isVisible(java.lang.Object)
.
void removeFilter(AuditModelFilter filter)
<T extends AuditModelFilter> T findFilter(java.lang.Class<T> type)
java.lang.Object getVisibleParent(java.lang.Object row)
int getVisibleIndexOf(java.lang.Object row)
boolean hasVisibleChildren(java.lang.Object row)
int getVisibleChildCount(java.lang.Object row)
java.util.List<?> getVisibleChildren(java.lang.Object row)
java.lang.Object iterateChildren(java.lang.Object row, Iteration iteration)
Violation iterateViolations(java.lang.Object row, Iteration iteration)
java.lang.Class<?> getType(java.lang.Object row)
getLocation(row).getModel().getType().getPresentationTypes()
If the object is a violation, the type is Violation
.ModelType.getPresentationTypes()
Location getLocation(java.lang.Object row)
Location
of an object represented by a row of this model.Location getFocusLocation(java.lang.Object row)
Location
of an object represented by a row in this model.java.lang.Object getValue(java.lang.Object row, int columnIndex)
void setValue(java.lang.Object row, int columnIndex, java.lang.Object value)
boolean isOutOfBand(java.lang.Object row, int columnIndex)
boolean isOutOfBand(java.lang.Object row)
boolean isViolation(java.lang.Object row)
Violation getViolation(java.lang.Object row)
Severity getSeverity(java.lang.Object row)
int getCount(java.lang.Object row, AuditModel.Count count)
count
of a row of this model.Displayable getDisplayable(java.lang.Object row)
Displayable
describing a row of this model.java.util.List<Transform> getTransformsApplied(Violation violation)
void setTransformDone(Transform transform, Violation violation)
java.lang.IllegalArgumentException
- if the transform is not returned by Violation.getTransform(int)
for some index.void setTransformUndone(Transform transform, Violation violation)
java.lang.IllegalStateException
- if the transform is not the last transform set done by setTransformDone(oracle.jdeveloper.audit.transform.Transform, oracle.jdeveloper.audit.service.Violation)
for this violation.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |