GrammarScope  4.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Attributes | List of all members
grammarscope.server.iface.RelationModel Class Reference
Inheritance diagram for grammarscope.server.iface.RelationModel:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.server.iface.RelationModel:
Collaboration graph
[legend]

Public Member Functions

 RelationModel (final Relation root, final Collection< Relation > relations, final String name)
 
String toString ()
 

Static Public Member Functions

static String getTreeName (final Relation relation, final boolean down, final boolean displayLongName)
 
static String getTreeAncestorsNames (final Relation relation, final boolean down, final boolean displayLongName)
 

Public Attributes

final Relation root
 
final Collection< Relationrelations
 
final String name
 

Static Private Attributes

static final long serialVersionUID = 6222200681569404783L
 

Detailed Description

Relation model

Author
Bernard Bou

Constructor & Destructor Documentation

◆ RelationModel()

grammarscope.server.iface.RelationModel.RelationModel ( final Relation  root,
final Collection< Relation relations,
final String  name 
)

Constructor

Parameters
rootroot
relationsrelations
namename

Member Function Documentation

◆ getTreeAncestorsNames()

static String grammarscope.server.iface.RelationModel.getTreeAncestorsNames ( final Relation  relation,
final boolean  down,
final boolean  displayLongName 
)
static

Get up lineage (parents to root)

Parameters
relationgrammatical relation
downparent-child order
displayLongNamewhether to display long names
Returns
lineage string

◆ getTreeName()

static String grammarscope.server.iface.RelationModel.getTreeName ( final Relation  relation,
final boolean  down,
final boolean  displayLongName 
)
static

Get tree name (this node with appended lineage)

Parameters
relationgrammatical relation
downparent-child order
displayLongNamewhether to display long names
Returns
tree name string

◆ toString()

String grammarscope.server.iface.RelationModel.toString ( )

Member Data Documentation

◆ name

final String grammarscope.server.iface.RelationModel.name

Description

◆ relations

final Collection<Relation> grammarscope.server.iface.RelationModel.relations

Relation array

◆ root

final Relation grammarscope.server.iface.RelationModel.root

Root relation

◆ serialVersionUID

final long grammarscope.server.iface.RelationModel.serialVersionUID = 6222200681569404783L
staticprivate

The documentation for this class was generated from the following file: