public class DocumentPlan extends Object
Modifier and Type | Field and Description |
---|---|
protected List<List<List<Map<String,Object>>>> |
paragraphs
The document plan itself.
|
Constructor and Description |
---|
DocumentPlan()
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAggrBoundary()
Closes the current aggregation segment and creates a new one.
|
void |
addClause(Map<String,Object> clause)
Adds a new clause to the open paragraph and aggregation segment.
|
void |
addParBoundary()
Closes the current aggregation segment (deletes it if it's empty), closes the current paragraph and creates a new
paragraph with a new aggregation segment inside.
|
List<List<List<Map<String,Object>>>> |
getParagraphs()
Obtain the list of paragraphs.
|
String |
toString()
String rendering, for debugging purposes.
|
public void addClause(Map<String,Object> clause)
public void addParBoundary()
public void addAggrBoundary()
public List<List<List<Map<String,Object>>>> getParagraphs()
Copyright © 2015 Pablo Duboue. All rights reserved.