Salt  3.4.2
A powerful, tagset-independent and theory-neutral meta model and API for storing, manipulating, and representing nearly all types of linguistic data .
org.corpus_tools.salt.graph.GraphFactory Class Reference

Static Public Member Functions

static Graph< Node, Relation< Node, Node >, Layer< Node, Relation< Node, Node > > > createGraph ()
 Creates a new Graph object of type GraphImpl. More...
 
static Node createNode ()
 Creates a new Node object of type NodeImpl. More...
 
static Relation< Node, NodecreateRelation ()
 Creates a new Relation object of type RelationImpl. More...
 
static Label createLabel ()
 Creates a new Label object of type LabelImpl. More...
 
static Identifier createIdentifier (IdentifiableElement container, String id)
 Creates a new Identifier object of type IdentifierImpl. More...
 
static Layer< Node, Relation< Node, Node > > createLayer ()
 Creates a new Layer object. More...
 

Member Function Documentation

◆ createGraph()

static Graph<Node, Relation<Node, Node>, Layer<Node, Relation<Node, Node> > > org.corpus_tools.salt.graph.GraphFactory.createGraph ( )
static

Creates a new Graph object of type GraphImpl.

Returns
new Graph object

◆ createIdentifier()

static Identifier org.corpus_tools.salt.graph.GraphFactory.createIdentifier ( IdentifiableElement  container,
String  id 
)
static

Creates a new Identifier object of type IdentifierImpl.

Its IdentifiableElement is set to the passed container and its id value is set to passed id.

Parameters
containerIdentifiableElement which contains this Identifier
idthe id value of the Identifier
Returns
new Identifier object

◆ createLabel()

static Label org.corpus_tools.salt.graph.GraphFactory.createLabel ( )
static

Creates a new Label object of type LabelImpl.

The value of this label is defined to be of type String. To use another value type, use one of the other create methods createLabelXXX() or the generic method createLabel(Class).

Returns
new Label object

◆ createLayer()

static Layer<Node, Relation<Node, Node> > org.corpus_tools.salt.graph.GraphFactory.createLayer ( )
static

Creates a new Layer object.

A layer is a kind of a subgraph, which can contain nodes, relations and other layers.

Returns
new layer object

◆ createNode()

static Node org.corpus_tools.salt.graph.GraphFactory.createNode ( )
static

Creates a new Node object of type NodeImpl.

Returns
new Node object

◆ createRelation()

static Relation<Node, Node> org.corpus_tools.salt.graph.GraphFactory.createRelation ( )
static

Creates a new Relation object of type RelationImpl.

Returns
new Relation object