Class ConsistencyAnalysisResult
- java.lang.Object
-
- org.ametys.plugins.odfpilotage.report.consistency.ConsistencyAnalysisResult
-
public class ConsistencyAnalysisResult extends Object
Object representing the result of the analysis.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,I18nizableText>
_columns
Columns descriptionprivate List<String>
_indentableColumns
The names of the columns to indent regarding the indentation levelprivate I18nizableText
_introText
The introduction textprivate List<Map<String,Object>>
_lines
List of linesprivate ConsistencyAnalysisStatus
_status
Status of the resultprivate I18nizableText
_statusText
The text visible in the resumestatic String
INDENTATION_LEVEL_DATA_NAME
Name of the data to put the indentation level in a line
-
Constructor Summary
Constructors Constructor Description ConsistencyAnalysisResult()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumn(String name, I18nizableText label)
Add a column.void
addColumn(String name, I18nizableText label, boolean isIndentable)
Add a column.void
addLine(Map<String,Object> line)
Add a line.void
addLines(List<Map<String,Object>> lines)
Add all the lines.Map<String,I18nizableText>
getColumns()
Get the columns.List<String>
getIndentableColumns()
Retrieves the list of the indentable columnsI18nizableText
getIntroText()
Get the intro text.List<Map<String,Object>>
getLines()
Get the lines.ConsistencyAnalysisStatus
getStatus()
Get the status.I18nizableText
getStatusText()
Get the status text for the resume.void
setIntroText(I18nizableText introText)
Set the intro text.void
setStatus(ConsistencyAnalysisStatus status)
Set the status.void
setStatusText(I18nizableText statusText)
Set the status text for the resume.
-
-
-
Field Detail
-
INDENTATION_LEVEL_DATA_NAME
public static final String INDENTATION_LEVEL_DATA_NAME
Name of the data to put the indentation level in a line- See Also:
- Constant Field Values
-
_status
private ConsistencyAnalysisStatus _status
Status of the result
-
_statusText
private I18nizableText _statusText
The text visible in the resume
-
_introText
private I18nizableText _introText
The introduction text
-
_columns
private Map<String,I18nizableText> _columns
Columns description
-
_indentableColumns
private List<String> _indentableColumns
The names of the columns to indent regarding the indentation level
-
-
Constructor Detail
-
ConsistencyAnalysisResult
public ConsistencyAnalysisResult()
Constructor.
-
-
Method Detail
-
getStatus
public ConsistencyAnalysisStatus getStatus()
Get the status.- Returns:
- The status
-
setStatus
public void setStatus(ConsistencyAnalysisStatus status)
Set the status.- Parameters:
status
- The status to set
-
getStatusText
public I18nizableText getStatusText()
Get the status text for the resume.- Returns:
- The status text
-
setStatusText
public void setStatusText(I18nizableText statusText)
Set the status text for the resume.- Parameters:
statusText
- The status text
-
getIntroText
public I18nizableText getIntroText()
Get the intro text.- Returns:
- The intro text
-
setIntroText
public void setIntroText(I18nizableText introText)
Set the intro text.- Parameters:
introText
- The intro text
-
getColumns
public Map<String,I18nizableText> getColumns()
Get the columns.- Returns:
- The columns
-
addColumn
public void addColumn(String name, I18nizableText label)
Add a column.- Parameters:
name
- The name of the columnlabel
- The label of the column
-
addColumn
public void addColumn(String name, I18nizableText label, boolean isIndentable)
Add a column.- Parameters:
name
- The name of the columnlabel
- The label of the columnisIndentable
-true
if the column is indentable,false
otherwise
-
getIndentableColumns
public List<String> getIndentableColumns()
Retrieves the list of the indentable columns- Returns:
- the list of the indentable columns
-
-