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 AbstractNode
AbstractNode.setEnabled(boolean)
,
ValidityPackage.getAbstractNode_Enabled()
public void setEnabled(boolean newEnabled)
setEnabled
in interface AbstractNode
newEnabled
- the new value of the 'Enabled' attribute.AbstractNode.isEnabled()
public boolean isGrayed()
isGrayed
in interface AbstractNode
ValidityPackage.getAbstractNode_Grayed()
public boolean isVisible()
isVisible
in interface AbstractNode
ValidityPackage.getAbstractNode_Visible()
public String getLabel()
getLabel
in interface AbstractNode
AbstractNode.setLabel(String)
,
ValidityPackage.getAbstractNode_Label()
public void setLabel(String newLabel)
setLabel
in interface AbstractNode
newLabel
- the new value of the 'Label' attribute.AbstractNode.getLabel()
public Result getWorstResult()
getWorstResult
in interface AbstractNode
AbstractNode.setWorstResult(Result)
,
ValidityPackage.getAbstractNode_WorstResult()
public void setWorstResultGen(Result newWorstResult)
public void setWorstResult(Result newWorstResult)
AbstractNode
Worst Result
' reference.
setWorstResult
in interface AbstractNode
newWorstResult
- the new value of the 'Worst Result' reference.AbstractNode.getWorstResult()
public abstract AbstractNode getParent()
getParent
in interface AbstractNode
public abstract <any> getChildren()
getChildren
in interface AbstractNode
public 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()
AbstractNode
countVisibleChildren
in interface AbstractNode
public void getGrayedElements(List<AbstractNode> grayedNodes)
AbstractNode
getGrayedElements
in interface AbstractNode
public AbstractNode[] getVisibleChildren()
AbstractNode
getVisibleChildren
in interface AbstractNode
public int refreshGrayed()
AbstractNode
refreshGrayed
in interface AbstractNode
public boolean refreshVisibleChildren(Iterable<IVisibilityFilter> visibilityFilters)
AbstractNode
refreshVisibleChildren
in interface AbstractNode
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.