|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A model of the results of an audit. It collects the displayable constructs,
violations, attribute values (measurements), exception approvals, and some
miscellaneous 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 of opaque Object
s, where
the objects correspond to audited constructs and to violations and have
attributes and approvals.
Method Summary | |
void |
addAuditModelListener(AuditModelListener listener)
Adds an audit model listener to this model. |
void |
clear()
Clears this model. |
boolean |
containsChildren(java.lang.Object object)
Gets whether an object has children. |
boolean |
containsDefaultTransforms(java.lang.Object object)
Gets whether an object contains exceptions or violations. |
boolean |
containsExceptionsOrViolations(java.lang.Object object)
Gets whether an object contains exceptions or violations. |
java.util.List |
getChildren(java.lang.Object object)
Gets the children of an object. |
Attribute |
getColumn(int index)
Gets the column at an index. |
int |
getColumnCount()
Gets the number of columns in this model. |
Displayable |
getDisplayable(java.lang.Object object)
Gets a Displayable describing an object. |
int |
getDocumentCount()
Gets the number of visible documents (excluding root, workspace, project, and package pseudo-documents) in this model. |
int |
getDocumentTotal()
Gets the total number of documents (excluding root, workspace, project and package pseudo-documents) in this model. |
int |
getExceptionCount()
Gets the number of visible exceptions in this model. |
int |
getExceptionTotal()
Gets the total number of exceptions in this model. |
AuditModelFilter |
getFilter()
Gets the filter for this model. |
int |
getIndex(Attribute column)
Gets the index of a column. |
Location |
getLocation(java.lang.Object object)
Gets the Location of an object in this model. |
Location[] |
getLocations()
Gets the locations audited to create this model. |
java.lang.Object |
getParent(java.lang.Object object)
Gets the parent object of an object, or null if the object is the root. |
Profile |
getProfile()
Gets the profile used to create this model. |
java.lang.Object |
getRoot()
Gets the root object of this model, or null if not yet set. |
Rule |
getRule(java.lang.Object object)
Gets the rule from a violation object, or null if the object is not a violation object. |
AuditModelSorter |
getSorter()
Gets the sorter for this model. |
AuditType |
getType()
Gets the feature type (audit or metrics) of this model. |
java.lang.Class |
getType(java.lang.Object object)
Gets the type of an object. |
java.lang.Object |
getValue(java.lang.Object object,
int index)
Gets the value of an attribute of an object. |
Violation |
getViolation(java.lang.Object object)
Gets the object as a violation, or null if the object is not a violation. |
int |
getViolationCount()
Gets the number of visible violations in this model. |
int |
getViolationTotal()
Gets the total number of violations in this model. |
boolean |
isExceptional(java.lang.Object object,
int index)
Gets whether the value of an attribute of an object is exceptional. |
boolean |
isViolation(java.lang.Object object)
Gets whether the object is a violation. |
boolean |
isVisible(java.lang.Object object)
Gets whether an object is currently visible. |
java.lang.Object |
iterateChildren(java.lang.Object object,
Iteration iteration)
Iterates the child objects of an object. |
Transform |
iterateDefaultTransforms(java.lang.Object object,
Iteration iteration)
Iterates the default violations descended from an object. |
void |
removeAuditModelListener(AuditModelListener listener)
Removes an audit model listener from this model. |
void |
setFilter(AuditModelFilter filter)
Sets the filter for this model. |
void |
setSorter(AuditModelSorter sorter)
Sets the sorter for this model. |
void |
setValue(java.lang.Object object,
int index,
java.lang.Object value)
Sets the value of an attribute of an object. |
Method Detail |
public void addAuditModelListener(AuditModelListener listener)
public void removeAuditModelListener(AuditModelListener listener)
public void clear()
public AuditType getType()
public Profile getProfile()
public Location[] getLocations()
public AuditModelFilter getFilter()
public void setFilter(AuditModelFilter filter)
public AuditModelSorter getSorter()
public void setSorter(AuditModelSorter sorter)
public int getColumnCount()
public Attribute getColumn(int index)
public int getIndex(Attribute column)
public int getDocumentCount()
public int getExceptionCount()
public int getViolationCount()
public int getDocumentTotal()
public int getExceptionTotal()
public int getViolationTotal()
public java.lang.Object getRoot()
public Location getLocation(java.lang.Object object)
Location
of an object in this model.
public java.lang.Class getType(java.lang.Object object)
getLocation(object).getDocument().getType().getViewTypes()
If the object is a violation, the type is Violation
.
DocumentTypeAdapter.getViewTypes()
public boolean isViolation(java.lang.Object object)
public Violation getViolation(java.lang.Object object)
public Rule getRule(java.lang.Object object)
public boolean isVisible(java.lang.Object object)
public Displayable getDisplayable(java.lang.Object object)
Displayable
describing an object.
public java.lang.Object getParent(java.lang.Object object)
public boolean containsChildren(java.lang.Object object)
public java.util.List getChildren(java.lang.Object object)
public java.lang.Object iterateChildren(java.lang.Object object, Iteration iteration)
public boolean containsExceptionsOrViolations(java.lang.Object object)
public boolean containsDefaultTransforms(java.lang.Object object)
public Transform iterateDefaultTransforms(java.lang.Object object, Iteration iteration)
public java.lang.Object getValue(java.lang.Object object, int index)
index
- The index of the attribute.public void setValue(java.lang.Object object, int index, java.lang.Object value)
public boolean isExceptional(java.lang.Object object, int index)
index
- The index of the attribute.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.