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 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.
|
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 relations with a given address 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> |
getAllLiteralNodes()
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) |
Node |
getDeepNode(XDIAddress relativeNodeXDIAddress,
boolean subgraph) |
Relation |
getDeepRelation(XDIAddress relativeContextNodeXDIAddress,
XDIAddress XDIaddress) |
Relation |
getDeepRelation(XDIAddress relativeContextNodeXDIAddress,
XDIAddress XDIaddress,
XDIAddress targetXDIAddress) |
ReadOnlyIterator<Relation> |
getDeepRelations(XDIAddress relativeContextNodeXDIAddress,
XDIAddress XDIaddress) |
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.
|
Object |
getLiteralData()
Get the literal data.
|
Boolean |
getLiteralDataBoolean()
Get the literal data boolean.
|
Double |
getLiteralDataNumber()
Get the literal data number.
|
String |
getLiteralDataString()
Get the literal data string.
|
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) |
Relation |
setDeepRelation(XDIAddress relativeContextNodeXDIAddress,
XDIAddress XDIaddress,
Node targetNode) |
Relation |
setDeepRelation(XDIAddress relativeContextNodeXDIAddress,
XDIAddress XDIaddress,
XDIAddress targetXDIAddress) |
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 XDIaddress,
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, getXDIArc
compareTo
boolean isRootContextNode()
boolean isLeafContextNode()
void clear()
boolean isEmpty()
ContextNode setContextNode(XDIArc XDIarc)
XDIarc
- The arc of the new or existing context node.ContextNode getContextNode(XDIArc XDIarc, boolean subgraph)
XDIarc
- 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)
XDIarc
- The arc of the context node.ReadOnlyIterator<ContextNode> getContextNodes()
ReadOnlyIterator<ContextNode> getAllContextNodes()
ReadOnlyIterator<ContextNode> getAllLeafContextNodes()
boolean containsContextNode(XDIArc XDIarc)
XDIarc
- The arc to look for.boolean containsContextNodes()
void delContextNode(XDIArc XDIarc)
XDIarc
- The arc of the context node.void delContextNodes()
long getContextNodeCount()
long getAllContextNodeCount()
Relation setRelation(XDIAddress XDIaddress, XDIAddress targetXDIAddress)
XDIaddress
- The address of the relation.targetXDIAddress
- The target node address of the relation.Relation setRelation(XDIAddress XDIaddress, Node targetNode)
XDIaddress
- The address of the relation.targetNode
- The target node of the relation.Relation getRelation(XDIAddress XDIaddress, XDIAddress targetXDIAddress)
XDIaddress
- The address of the relation.targetXDIAddress
- The target node address of the relation.Relation getRelation(XDIAddress XDIaddress)
XDIaddress
- The address of the relation.ReadOnlyIterator<Relation> getRelations(XDIAddress XDIaddress)
XDIaddress
- The address of the relations.ReadOnlyIterator<Relation> getRelations()
ReadOnlyIterator<Relation> getIncomingRelations(XDIAddress XDIaddress)
XDIaddress
- The address of the relations.ReadOnlyIterator<Relation> getIncomingRelations()
ReadOnlyIterator<Relation> getAllRelations()
ReadOnlyIterator<Relation> getAllIncomingRelations()
boolean containsRelation(XDIAddress XDIaddress, XDIAddress targetXDIAddress)
XDIaddress
- The address of the relations.targetXDIAddress
- The target node address of the relation.boolean containsRelations(XDIAddress XDIaddress)
XDIaddress
- The address of the relations.boolean containsRelations()
boolean containsIncomingRelations(XDIAddress XDIaddress)
XDIarc
- The arc of the incoming relations.boolean containsIncomingRelations()
void delRelation(XDIAddress XDIaddress, XDIAddress targetXDIAddress)
XDIaddress
- The address of the relation.targetXDIAddress
- The target node address of the relation.void delRelations(XDIAddress XDIaddress)
XDIaddress
- The address of the relations.void delRelations()
void delIncomingRelations()
long getRelationCount(XDIAddress XDIaddress)
XDIaddress
- The address of the relations.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.Object getLiteralData()
String getLiteralDataString()
Double getLiteralDataNumber()
Boolean getLiteralDataBoolean()
ReadOnlyIterator<LiteralNode> getAllLiteralNodes()
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)
Node getDeepNode(XDIAddress relativeNodeXDIAddress, boolean subgraph)
Node getDeepNode(XDIAddress relativeNodeXDIAddress)
ContextNode setDeepContextNode(XDIAddress relativeContextNodeXDIAddress)
ContextNode getDeepContextNode(XDIAddress relativeContextNodeXDIAddress, boolean subgraph)
ContextNode getDeepContextNode(XDIAddress relativeContextNodeXDIAddress)
LiteralNode setDeepLiteralNode(XDIAddress relativeLiteralNodeXDIAddress)
LiteralNode getDeepLiteralNode(XDIAddress relativeLiteralNodeXDIAddress, boolean subgraph)
LiteralNode getDeepLiteralNode(XDIAddress relativeLiteralNodeXDIAddress)
Relation setDeepRelation(XDIAddress relativeContextNodeXDIAddress, XDIAddress XDIaddress, XDIAddress targetXDIAddress)
Relation setDeepRelation(XDIAddress relativeContextNodeXDIAddress, XDIAddress XDIaddress, Node targetNode)
Relation getDeepRelation(XDIAddress relativeContextNodeXDIAddress, XDIAddress XDIaddress, XDIAddress targetXDIAddress)
Relation getDeepRelation(XDIAddress relativeContextNodeXDIAddress, XDIAddress XDIaddress)
ReadOnlyIterator<Relation> getDeepRelations(XDIAddress relativeContextNodeXDIAddress, XDIAddress XDIaddress)
Statement.ContextNodeStatement getStatement()
Statement setStatement(XDIStatement XDIstatement)
Statement getStatement(XDIStatement XDIstatement)
ReadOnlyIterator<Statement> getAllStatements()
boolean containsStatement(XDIStatement XDIstatement)
long getAllStatementCount()
Copyright © 2017. All rights reserved.