public final class GraphUtil extends Object
Modifier and Type | Method and Description |
---|---|
static ContextNode |
contextNodeFromComponents(XDIAddress contextNodeXDIAddress)
Creates a context node from its components.
|
static XDIArc |
getOwnerPeerRootXDIArc(Graph graph) |
static XDIAddress |
getOwnerXDIAddress(Graph graph) |
static LiteralNode |
literalFromComponents(XDIAddress contextNodeXDIAddress,
Object literalData)
Creates a literal from its components.
|
static Relation |
relationFromComponents(XDIAddress contextNodeXDIAddress,
XDIAddress XDIaddress,
XDIAddress targetXDIAddress)
Creates a relation from its components.
|
static Graph |
relativeGraph(ContextNode contextNode)
Creates a relative graph in which a given context node is the root context node.
|
static void |
setOwnerPeerRootXDIArc(Graph graph,
XDIArc ownerPeerRootXDIArc) |
static void |
setOwnerXDIAddress(Graph graph,
XDIAddress ownerXDIAddress) |
public static XDIAddress getOwnerXDIAddress(Graph graph)
public static void setOwnerPeerRootXDIArc(Graph graph, XDIArc ownerPeerRootXDIArc)
public static void setOwnerXDIAddress(Graph graph, XDIAddress ownerXDIAddress)
public static ContextNode contextNodeFromComponents(XDIAddress contextNodeXDIAddress)
contextNodeXDIAddress
- The address of the context node.public static Relation relationFromComponents(XDIAddress contextNodeXDIAddress, XDIAddress XDIaddress, XDIAddress targetXDIAddress)
contextNodeXDIAddress
- The address of the context node containing the relation.XDIaddress
- The address of the relation.targetXDIAddress
- The target context node address of the relation.public static LiteralNode literalFromComponents(XDIAddress contextNodeXDIAddress, Object literalData)
contextNodeXDIAddress
- The address of the context node containing the literal.literalData
- The literal data of the literal.public static Graph relativeGraph(ContextNode contextNode)
contextNode
- A context node in a graph.Copyright © 2017. All rights reserved.