|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
org.eclipse.ocl.examples.emf.validation.validity.impl.AbstractNodeImpl
public abstract class AbstractNodeImpl
An implementation of the model object 'AbstractNode'.
The following features are implemented:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container |
|---|
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic |
| Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl |
|---|
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container |
| Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl |
| Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
|---|
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList |
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
org.eclipse.emf.ecore.InternalEObject.EStore |
| Field Summary | |
|---|---|
protected boolean |
enabled
The cached value of the ' Enabled' attribute. |
protected static boolean |
ENABLED_EDEFAULT
The default value of the ' Enabled' attribute. |
protected boolean |
grayed
The cached value of the ' Grayed' attribute. |
protected static boolean |
GRAYED_EDEFAULT
The default value of the ' Grayed' attribute. |
protected java.lang.String |
label
The cached value of the ' Label' attribute. |
protected static java.lang.String |
LABEL_EDEFAULT
The default value of the ' Label' attribute. |
static AbstractNode[] |
NO_CHILDREN
|
protected boolean |
visible
The cached value of the ' Visible' attribute. |
protected static boolean |
VISIBLE_EDEFAULT
The default value of the ' Visible' attribute. |
protected Result |
worstResult
The cached value of the ' Worst Result' reference. |
| Fields inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container |
|---|
eContainer |
| Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
| Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder |
|---|
NIL |
| Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
EOPPOSITE_FEATURE_BASE |
| Constructor Summary | |
|---|---|
protected |
AbstractNodeImpl()
|
| Method Summary | |
|---|---|
int |
countVisibleChildren()
Return the number of visible children in this node and its descendants. |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
java.lang.Object |
eInvoke(int operationID,
org.eclipse.emf.common.util.EList<?> arguments)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
protected org.eclipse.emf.ecore.EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
abstract org.eclipse.emf.common.util.EList<? extends AbstractNode> |
getChildren()
|
void |
getGrayedElements(java.util.List<AbstractNode> grayedNodes)
Fill grayedNodes with all grayed nodes in this node and its descendants. |
java.lang.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(java.lang.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(java.lang.String newLabel)
|
void |
setWorstResult(Result newWorstResult)
Sets the value of the ' Worst Result' reference. |
void |
setWorstResultGen(Result newWorstResult)
|
java.lang.String |
toString()
|
| Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container |
|---|
eBasicSetContainer, eInternalContainer |
| Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl |
|---|
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapterListeners, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetDirectResource, eSetProxyURI, eSettings |
| Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues |
| Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
|---|
eNotificationRequired, eNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.ecore.EObject |
|---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
|---|
eAdapters, eDeliver, eNotify, eSetDeliver |
| Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
eNotificationRequired |
| Field Detail |
|---|
protected static final boolean ENABLED_EDEFAULT
Enabled' attribute.
isEnabled(),
Constant Field Valuesprotected boolean enabled
Enabled' attribute.
isEnabled()protected static final boolean GRAYED_EDEFAULT
Grayed' attribute.
isGrayed(),
Constant Field Valuesprotected boolean grayed
Grayed' attribute.
isGrayed()protected static final boolean VISIBLE_EDEFAULT
Visible' attribute.
isVisible(),
Constant Field Valuesprotected boolean visible
Visible' attribute.
isVisible()protected static final java.lang.String LABEL_EDEFAULT
Label' attribute.
getLabel(),
Constant Field Valuesprotected java.lang.String label
Label' attribute.
getLabel()protected Result worstResult
Worst Result' reference.
getWorstResult()@NonNull public static final AbstractNode[] NO_CHILDREN
| Constructor Detail |
|---|
protected AbstractNodeImpl()
| Method Detail |
|---|
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic 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 java.lang.String getLabel()
getLabel in interface AbstractNodeAbstractNode.setLabel(String),
ValidityPackage.getAbstractNode_Label()public void setLabel(java.lang.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 AbstractNode@NonNull public abstract org.eclipse.emf.common.util.EList<? extends AbstractNode> getChildren()
getChildren in interface AbstractNode
public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface org.eclipse.emf.ecore.InternalEObjecteGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eSet(int featureID,
java.lang.Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.lang.Object eInvoke(int operationID,
org.eclipse.emf.common.util.EList<?> arguments)
throws java.lang.reflect.InvocationTargetException
eInvoke in interface org.eclipse.emf.ecore.InternalEObjecteInvoke in class org.eclipse.emf.ecore.impl.BasicEObjectImpljava.lang.reflect.InvocationTargetExceptionpublic java.lang.String toString()
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic int countVisibleChildren()
AbstractNode
countVisibleChildren in interface AbstractNode
public void getGrayedElements(@NonNull
java.util.List<AbstractNode> grayedNodes)
AbstractNode
getGrayedElements in interface AbstractNode@NonNull public AbstractNode[] getVisibleChildren()
AbstractNode
getVisibleChildren in interface AbstractNodepublic int refreshGrayed()
AbstractNode
refreshGrayed in interface AbstractNode
public boolean refreshVisibleChildren(@NonNull
java.lang.Iterable<IVisibilityFilter> visibilityFilters)
AbstractNode
refreshVisibleChildren in interface AbstractNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||