|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object i3.dragos.gm.core.proxy.GraphEntityProxy i3.dragos.gm.core.proxy.EdgeProxy
public class EdgeProxy
An EdgeProxy
delegates all method calls to the underlying edge
except for those that access fields which are used after an edge has been
deleted.
Field Summary |
---|
Fields inherited from class i3.dragos.gm.core.proxy.GraphEntityProxy |
---|
proxiedEntity |
Constructor Summary | |
---|---|
EdgeProxy(Edge e)
Constructs a new wrapper for an edge. |
Method Summary | |
---|---|
EdgeClass |
getEdgeClass()
Returns the type of the edge. |
GraphEntity |
getSource()
Returns the source graph element. |
GraphEntity |
getTarget()
Returns the target graph element. |
boolean |
isDirected()
Returns true if the edge is directed and false
otherwise. |
void |
setSource(GraphEntity g)
Sets the source graph element. |
void |
setTarget(GraphEntity g)
Sets the target graph element. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface i3.dragos.gm.core.GraphEntity |
---|
equals, getAdjacentGraphEntities, getAdjacentRelations, getAdjacentRelations, getAllValidAttributeValues, getAttributeValue, getDataSourceURL, getEdges, getEdges, getGraphEntityClass, getInternalIdentifier, getParent, getRelationEnds, getRelationEnds, getRelationEnds, getWrappedGraphEntity, hashCode, isAttributeValid, isIncident, isIncident, putAttributeValue, setAttributeInvalid |
Methods inherited from interface i3.dragos.gm.core.schema.MetaAttributable |
---|
getAllMetaAttributes, getMetaAttribute, isMetaAttributeKeyReserved, isMetaAttributeSet, setMetaAttribute, unsetMetaAttribute |
Methods inherited from interface i3.dragos.gm.core.schema.ExistenceCheckable |
---|
checkExistence, checkExistenceOptional |
Constructor Detail |
---|
public EdgeProxy(Edge e)
e
- The edge to wrap.Method Detail |
---|
public EdgeClass getEdgeClass() throws DragosException
Actually, this method is just a correctly typed wrapper for calling
GraphEntity.getGraphEntityClass()
.
getEdgeClass
in interface Edge
DragosException
- if something went wrong.public void setSource(GraphEntity g) throws EntityNotFoundException, DragosException
setSource
in interface Edge
g
- the source graph element (may be null
).
EntityNotFoundException
- if the source was not
null
and could not be found.
DragosException
- if something went wrong.public GraphEntity getSource() throws DragosException
getSource
in interface Edge
DragosException
- if something went wrong.public void setTarget(GraphEntity g) throws EntityNotFoundException, DragosException
setTarget
in interface Edge
g
- the target graph element (may be null
).
EntityNotFoundException
- if the target was not
null
and could not be found.
DragosException
- if something went wrong.public GraphEntity getTarget() throws DragosException
getTarget
in interface Edge
DragosException
- if something went wrong.public boolean isDirected() throws DragosException
true
if the edge is directed and false
otherwise.
isDirected
in interface Edge
true
if the edge is directed and false
otherwise.
DragosException
- if something went wrong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |