|
||||||||||
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.EdgeImpl
public class EdgeImpl
An implementation of the model object 'Edge'.
The following features are implemented:
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.Edge |
---|
URI_TYPE_EDGE_SEGMENT |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
EOPPOSITE_FEATURE_BASE |
Method Summary | |
---|---|
Node |
basicGetA()
|
Node |
basicGetB()
|
org.eclipse.emf.common.notify.NotificationChain |
basicSetLabel(EdgeLabel newLabel,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
static Edge |
createEdge(Node nodeA,
Node nodeB)
Create an undirected edge between two nodes |
static Edge |
createEdge(Node nodeA,
Node nodeB,
boolean directed)
Create an edge between the two nodes |
static Edge |
createEdge(Node nodeA,
Node nodeB,
boolean directed,
org.eclipse.emf.common.util.URI edgeURI)
Create an edge between the two nodes |
static Edge |
createEdge(Node nodeA,
Node nodeB,
org.eclipse.emf.common.util.URI edgeURI)
Create an undirected edge between two nodes |
static Edge |
createEdge(org.eclipse.emf.common.util.URI nodeAURI,
org.eclipse.emf.common.util.URI nodeBURI)
Create an undirected edge with two node URI's |
static Edge |
createEdge(org.eclipse.emf.common.util.URI nodeAURI,
org.eclipse.emf.common.util.URI nodeBURI,
boolean directed)
Create an edge with two node URI's |
static Edge |
createEdge(org.eclipse.emf.common.util.URI nodeAURI,
org.eclipse.emf.common.util.URI nodeBURI,
boolean directed,
org.eclipse.emf.common.util.URI edgeURI)
Create an edge with two node URI's |
static Edge |
createEdge(org.eclipse.emf.common.util.URI nodeAURI,
org.eclipse.emf.common.util.URI nodeBURI,
org.eclipse.emf.common.util.URI edgeURI)
Create an undirected edge with two node URI's |
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)
|
Node |
getA()
|
Node |
getB()
|
EdgeLabel |
getLabel()
|
org.eclipse.emf.common.util.URI |
getNodeAURI()
|
org.eclipse.emf.common.util.URI |
getNodeBURI()
|
Node |
getOtherNode(Node node)
Given one node of an edge, return the other. |
boolean |
isDirected()
|
boolean |
isDirectedAt(Node node)
|
boolean |
sane()
|
void |
setA(Node newA)
|
void |
setB(Node newB)
|
void |
setDirected(boolean newDirected)
|
void |
setLabel(EdgeLabel newLabel)
|
void |
setNodeAURI(org.eclipse.emf.common.util.URI newNodeAURI)
|
void |
setNodeBURI(org.eclipse.emf.common.util.URI newNodeBURI)
|
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.ohf.stem.core.common.impl.IdentifiableImpl |
---|
basicSetDublinCore, getDublinCore, getTypeURI, getURI, setDublinCore, setTypeURI, setURI |
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, setURI |
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 static Edge createEdge(Node nodeA, Node nodeB)
nodeA
- the first nodenodeB
- the second node
public static Edge createEdge(Node nodeA, Node nodeB, org.eclipse.emf.common.util.URI edgeURI)
nodeA
- the first nodenodeB
- the second nodeedgeURI
- if non-null then the URI to use for the edge, if null then the
default is used.
public static Edge createEdge(Node nodeA, Node nodeB, boolean directed)
nodeA
- the first nodenodeB
- the second node
public static Edge createEdge(Node nodeA, Node nodeB, boolean directed, org.eclipse.emf.common.util.URI edgeURI)
nodeA
- the first nodenodeB
- the second nodeedgeURI
- if non-null then the URI to use for the edge, if null then the
default is used.
public static Edge createEdge(org.eclipse.emf.common.util.URI nodeAURI, org.eclipse.emf.common.util.URI nodeBURI)
nodeAURI
- the first node's URInodeBURI
- the second node's URI
public static Edge createEdge(org.eclipse.emf.common.util.URI nodeAURI, org.eclipse.emf.common.util.URI nodeBURI, org.eclipse.emf.common.util.URI edgeURI)
nodeAURI
- the first node's URInodeBURI
- the second node's URIedgeURI
- if non-null then the URI to use for the edge, if null then the
default is used.
public static Edge createEdge(org.eclipse.emf.common.util.URI nodeAURI, org.eclipse.emf.common.util.URI nodeBURI, boolean directed)
nodeAURI
- the first node's URInodeBURI
- the second node's URIdirected
- true if the edge is directed from nodeAURI to nodeBURI
public static Edge createEdge(org.eclipse.emf.common.util.URI nodeAURI, org.eclipse.emf.common.util.URI nodeBURI, boolean directed, org.eclipse.emf.common.util.URI edgeURI)
nodeAURI
- the first node's URInodeBURI
- the second node's URIdirected
- true if the edge is directed from nodeAURI to nodeBURIedgeURI
- if non-null then the URI to use for the edge, if null then the
default is used.
public Node getA()
getA
in interface Edge
Node
of the edge. Directed edges go from
Node
A to Node
B. In a graph fragment this value
may not yet be set.public Node basicGetA()
public void setA(Node newA)
setA
in interface Edge
newA
- the new value of the 'A' reference.Edge.getA()
public org.eclipse.emf.common.util.URI getNodeAURI()
getNodeAURI
in interface Edge
Node
A.public void setNodeAURI(org.eclipse.emf.common.util.URI newNodeAURI)
setNodeAURI
in interface Edge
newNodeAURI
- the new value of the 'Node AURI' attribute.Edge.getNodeAURI()
public Node getB()
getB
in interface Edge
Node
of the edge. Directed edges go from
Node
A to Node
B. In a graph fragment this value
may not yet be set.public Node basicGetB()
public void setB(Node newB)
setB
in interface Edge
newB
- the new value of the 'B' reference.Edge.getB()
public org.eclipse.emf.common.util.URI getNodeBURI()
getNodeBURI
in interface Edge
Node
B.public void setNodeBURI(org.eclipse.emf.common.util.URI newNodeBURI)
setNodeBURI
in interface Edge
newNodeBURI
- the new value of the 'Node BURI' attribute.Edge.getNodeBURI()
public EdgeLabel getLabel()
getLabel
in interface Edge
EdgeLabel
of the Edge
, if it exists.public org.eclipse.emf.common.notify.NotificationChain basicSetLabel(EdgeLabel newLabel, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setLabel(EdgeLabel newLabel)
setLabel
in interface Edge
newLabel
- the new value of the 'Label' containment reference.Edge.getLabel()
public boolean isDirected()
isDirected
in interface Edge
true
if the Edge
is a directed
Edge
(directed Edge
s are always
from Node
A to Node
B).public void setDirected(boolean newDirected)
setDirected
in interface Edge
newDirected
- the new value of the 'Directed' attribute.Edge.isDirected()
public Node getOtherNode(Node node)
getOtherNode
in interface Edge
node
- one of the two Node
s of the Edge
Node
A if Node
B is passed in, otherwise return
Node
B if Node
A is passed in.public boolean isDirectedAt(Node node)
isDirectedAt
in interface Edge
node
- the Node
under test
true
if the node is B and the edge is directed.
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 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
public java.lang.String toString()
toString
in class IdentifiableImpl
public boolean sane()
IdentifiableImpl
sane
in interface Identifiable
sane
in interface SanityChecker
sane
in class IdentifiableImpl
com.ibm.almaden.stem.common.impl.IdentifiableImpl#sane()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |