public final class CopyUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CopyUtil.AbstractCopyStrategy
Just copy everything without change.
|
static class |
CopyUtil.AllCopyStrategy
The default strategy that copies everything.
|
static class |
CopyUtil.CompoundCopyStrategy
A compound strategy.
|
static interface |
CopyUtil.CopyStrategy |
static class |
CopyUtil.ReplaceEscapedVariablesCopyStrategy
A strategy for replacing escaped variables.
|
static class |
CopyUtil.ReplaceLiteralVariablesCopyStrategy
A strategy for replacing literal variables.
|
static class |
CopyUtil.ReplaceRegexLiteralStringCopyStrategy
A strategy that replaces literal strings.
|
static class |
CopyUtil.ReplaceXDIAddressCopyStrategy
A strategy that replaces XDI addresses.
|
Modifier and Type | Method and Description |
---|---|
static ContextNode |
copyContextNode(ContextNode contextNode,
ContextNode targetContextNode,
CopyUtil.CopyStrategy copyStrategy)
Copies a context node into a target context node.
|
static ContextNode |
copyContextNode(ContextNode contextNode,
Graph targetGraph,
CopyUtil.CopyStrategy copyStrategy)
Copies a context node into a target graph.
|
static void |
copyContextNodeContents(ContextNode contextNode,
ContextNode targetContextNode,
CopyUtil.CopyStrategy copyStrategy)
Copies the contents of a context node (context nodes, relations, and the literal) into a target context node.
|
static void |
copyContextNodeContents(ContextNode contextNode,
Graph targetGraph,
CopyUtil.CopyStrategy copyStrategy)
Copies the contents of a context node (context nodes, relations, and the literal) into a target graph.
|
static Iterator<ContextNode> |
copyContextNodes(ContextNode contextNode,
ContextNode targetContextNode,
CopyUtil.CopyStrategy copyStrategy)
Copies all context nodes of a context node into a target context node.
|
static void |
copyGraph(Graph graph,
Graph targetGraph,
CopyUtil.CopyStrategy copyStrategy)
Copies a whole graph into a target graph.
|
static LiteralNode |
copyLiteralNode(ContextNode contextNode,
ContextNode targetContextNode,
CopyUtil.CopyStrategy copyStrategy)
Copies a literal of a context node into a target context node.
|
static LiteralNode |
copyLiteralNode(LiteralNode literalNode,
ContextNode targetContextNode,
CopyUtil.CopyStrategy copyStrategy)
Copies a literal into another context node.
|
static LiteralNode |
copyLiteralNode(LiteralNode literalNode,
Graph targetGraph,
CopyUtil.CopyStrategy copyStrategy)
Copies a literal into another graph.
|
static Node |
copyNode(Node node,
ContextNode targetContextNode,
CopyUtil.CopyStrategy copyStrategy) |
static Node |
copyNode(Node node,
Graph targetGraph,
CopyUtil.CopyStrategy copyStrategy) |
static Relation |
copyRelation(Relation relation,
ContextNode targetContextNode,
CopyUtil.CopyStrategy copyStrategy)
Copies a relation into another context node.
|
static Relation |
copyRelation(Relation relation,
Graph targetGraph,
CopyUtil.CopyStrategy copyStrategy)
Copies a relation into another graph.
|
static Iterator<Relation> |
copyRelations(ContextNode contextNode,
ContextNode targetContextNode,
CopyUtil.CopyStrategy copyStrategy)
Copies all relations of a context node into a target context node.
|
static Statement |
copyStatement(Statement statement,
Graph targetGraph,
CopyUtil.CopyStrategy copyStrategy)
Copies a statement into another graph.
|
public static void copyGraph(Graph graph, Graph targetGraph, CopyUtil.CopyStrategy copyStrategy)
graph
- A graph.targetGraph
- The target graph.copyStrategy
- The strategy to determine what to copy.public static ContextNode copyContextNode(ContextNode contextNode, Graph targetGraph, CopyUtil.CopyStrategy copyStrategy)
contextNode
- A context node from any graph.targetGraph
- The target graph.copyStrategy
- The strategy to determine what to copy.public static ContextNode copyContextNode(ContextNode contextNode, ContextNode targetContextNode, CopyUtil.CopyStrategy copyStrategy)
contextNode
- A context node from any context node.targetContextNode
- The target context node.copyStrategy
- The strategy to determine what to copy.public static Iterator<ContextNode> copyContextNodes(ContextNode contextNode, ContextNode targetContextNode, CopyUtil.CopyStrategy copyStrategy)
contextNode
- A context node from any graph.targetContextNode
- The target context node.copyStrategy
- The strategy to determine what to copy.public static Relation copyRelation(Relation relation, Graph targetGraph, CopyUtil.CopyStrategy copyStrategy)
relation
- A relation from any graph.targetGraph
- The target graph.copyStrategy
- The strategy to determine what to copy.public static Relation copyRelation(Relation relation, ContextNode targetContextNode, CopyUtil.CopyStrategy copyStrategy)
relation
- A relation from any context node.targetContextNode
- The target context node.copyStrategy
- The strategy to determine what to copy.public static Iterator<Relation> copyRelations(ContextNode contextNode, ContextNode targetContextNode, CopyUtil.CopyStrategy copyStrategy)
contextNode
- A context node from any graph.targetContextNode
- The target context node.copyStrategy
- The strategy to determine what to copy.public static LiteralNode copyLiteralNode(LiteralNode literalNode, Graph targetGraph, CopyUtil.CopyStrategy copyStrategy)
literalNode
- A literal from any graph.targetGraph
- The target graph.copyStrategy
- The strategy to determine what to copy.public static LiteralNode copyLiteralNode(LiteralNode literalNode, ContextNode targetContextNode, CopyUtil.CopyStrategy copyStrategy)
literalNode
- A literal from any context node.targetContextNode
- The target context node.copyStrategy
- The strategy to determine what to copy.public static LiteralNode copyLiteralNode(ContextNode contextNode, ContextNode targetContextNode, CopyUtil.CopyStrategy copyStrategy)
contextNode
- A context node from any graph.targetContextNode
- The target context node.copyStrategy
- The strategy to determine what to copy.public static Node copyNode(Node node, Graph targetGraph, CopyUtil.CopyStrategy copyStrategy)
public static Node copyNode(Node node, ContextNode targetContextNode, CopyUtil.CopyStrategy copyStrategy)
public static void copyContextNodeContents(ContextNode contextNode, ContextNode targetContextNode, CopyUtil.CopyStrategy copyStrategy)
contextNode
- A context node from any graph.targetContextNode
- The target context node.copyStrategy
- The strategy to determine what to copy.public static void copyContextNodeContents(ContextNode contextNode, Graph targetGraph, CopyUtil.CopyStrategy copyStrategy)
contextNode
- A context node from any graph.targetGraph
- The target graph.copyStrategy
- The strategy to determine what to copy.public static Statement copyStatement(Statement statement, Graph targetGraph, CopyUtil.CopyStrategy copyStrategy)
statement
- A statement from any graph.targetGraph
- The target graph.copyStrategy
- The strategy to determine what to copy.Copyright © 2017. All rights reserved.