Relation model
- Author
- Bernard Bou
◆ MutableRelationModel() [1/2]
Constructor
- Parameters
-
| root | root relation |
| relations | array list of relations |
◆ MutableRelationModel() [2/2]
Constructor
- Parameters
-
| root | root relation |
| relations | array list of relations |
◆ add()
Add relation to model
- Parameters
-
◆ export()
| void grammarscope.mutable.MutableRelationModel.export |
( |
final PrintWriter |
writer | ) |
|
Export model to writer
- Parameters
-
◆ exportExamples()
| void grammarscope.mutable.MutableRelationModel.exportExamples |
( |
final PrintWriter |
writer | ) |
|
Export model examples to writer
- Parameters
-
◆ fromId()
Get relation from id
- Parameters
-
- Returns
- relation
◆ main()
| static void grammarscope.mutable.MutableRelationModel.main |
( |
final String[] |
args | ) |
throws FileNotFoundException |
|
static |
Export model to files
- Parameters
-
- Exceptions
-
| FileNotFoundException | exception |
◆ makeGovDepModel()
Make gov/dep model
- Returns
- minimal model
◆ makeIdToRelationMap()
Make id-relation map
- Returns
- id-relation map
◆ makeNameToRelationMap()
Make name-relation map
- Returns
- name-relation map
◆ makeShortNameToRelationMap()
Make short name-relation map
- Returns
- short name-relation map
◆ move()
Move relation in model
- Parameters
-
| relation | relation to move |
| parentRelation | parent relation to move relation to |
- Returns
- true if successful
◆ remove()
Remove relation from model
- Parameters
-
| relation | relation to remove |
- Returns
- true if successful
◆ toIds()
| Vector<String> grammarscope.mutable.MutableRelationModel.toIds |
( |
| ) |
|
Get vector of ids
- Returns
- vector of ids
◆ toSimpleString()
| String grammarscope.mutable.MutableRelationModel.toSimpleString |
( |
| ) |
|
Model to simple string
- Returns
- string
◆ toTreeString()
| String grammarscope.mutable.MutableRelationModel.toTreeString |
( |
| ) |
|
Model to tree string
- Returns
- string
◆ toXmlString()
| String grammarscope.mutable.MutableRelationModel.toXmlString |
( |
| ) |
|
Model to XML string
- Returns
- string
◆ relations
◆ root
The documentation for this class was generated from the following file: