
public interface ContextNode extends Node, Comparable<ContextNode>
| 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 |
containsIncomingRelations()
Checks if this context node has one or more incoming relations.
|
boolean |
containsIncomingRelations(XDIAddress XDIaddress)
Checks if incoming relations with a given arc exist in this context node.
|
boolean |
containsLiteralBoolean(Boolean literalData)
Checks if this context node has a literal with the given data.
|
boolean |
containsLiteralNode()
Checks if this context node has a literal.
|
boolean |
containsLiteralNode(Object literalData)
Checks if this context node has a literal with the given data.
|
boolean |
containsLiteralNumber(Double literalData)
Checks if this context node has a literal with the given data.
|
boolean |
containsLiteralString(String literalData)
Checks if this context node has a literal with the given data.
|
boolean |
containsRelation(XDIAddress XDIaddress,
XDIAddress targetXDIAddress)
Checks if a relation with a given arc and target context node XRI 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.
|
boolean |
containsStatement(XDIStatement XDIstatement)
Check if a statement exists 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 |
delIncomingRelations()
Deletes the incoming relations of 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 relation with a given arc from this context node.
|
long |
getAllContextNodeCount()
Returns the number of all context nodes under this context node.
|
ReadOnlyIterator<ContextNode> |
getAllContextNodes()
Returns all context nodes under this context node.
|
ReadOnlyIterator<Relation> |
getAllIncomingRelations()
Returns all incoming relations of this context node.
|
ReadOnlyIterator<ContextNode> |
getAllLeafContextNodes()
Returns all leaf context nodes under this context node.
|
long |
getAllLiteralCount()
Returns the number of all literals of this context node.
|
ReadOnlyIterator<LiteralNode> |
getAllLiterals()
Returns all literals of this context node.
|
long |
getAllRelationCount()
Returns the number of all relations of this context node.
|
ReadOnlyIterator<Relation> |
getAllRelations()
Returns all relations of this context node.
|
long |
getAllStatementCount()
Returns the number of all statements in this context node.
|
ReadOnlyIterator<Statement> |
getAllStatements()
Gets all statements in this context node.
|
ContextNode |
getContextNode(XDIArc XDIarc)
Returns the context node with a given arc.
|
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.
|
ContextNode |
getDeepContextNode(XDIAddress relativeContextNodeXDIAddress) |
ContextNode |
getDeepContextNode(XDIAddress relativeContextNodeXDIAddress,
boolean subgraph) |
LiteralNode |
getDeepLiteralNode(XDIAddress relativeLiteralNodeXDIAddress) |
LiteralNode |
getDeepLiteralNode(XDIAddress relativeLiteralNodeXDIAddress,
boolean subgraph) |
Node |
getDeepNode(XDIAddress relativeNodeXDIAddress)
Returns a node at an arbitrary level of the graph.
|
Node |
getDeepNode(XDIAddress relativeNodeXDIAddress,
boolean subgraph)
Returns a node at an arbitrary level of the graph.
|
ReadOnlyIterator<Relation> |
getIncomingRelations()
Returns the incoming relations of this context node.
|
ReadOnlyIterator<Relation> |
getIncomingRelations(XDIAddress XDIaddress)
Returns the incoming relations with a given arc.
|
LiteralNode |
getLiteralBoolean(Boolean literalData)
Returns the literal of this context node.
|
LiteralNode |
getLiteralNode()
Returns the literal of this context node.
|
LiteralNode |
getLiteralNode(Object literalData)
Returns the literal of this context node.
|
LiteralNode |
getLiteralNumber(Double literalData)
Returns the literal of this context node.
|
LiteralNode |
getLiteralString(String literalData)
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.
|
Statement.ContextNodeStatement |
getStatement()
Gets the statement that represents this context node.
|
Statement |
getStatement(XDIStatement XDIstatement)
Gets a statement in this context node.
|
boolean |
isEmpty()
Checks if the context node is empty.
|
boolean |
isLeafContextNode()
Checks if this context node is a leaf context node.
|
boolean |
isRootContextNode()
Checks if this context node is the root context node.
|
ContextNode |
setContextNode(XDIArc XDIarc)
Creates a new context node and adds it to this context node, or returns an existing context node.
|
ContextNode |
setDeepContextNode(XDIAddress relativeContextNodeXDIAddress) |
LiteralNode |
setDeepLiteralNode(XDIAddress relativeLiteralNodeXDIAddress) |
Node |
setDeepNode(XDIAddress relativeNodeXDIAddress)
Create a new node at an arbitrary level of the graph, or returns an existing node.
|
LiteralNode |
setLiteralBoolean(Boolean literalData)
Creates a new literal and adds it to this context node, or returns an existing literal.
|
LiteralNode |
setLiteralNode(Object literalData)
Creates a new literal and adds it to this context node, or returns an existing literal.
|
LiteralNode |
setLiteralNumber(Double literalData)
Creates a new literal and adds it to this context node, or returns an existing literal.
|
LiteralNode |
setLiteralString(String 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.
|
Relation |
setRelation(XDIAddress XDIarc,
XDIAddress targetXDIAddress)
Creates a new relation and adds it to this context node, or returns an existing relation.
|
Statement |
setStatement(XDIStatement XDIstatement)
Sets a statement in this context node.
|
delete, getContextNode, getContextNode, getGraph, getXDIAddress, getXDIArccompareToboolean isRootContextNode()
boolean isLeafContextNode()
void clear()
boolean isEmpty()
ContextNode setContextNode(XDIArc XDIarc)
arc - The arc of the new or existing context node.ContextNode getContextNode(XDIArc XDIarc, boolean subgraph)
arc - 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.ContextNode getContextNode(XDIArc XDIarc)
arc - The arc of the context node.ReadOnlyIterator<ContextNode> getContextNodes()
ReadOnlyIterator<ContextNode> getAllContextNodes()
ReadOnlyIterator<ContextNode> getAllLeafContextNodes()
boolean containsContextNode(XDIArc XDIarc)
arc - The arc to look for.boolean containsContextNodes()
void delContextNode(XDIArc XDIarc)
arc - The arc of the context node.void delContextNodes()
long getContextNodeCount()
long getAllContextNodeCount()
Relation setRelation(XDIAddress XDIarc, XDIAddress targetXDIAddress)
XDIarc - The arc of the relation.targetXDIAddress - The target context node address of the relation.Relation setRelation(XDIAddress XDIaddress, Node targetNode)
arc - The arc of the relation.targetContextNode - The target context node of the relation.Relation getRelation(XDIAddress XDIaddress, XDIAddress targetXDIAddress)
arc - The arc to look for.targetXDIAddress - The target context node XRI of the relation.Relation getRelation(XDIAddress XDIaddress)
arc - The arc to look for.ReadOnlyIterator<Relation> getRelations(XDIAddress XDIaddress)
arc - The arc to look for.ReadOnlyIterator<Relation> getRelations()
ReadOnlyIterator<Relation> getIncomingRelations(XDIAddress XDIaddress)
arc - The arc to look for.ReadOnlyIterator<Relation> getIncomingRelations()
ReadOnlyIterator<Relation> getAllRelations()
ReadOnlyIterator<Relation> getAllIncomingRelations()
boolean containsRelation(XDIAddress XDIaddress, XDIAddress targetXDIAddress)
arc - The arc of the relations.targetXDIAddress - The target context node XRI of the relation.boolean containsRelations(XDIAddress XDIaddress)
arc - The arc of the relations.boolean containsRelations()
boolean containsIncomingRelations(XDIAddress XDIaddress)
arc - The arc of the incoming relations.boolean containsIncomingRelations()
void delRelation(XDIAddress XDIaddress, XDIAddress targetXDIAddress)
arc - The arc of the relation.targetXDIAddress - The target context node XRI of the relation.void delRelations(XDIAddress XDIaddress)
arc - The arc of the relation.void delRelations()
void delIncomingRelations()
long getRelationCount(XDIAddress XDIaddress)
arc - The arc to look for.long getRelationCount()
long getAllRelationCount()
LiteralNode setLiteralNode(Object literalData)
literalData - The literal data associated with the literal.LiteralNode setLiteralString(String literalData)
literalData - The literal data string associated with the literal.LiteralNode setLiteralNumber(Double literalData)
literalData - The literal data number associated with the literal.LiteralNode setLiteralBoolean(Boolean literalData)
literalData - The literal data boolean associated with the literal.LiteralNode getLiteralNode()
LiteralNode getLiteralNode(Object literalData)
literalData - The literal data associated with the literal.LiteralNode getLiteralString(String literalData)
literalData - The literal data string associated with the literal.LiteralNode getLiteralNumber(Double literalData)
literalData - The literal data number associated with the literal.LiteralNode getLiteralBoolean(Boolean literalData)
literalData - The literal data boolean associated with the literal.ReadOnlyIterator<LiteralNode> getAllLiterals()
boolean containsLiteralNode(Object literalData)
literalData - The literal data associated with the literal.boolean containsLiteralString(String literalData)
literalData - The literal data string associated with the literal.boolean containsLiteralNumber(Double literalData)
literalData - The literal data number associated with the literal.boolean containsLiteralBoolean(Boolean literalData)
literalData - The literal data boolean associated with the literal.boolean containsLiteralNode()
void delLiteralNode()
long getAllLiteralCount()
Node setDeepNode(XDIAddress relativeNodeXDIAddress)
relativeNodeXDIAddress - The relative address of the new or existing node.ContextNode setDeepContextNode(XDIAddress relativeContextNodeXDIAddress)
LiteralNode setDeepLiteralNode(XDIAddress relativeLiteralNodeXDIAddress)
Node getDeepNode(XDIAddress relativeNodeXDIAddress, boolean subgraph)
relativeNodeXDIAddress - The relative address of the 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.ContextNode getDeepContextNode(XDIAddress relativeContextNodeXDIAddress, boolean subgraph)
LiteralNode getDeepLiteralNode(XDIAddress relativeLiteralNodeXDIAddress, boolean subgraph)
Node getDeepNode(XDIAddress relativeNodeXDIAddress)
relativeNodeXDIAddress - The relative address of the node.ContextNode getDeepContextNode(XDIAddress relativeContextNodeXDIAddress)
LiteralNode getDeepLiteralNode(XDIAddress relativeLiteralNodeXDIAddress)
Statement.ContextNodeStatement getStatement()
Statement setStatement(XDIStatement XDIstatement)
Statement getStatement(XDIStatement XDIstatement)
ReadOnlyIterator<Statement> getAllStatements()
boolean containsStatement(XDIStatement XDIstatement)
long getAllStatementCount()
Copyright © 2015. All Rights Reserved.