org.eclipse.emf.edit.tree.impl
Class TreeNodeImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.emf.edit.tree.impl.TreeNodeImpl
All Implemented Interfaces:
EObject, InternalEObject, Notifier, TreeNode

public class TreeNodeImpl
extends EObjectImpl
implements TreeNode

An implementation of the model object 'Node'.

The following features are implemented:


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected  EList children
          The cached value of the 'Children' containment reference list
protected  EObject data
          The cached value of the 'Data' reference
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected TreeNodeImpl()
           
 
Method Summary
 EObject basicGetData()
           
 NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
           
 Object eGet(EStructuralFeature eFeature, boolean resolve)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 boolean eIsSet(EStructuralFeature eFeature)
           
 void eSet(EStructuralFeature eFeature, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(EStructuralFeature eFeature)
           
 EList getChildren()
           
 EObject getData()
           
 TreeNode getParent()
           
 void setData(EObject newData)
           
 void setParent(TreeNode newParent)
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, eStore, eURIFragmentSegment, toString
 
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, eIsProxy, eResource
 
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

children

protected EList children
The cached value of the 'Children' containment reference list.

See Also:
getChildren()

data

protected EObject data
The cached value of the 'Data' reference.

See Also:
getData()
Constructor Detail

TreeNodeImpl

protected TreeNodeImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class EObjectImpl

getParent

public TreeNode getParent()

Specified by:
getParent in interface TreeNode
Returns:
the value of the 'Parent' container reference.
See Also:
TreeNode.setParent(TreeNode), TreePackage.getTreeNode_Parent(), TreeNode.getChildren()

setParent

public void setParent(TreeNode newParent)

Specified by:
setParent in interface TreeNode
Parameters:
newParent - the new value of the 'Parent' container reference.
See Also:
TreeNode.getParent()

getChildren

public EList getChildren()

Specified by:
getChildren in interface TreeNode
Returns:
the value of the 'Children' containment reference list.
See Also:
TreePackage.getTreeNode_Children(), TreeNode.getParent()

getData

public EObject getData()

Specified by:
getData in interface TreeNode
Returns:
the value of the 'Data' reference.
See Also:
TreeNode.setData(EObject), TreePackage.getTreeNode_Data()

basicGetData

public EObject basicGetData()


setData

public void setData(EObject newData)

Specified by:
setData in interface TreeNode
Parameters:
newData - the new value of the 'Data' reference.
See Also:
TreeNode.getData()

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     Class baseClass,
                                     NotificationChain msgs)

Specified by:
eInverseAdd in interface InternalEObject
Overrides:
eInverseAdd in class BasicEObjectImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        Class baseClass,
                                        NotificationChain msgs)

Specified by:
eInverseRemove in interface InternalEObject
Overrides:
eInverseRemove in class BasicEObjectImpl

eBasicRemoveFromContainer

public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)

Specified by:
eBasicRemoveFromContainer in interface InternalEObject
Overrides:
eBasicRemoveFromContainer in class BasicEObjectImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Specified by:
eGet in interface EObject
Overrides:
eGet in class BasicEObjectImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Specified by:
eIsSet in interface EObject
Overrides:
eIsSet in class BasicEObjectImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Specified by:
eSet in interface EObject
Overrides:
eSet in class BasicEObjectImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Specified by:
eUnset in interface EObject
Overrides:
eUnset in class BasicEObjectImpl

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.