public abstract class AbstractRelation extends Object implements Relation
Constructor and Description |
---|
AbstractRelation(ContextNode contextNode) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Relation other) |
void |
delete()
Deletes this relation.
|
boolean |
equals(Object object) |
Node |
follow()
Follows the relation to the target node.
|
ContextNode |
followContextNode()
Follows the relation to the target context node.
|
LiteralNode |
followLiteralNode()
Follows the relation to the target literal node.
|
ContextNode |
getContextNode()
Every relation has a context node from which it originates.
|
Graph |
getGraph()
Get the graph of this relation.
|
Statement.RelationStatement |
getStatement()
Gets the statement that represents this relation.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTargetXDIAddress, getXDIAddress
public AbstractRelation(ContextNode contextNode)
public Graph getGraph()
Relation
public ContextNode getContextNode()
Relation
getContextNode
in interface Relation
public void delete()
Relation
public Node follow()
Relation
public ContextNode followContextNode()
Relation
followContextNode
in interface Relation
public LiteralNode followLiteralNode()
Relation
followLiteralNode
in interface Relation
public Statement.RelationStatement getStatement()
Relation
getStatement
in interface Relation
public int compareTo(Relation other)
compareTo
in interface Comparable<Relation>
Copyright © 2017. All rights reserved.