|
||||||||||
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.EObjectImpl
org.eclipse.ohf.stem.core.common.impl.IdentifiableImpl
org.eclipse.ohf.stem.core.graph.impl.GraphImpl
public class GraphImpl
An implementation of the model object 'Graph'.
The following features are implemented:
Edges
Nodes
Graph Labels
Node Labels
Dynamic Labels
Num Edges
Num Nodes
Num Graph Labels
Num Node Labels
Num Dynamic Labels
Unresolved Identifiables
Decorators
Nested Class Summary |
---|
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> |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
org.eclipse.emf.ecore.InternalEObject.EStore |
Field Summary |
---|
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
ELAST_EOBJECT_FLAG |
Fields inherited from interface org.eclipse.ohf.stem.core.graph.Graph |
---|
URI_TYPE_GRAPH_SEGMENT |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
EOPPOSITE_FEATURE_BASE |
Method Summary | |
---|---|
void |
addDynamicLabel(DynamicLabel dynamiclabel)
|
void |
addGraph(Graph graph)
This method adds the Edge s, Node s, Label s and Decorator
from another graph to the collections maintained by this graph. |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
org.eclipse.emf.common.notify.NotificationChain |
eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
void |
eUnset(int featureID)
|
org.eclipse.emf.common.util.EList<Decorator> |
getDecorators()
|
org.eclipse.emf.common.util.EList<DynamicLabel> |
getDynamicLabels()
|
Edge |
getEdge(org.eclipse.emf.common.util.URI uri)
|
org.eclipse.emf.common.util.EMap<org.eclipse.emf.common.util.URI,Edge> |
getEdges()
|
Label |
getGraphLabel(org.eclipse.emf.common.util.URI uri)
|
org.eclipse.emf.common.util.EMap<org.eclipse.emf.common.util.URI,Label> |
getGraphLabels()
|
Node |
getNode(org.eclipse.emf.common.util.URI uri)
|
NodeLabel |
getNodeLabel(org.eclipse.emf.common.util.URI uri)
|
org.eclipse.emf.common.util.EMap<org.eclipse.emf.common.util.URI,NodeLabel> |
getNodeLabels()
|
org.eclipse.emf.common.util.EList |
getNodeLabelsByTypeURI(org.eclipse.emf.common.util.URI typeURI)
Return all of the Node Labels in the graph that have a particular type URI. |
org.eclipse.emf.common.util.EMap<org.eclipse.emf.common.util.URI,Node> |
getNodes()
|
int |
getNumDynamicLabels()
|
int |
getNumEdges()
|
int |
getNumGraphLabels()
|
int |
getNumNodeLabels()
|
int |
getNumNodes()
|
org.eclipse.emf.common.util.EList<UnresolvedIdentifiable> |
getUnresolvedIdentifiables()
|
void |
putEdge(Edge edge)
|
void |
putGraphLabel(Label label)
|
void |
putNode(Node node)
|
void |
putNodeLabel(NodeLabel label)
|
boolean |
sane()
|
void |
setURI(org.eclipse.emf.common.util.URI newURI)
Set the URI and also update the Identifier in the dublin core instanace |
void |
switchToNextValue()
For all of the dynamic labels in the system we switch the "current value" to the "next value" (the old "current value" becomes the new "next value"). |
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.ohf.stem.core.common.impl.IdentifiableImpl |
---|
basicSetDublinCore, getDublinCore, getTypeURI, getURI, setDublinCore, setTypeURI |
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI |
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
eNotificationRequired, eNotify |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.ohf.stem.core.common.Identifiable |
---|
getDublinCore, getTypeURI, getURI, setDublinCore, setTypeURI |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, 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 |
Method Detail |
---|
public void setURI(org.eclipse.emf.common.util.URI newURI)
IdentifiableImpl
setURI
in interface Identifiable
setURI
in class IdentifiableImpl
newURI
- the new value of the 'URI' attribute.com.ibm.almaden.stem.common.impl.IdentifiableImpl#setURI(org.eclipse.emf.common.util.URI)
public org.eclipse.emf.common.util.EMap<org.eclipse.emf.common.util.URI,Edge> getEdges()
getEdges
in interface Graph
public org.eclipse.emf.common.util.EMap<org.eclipse.emf.common.util.URI,Node> getNodes()
getNodes
in interface Graph
public org.eclipse.emf.common.util.EList<DynamicLabel> getDynamicLabels()
getDynamicLabels
in interface Graph
public org.eclipse.emf.common.util.EMap<org.eclipse.emf.common.util.URI,Label> getGraphLabels()
getGraphLabels
in interface Graph
public org.eclipse.emf.common.util.EList<UnresolvedIdentifiable> getUnresolvedIdentifiables()
getUnresolvedIdentifiables
in interface Graph
public org.eclipse.emf.common.util.EList<Decorator> getDecorators()
getDecorators
in interface Graph
Decorator
s that decorate this Graph
public org.eclipse.emf.common.util.EList getNodeLabelsByTypeURI(org.eclipse.emf.common.util.URI typeURI)
getNodeLabelsByTypeURI
in interface Graph
typeURI
- the type URI
of the desired node labels
NodeLabel
s that match a specific type URI
public org.eclipse.emf.common.util.EMap<org.eclipse.emf.common.util.URI,NodeLabel> getNodeLabels()
getNodeLabels
in interface Graph
public int getNumEdges()
getNumEdges
in interface Graph
public int getNumNodes()
getNumNodes
in interface Graph
public int getNumGraphLabels()
getNumGraphLabels
in interface Graph
public int getNumNodeLabels()
getNumNodeLabels
in interface Graph
public int getNumDynamicLabels()
getNumDynamicLabels
in interface Graph
public void addGraph(Graph graph)
Edge
s, Node
s, Label
s and Decorator
from another graph to the collections maintained by this graph.
It does not attempt to resolve connections between Edges and the Nodes they reference.
addGraph
in interface Graph
public void putEdge(Edge edge)
putEdge
in interface Graph
public Edge getEdge(org.eclipse.emf.common.util.URI uri)
getEdge
in interface Graph
public void putNode(Node node)
putNode
in interface Graph
public Node getNode(org.eclipse.emf.common.util.URI uri)
getNode
in interface Graph
public void putNodeLabel(NodeLabel label)
putNodeLabel
in interface Graph
public NodeLabel getNodeLabel(org.eclipse.emf.common.util.URI uri)
getNodeLabel
in interface Graph
public void putGraphLabel(Label label)
putGraphLabel
in interface Graph
public Label getGraphLabel(org.eclipse.emf.common.util.URI uri)
getGraphLabel
in interface Graph
public void addDynamicLabel(DynamicLabel dynamiclabel)
addDynamicLabel
in interface Graph
public void switchToNextValue()
switchToNextValue
in interface Graph
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseAdd
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.lang.String toString()
IdentifiableImpl
toString
in class IdentifiableImpl
com.ibm.almaden.stem.common.impl.IdentifiableImpl#toString()
public boolean sane()
IdentifiableImpl
sane
in interface Identifiable
sane
in interface SanityChecker
sane
in class IdentifiableImpl
com.ibm.almaden.stem.common.impl.IdentifiableImpl#sane()
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove
in class IdentifiableImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class IdentifiableImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class IdentifiableImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class IdentifiableImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class IdentifiableImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |