public abstract class AbstractNodeImpl extends MinimalEObjectImpl.Container implements AbstractNode
The following features are implemented:
| Modifier and Type | Field and Description |
|---|---|
static AbstractNode[] |
NO_CHILDREN |
| Modifier and Type | Method and Description |
|---|---|
int |
countVisibleChildren()
Return the number of visible children in this node and its descendants.
|
Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
Object newValue) |
void |
eUnset(int featureID) |
abstract <any> |
getChildren() |
void |
getGrayedElements(List<AbstractNode> grayedNodes)
Fill grayedNodes with all grayed nodes in this node and its descendants.
|
String |
getLabel() |
abstract AbstractNode |
getParent() |
AbstractNode[] |
getVisibleChildren()
Return the fraction of getChildren() that are visible in an array to suit access by a ContentProvider.
|
Result |
getWorstResult() |
boolean |
isEnabled() |
boolean |
isGrayed() |
boolean |
isVisible() |
int |
refreshGrayed()
Update the grayed status of this node and all its descendants, returning >0 if this node and its children are consistently enabled,
<0 is consistently disbaled and 0 otherwise.
|
boolean |
refreshVisibleChildren(Iterable<IVisibilityFilter> visibilityFilters)
Update the visible status of this node and all its descendants by comuting the AND of the visibilityFilters at each node.
|
void |
setEnabled(boolean newEnabled) |
void |
setLabel(String newLabel) |
void |
setWorstResult(Result newWorstResult)
Sets the value of the '
Worst Result' reference. |
void |
setWorstResultGen(Result newWorstResult) |
String |
toString() |
public static final AbstractNode[] NO_CHILDREN
public boolean isEnabled()
isEnabled in interface AbstractNodeAbstractNode.setEnabled(boolean),
ValidityPackage.getAbstractNode_Enabled()public void setEnabled(boolean newEnabled)
setEnabled in interface AbstractNodenewEnabled - the new value of the 'Enabled' attribute.AbstractNode.isEnabled()public boolean isGrayed()
isGrayed in interface AbstractNodeValidityPackage.getAbstractNode_Grayed()public boolean isVisible()
isVisible in interface AbstractNodeValidityPackage.getAbstractNode_Visible()public String getLabel()
getLabel in interface AbstractNodeAbstractNode.setLabel(String),
ValidityPackage.getAbstractNode_Label()public void setLabel(String newLabel)
setLabel in interface AbstractNodenewLabel - the new value of the 'Label' attribute.AbstractNode.getLabel()public Result getWorstResult()
getWorstResult in interface AbstractNodeAbstractNode.setWorstResult(Result),
ValidityPackage.getAbstractNode_WorstResult()public void setWorstResultGen(Result newWorstResult)
public void setWorstResult(Result newWorstResult)
AbstractNodeWorst Result' reference.
setWorstResult in interface AbstractNodenewWorstResult - the new value of the 'Worst Result' reference.AbstractNode.getWorstResult()public abstract AbstractNode getParent()
getParent in interface AbstractNodepublic abstract <any> getChildren()
getChildren in interface AbstractNodepublic Object eGet(int featureID, boolean resolve, boolean coreType)
public void eSet(int featureID,
Object newValue)
public void eUnset(int featureID)
public boolean eIsSet(int featureID)
public String toString()
public int countVisibleChildren()
AbstractNodecountVisibleChildren in interface AbstractNodepublic void getGrayedElements(List<AbstractNode> grayedNodes)
AbstractNodegetGrayedElements in interface AbstractNodepublic AbstractNode[] getVisibleChildren()
AbstractNodegetVisibleChildren in interface AbstractNodepublic int refreshGrayed()
AbstractNoderefreshGrayed in interface AbstractNodepublic boolean refreshVisibleChildren(Iterable<IVisibilityFilter> visibilityFilters)
AbstractNoderefreshVisibleChildren in interface AbstractNodeCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.