
public class JSONContextNode extends AbstractContextNode implements ContextNode
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the context node.
|
void |
delContextNode(XDIArc XDIarc)
Deletes the context node with a given arc.
|
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.
|
ContextNode |
getContextNode(XDIArc XDIarc,
boolean subgraph)
Returns the context node with a given arc.
|
ReadOnlyIterator<ContextNode> |
getContextNodes()
Returns the context nodes under this context node.
|
ContextNode |
getDeepContextNode(XDIAddress relativeContextNodeXDIAddress,
boolean subgraph) |
ReadOnlyIterator<Relation> |
getIncomingRelations()
Returns the incoming relations of this context node.
|
LiteralNode |
getLiteralNode()
Returns the literal of this context node.
|
ReadOnlyIterator<Relation> |
getRelations()
Returns the relations of this context node.
|
XDIAddress |
getXDIAddress()
Gets the address of this 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, containsContextNode, containsContextNodes, containsIncomingRelations, containsIncomingRelations, containsLiteralBoolean, containsLiteralNode, containsLiteralNode, containsLiteralNumber, containsLiteralString, containsRelation, containsRelations, containsRelations, containsStatement, delContextNodeDelAllIncomingRelations, delContextNodeDelAllInnerRoots, delContextNodeDelAllRelations, delContextNodes, delete, delIncomingRelations, delRelationDelInnerRoot, delRelations, delRelations, equals, getAllContextNodeCount, getAllContextNodes, getAllIncomingRelations, getAllLeafContextNodes, getAllLiteralCount, getAllLiteralNodes, getAllRelationCount, getAllRelations, getAllStatementCount, getAllStatements, getContextNode, getContextNodeCount, getDeepContextNode, getDeepLiteralNode, getDeepLiteralNode, getDeepNode, getDeepNode, getDeepRelation, getDeepRelation, getDeepRelations, getGraph, getIncomingRelations, getLiteralBoolean, getLiteralData, getLiteralDataBoolean, getLiteralDataNumber, getLiteralDataString, getLiteralNode, getLiteralNumber, getLiteralString, getRelation, getRelation, getRelationCount, getRelationCount, getRelations, getStatement, getStatement, hashCode, isEmpty, isLeafContextNode, isRootContextNode, setContextNodeCheckValid, setContextNodeSetInnerRoot, setDeepContextNode, setDeepLiteralNode, setDeepNode, setDeepRelation, setDeepRelation, setLiteralBoolean, setLiteralCheckValid, setLiteralNumber, setLiteralString, setRelation, setRelationCheckValid, setRelationSetTargetNode, setStatement, toStringgetContextNode, getContextNodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsContextNode, containsContextNodes, containsIncomingRelations, containsIncomingRelations, containsLiteralBoolean, containsLiteralNode, containsLiteralNode, containsLiteralNumber, containsLiteralString, containsRelation, containsRelations, containsRelations, containsStatement, delContextNodes, delIncomingRelations, delRelations, delRelations, getAllContextNodeCount, getAllContextNodes, getAllIncomingRelations, getAllLeafContextNodes, getAllLiteralCount, getAllLiteralNodes, getAllRelationCount, getAllRelations, getAllStatementCount, getAllStatements, getContextNode, getContextNodeCount, getDeepContextNode, getDeepLiteralNode, getDeepLiteralNode, getDeepNode, getDeepNode, getDeepRelation, getDeepRelation, getDeepRelations, getIncomingRelations, getLiteralBoolean, getLiteralData, getLiteralDataBoolean, getLiteralDataNumber, getLiteralDataString, getLiteralNode, getLiteralNumber, getLiteralString, getRelation, getRelation, getRelationCount, getRelationCount, getRelations, getStatement, getStatement, isEmpty, isLeafContextNode, isRootContextNode, setDeepContextNode, setDeepLiteralNode, setDeepNode, setDeepRelation, setDeepRelation, setLiteralBoolean, setLiteralNumber, setLiteralString, setRelation, setStatementdelete, getContextNode, getContextNode, getGraphcompareTopublic void clear()
ContextNodeclear in interface ContextNodeclear in class AbstractContextNodepublic XDIArc getXDIArc()
Nodepublic XDIAddress getXDIAddress()
NodegetXDIAddress in interface NodegetXDIAddress in class AbstractNodepublic ContextNode setContextNode(XDIArc XDIarc)
ContextNodesetContextNode in interface ContextNodeXDIarc - The arc of the new or existing context node.public 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 ContextNode getDeepContextNode(XDIAddress relativeContextNodeXDIAddress, boolean subgraph)
getDeepContextNode in interface ContextNodegetDeepContextNode in class AbstractContextNodepublic ReadOnlyIterator<ContextNode> getContextNodes()
ContextNodegetContextNodes in interface ContextNodepublic void delContextNode(XDIArc XDIarc)
ContextNodedelContextNode in interface ContextNodeXDIarc - The arc of the context node.public Relation setRelation(XDIAddress XDIaddress, Node targetNode)
ContextNodesetRelation in interface ContextNodeXDIaddress - The address of the relation.targetNode - The target node of the relation.public ReadOnlyIterator<Relation> getRelations()
ContextNodegetRelations in interface ContextNodepublic ReadOnlyIterator<Relation> getIncomingRelations()
ContextNodegetIncomingRelations in interface ContextNodegetIncomingRelations 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 LiteralNode setLiteralNode(Object literalData)
ContextNodesetLiteralNode in interface ContextNodeliteralData - The literal data associated with the literal.public LiteralNode getLiteralNode()
ContextNodegetLiteralNode in interface ContextNodepublic void delLiteralNode()
ContextNodedelLiteralNode in interface ContextNodeCopyright © 2017. All rights reserved.