public class StructureUtils
extends java.lang.Object
You will need to implement your own StructureUtils.NodeFactory
, which is responsible
for creating the StructureUtils.Node
instances. The StructureUtils.Node
interface is the
common interface, which all the Java objects in the structure must implement.
For basic usecases, you can use the defaultNodeFactory
, which
creates nodes of type StructureUtils.DefaultNode
.
Modifier and Type | Class and Description |
---|---|
static class |
StructureUtils.DefaultNode
A default node implementation.
|
static interface |
StructureUtils.Node
Represents a generic node in a tree
|
static interface |
StructureUtils.NodeFactory
Factory, responsible for creating
nodes . |
Modifier and Type | Field and Description |
---|---|
static StructureUtils.NodeFactory |
defaultNodeFactory
This factory creates the node structure, where the nodes are of type
StructureUtils.DefaultNode |
Modifier and Type | Method and Description |
---|---|
static StructureUtils.Node |
create(matrix.db.ExpansionWithSelect ews) |
static StructureUtils.Node |
create(matrix.db.ExpansionWithSelect ews,
StructureUtils.NodeFactory factory) |
static StructureUtils.Node |
create(StructureUtils.NodeFactory factory,
java.lang.String rootObjectId,
java.lang.String relationshipPattern,
java.lang.String objectTypePattern,
matrix.util.StringList objectStatements,
matrix.util.StringList relationshipStatements,
boolean from,
boolean to,
java.lang.String objectWhere,
java.lang.String relWhere,
int recurseDepth) |
public static final StructureUtils.NodeFactory defaultNodeFactory
StructureUtils.DefaultNode
public static StructureUtils.Node create(StructureUtils.NodeFactory factory, java.lang.String rootObjectId, java.lang.String relationshipPattern, java.lang.String objectTypePattern, matrix.util.StringList objectStatements, matrix.util.StringList relationshipStatements, boolean from, boolean to, java.lang.String objectWhere, java.lang.String relWhere, int recurseDepth) throws TVCException
TVCException
public static StructureUtils.Node create(matrix.db.ExpansionWithSelect ews) throws TVCException
TVCException
public static StructureUtils.Node create(matrix.db.ExpansionWithSelect ews, StructureUtils.NodeFactory factory) throws TVCException
ews
- factory
- node
TVCException
Copyright © Technia AB. All Rights Reserved.