
public class KeyValueContextNode extends AbstractContextNode implements ContextNode
| Constructor and Description |
|---|
KeyValueContextNode(KeyValueGraph graph,
KeyValueContextNode contextNode,
KeyValueStore keyValueStore,
String key,
XDIArc XDIarc) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the context node.
|
boolean |
containsContextNode(XDIArc XDIarc)
Checks if a context node with a given arc exists under this context node.
|
boolean |
containsContextNodes()
Checks if this context node has one or more context nodes.
|
boolean |
containsLiteralNode()
Checks if this context node has a literal.
|
boolean |
containsRelation(XDIAddress XDIaddress,
XDIAddress targetXDIAddress)
Checks if a relation with a given arc and target node address exists in this context node.
|
boolean |
containsRelations()
Checks if this context node has one or more relations.
|
boolean |
containsRelations(XDIAddress XDIaddress)
Checks if relations with a given arc exist in this context node.
|
void |
delContextNode(XDIArc XDIarc)
Deletes the context node with a given arc.
|
void |
delContextNodes()
Deletes all context nodes from this context node.
|
void |
delLiteralNode()
Deletes the literal from this context node.
|
void |
delRelation(XDIAddress XDIaddress,
XDIAddress targetXDIAddress)
Deletes the relation with a given arc from this context node.
|
void |
delRelations()
Deletes all relations from this context node.
|
void |
delRelations(XDIAddress XDIaddress)
Deletes the relations with a given address from this context node.
|
ContextNode |
getContextNode(XDIArc XDIarc,
boolean subgraph)
Returns the context node with a given arc.
|
long |
getContextNodeCount()
Returns the number of context nodes under this context node.
|
ReadOnlyIterator<ContextNode> |
getContextNodes()
Returns the context nodes under this context node.
|
LiteralNode |
getLiteralNode()
Returns the literal of this context node.
|
Relation |
getRelation(XDIAddress XDIaddress)
Returns a relation at this context node.
|
Relation |
getRelation(XDIAddress XDIaddress,
XDIAddress targetXDIAddress)
Returns a relation at this context node.
|
long |
getRelationCount()
Returns the number of relations of this context node.
|
long |
getRelationCount(XDIAddress XDIaddress)
Returns the number of relations of this context node.
|
ReadOnlyIterator<Relation> |
getRelations()
Returns the relations of this context node.
|
ReadOnlyIterator<Relation> |
getRelations(XDIAddress XDIaddress)
Returns relations at this context node.
|
XDIArc |
getXDIArc()
Every node has an associated arc.
|
ContextNode |
setContextNode(XDIArc XDIarc)
Creates a new context node and adds it to this context node, or returns an existing context node.
|
LiteralNode |
setLiteralNode(Object literalData)
Creates a new literal and adds it to this context node, or returns an existing literal.
|
Relation |
setRelation(XDIAddress XDIaddress,
Node targetNode)
Creates a new relation and adds it to this context node, or returns an existing relation.
|
compareTo, containsIncomingRelations, containsIncomingRelations, containsLiteralBoolean, containsLiteralNode, containsLiteralNumber, containsLiteralString, containsStatement, delContextNodeDelAllIncomingRelations, delContextNodeDelAllInnerRoots, delContextNodeDelAllRelations, delete, delIncomingRelations, delRelationDelInnerRoot, equals, getAllContextNodeCount, getAllContextNodes, getAllIncomingRelations, getAllLeafContextNodes, getAllLiteralCount, getAllLiteralNodes, getAllRelationCount, getAllRelations, getAllStatementCount, getAllStatements, getContextNode, getDeepContextNode, getDeepContextNode, getDeepLiteralNode, getDeepLiteralNode, getDeepNode, getDeepNode, getDeepRelation, getDeepRelation, getDeepRelations, getGraph, getIncomingRelations, getIncomingRelations, getLiteralBoolean, getLiteralData, getLiteralDataBoolean, getLiteralDataNumber, getLiteralDataString, getLiteralNode, getLiteralNumber, getLiteralString, getStatement, getStatement, hashCode, isEmpty, isLeafContextNode, isRootContextNode, setContextNodeCheckValid, setContextNodeSetInnerRoot, setDeepContextNode, setDeepLiteralNode, setDeepNode, setDeepRelation, setDeepRelation, setLiteralBoolean, setLiteralCheckValid, setLiteralNumber, setLiteralString, setRelation, setRelationCheckValid, setRelationSetTargetNode, setStatement, toStringgetContextNode, getContextNode, getXDIAddressclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsIncomingRelations, containsIncomingRelations, containsLiteralBoolean, containsLiteralNode, containsLiteralNumber, containsLiteralString, containsStatement, delIncomingRelations, getAllContextNodeCount, getAllContextNodes, getAllIncomingRelations, getAllLeafContextNodes, getAllLiteralCount, getAllLiteralNodes, getAllRelationCount, getAllRelations, getAllStatementCount, getAllStatements, getContextNode, getDeepContextNode, getDeepContextNode, getDeepLiteralNode, getDeepLiteralNode, getDeepNode, getDeepNode, getDeepRelation, getDeepRelation, getDeepRelations, getIncomingRelations, getIncomingRelations, getLiteralBoolean, getLiteralData, getLiteralDataBoolean, getLiteralDataNumber, getLiteralDataString, getLiteralNode, getLiteralNumber, getLiteralString, getStatement, getStatement, isEmpty, isLeafContextNode, isRootContextNode, setDeepContextNode, setDeepLiteralNode, setDeepNode, setDeepRelation, setDeepRelation, setLiteralBoolean, setLiteralNumber, setLiteralString, setRelation, setStatementdelete, getContextNode, getContextNode, getGraph, getXDIAddresscompareTopublic KeyValueContextNode(KeyValueGraph graph, KeyValueContextNode contextNode, KeyValueStore keyValueStore, String key, XDIArc XDIarc)
public void clear()
ContextNodeclear in interface ContextNodeclear in class AbstractContextNodepublic XDIArc getXDIArc()
Nodepublic ContextNode setContextNode(XDIArc XDIarc)
ContextNodesetContextNode in interface ContextNodeXDIarc - The arc of the new or existing context node.public ReadOnlyIterator<ContextNode> getContextNodes()
ContextNodegetContextNodes in interface ContextNodepublic ContextNode getContextNode(XDIArc XDIarc, boolean subgraph)
ContextNodegetContextNode in interface ContextNodegetContextNode in class AbstractContextNodeXDIarc - The arc of the context node.subgraph - This is simply a hint to the implementation whether
child context nodes will subsequently be requested. Implementations may
or may not actually use this parameter.public boolean containsContextNode(XDIArc XDIarc)
ContextNodecontainsContextNode in interface ContextNodecontainsContextNode in class AbstractContextNodeXDIarc - The arc to look for.public boolean containsContextNodes()
ContextNodecontainsContextNodes in interface ContextNodecontainsContextNodes in class AbstractContextNodepublic void delContextNode(XDIArc XDIarc)
ContextNodedelContextNode in interface ContextNodeXDIarc - The arc of the context node.public void delContextNodes()
ContextNodedelContextNodes in interface ContextNodedelContextNodes in class AbstractContextNodepublic long getContextNodeCount()
ContextNodegetContextNodeCount in interface ContextNodegetContextNodeCount in class AbstractContextNodepublic Relation setRelation(XDIAddress XDIaddress, Node targetNode)
ContextNodesetRelation in interface ContextNodeXDIaddress - The address of the relation.targetNode - The target node of the relation.public Relation getRelation(XDIAddress XDIaddress, XDIAddress targetXDIAddress)
ContextNodegetRelation in interface ContextNodegetRelation in class AbstractContextNodeXDIaddress - The address of the relation.targetXDIAddress - The target node address of the relation.public Relation getRelation(XDIAddress XDIaddress)
ContextNodegetRelation in interface ContextNodegetRelation in class AbstractContextNodeXDIaddress - The address of the relation.public ReadOnlyIterator<Relation> getRelations(XDIAddress XDIaddress)
ContextNodegetRelations in interface ContextNodegetRelations in class AbstractContextNodeXDIaddress - The address of the relations.public ReadOnlyIterator<Relation> getRelations()
ContextNodegetRelations in interface ContextNodepublic boolean containsRelation(XDIAddress XDIaddress, XDIAddress targetXDIAddress)
ContextNodecontainsRelation in interface ContextNodecontainsRelation in class AbstractContextNodeXDIaddress - The address of the relations.targetXDIAddress - The target node address of the relation.public boolean containsRelations(XDIAddress XDIaddress)
ContextNodecontainsRelations in interface ContextNodecontainsRelations in class AbstractContextNodeXDIaddress - The address of the relations.public boolean containsRelations()
ContextNodecontainsRelations in interface ContextNodecontainsRelations in class AbstractContextNodepublic void delRelation(XDIAddress XDIaddress, XDIAddress targetXDIAddress)
ContextNodedelRelation in interface ContextNodeXDIaddress - The address of the relation.targetXDIAddress - The target node address of the relation.public void delRelations(XDIAddress XDIaddress)
ContextNodedelRelations in interface ContextNodedelRelations in class AbstractContextNodeXDIaddress - The address of the relations.public void delRelations()
ContextNodedelRelations in interface ContextNodedelRelations in class AbstractContextNodepublic long getRelationCount()
ContextNodegetRelationCount in interface ContextNodegetRelationCount in class AbstractContextNodepublic long getRelationCount(XDIAddress XDIaddress)
ContextNodegetRelationCount in interface ContextNodegetRelationCount in class AbstractContextNodeXDIaddress - The address of the relations.public LiteralNode setLiteralNode(Object literalData)
ContextNodesetLiteralNode in interface ContextNodeliteralData - The literal data associated with the literal.public LiteralNode getLiteralNode()
ContextNodegetLiteralNode in interface ContextNodepublic boolean containsLiteralNode()
ContextNodecontainsLiteralNode in interface ContextNodecontainsLiteralNode in class AbstractContextNodepublic void delLiteralNode()
ContextNodedelLiteralNode in interface ContextNodeCopyright © 2017. All rights reserved.