# Class: com.pnfsoftware.jeb.core.output.text.impl.Line
- Super class: `java.lang.Object`
- Super interfaces: `com.pnfsoftware.jeb.core.output.text.ILine`

A simple implementation of the line interface.

## Constructor: Line
- parameter: `text`, type: `java.lang.CharSequence`

Description: Create a new line without items.
parameter: text: the line text

## Constructor: Line
- parameter: `text`, type: `java.lang.CharSequence`
- parameter: `items`, type: `java.util.List<com.pnfsoftware.jeb.core.output.text.impl.TextItem>`

Description: Create a new line.
parameter: text: mandatory text line, cannot contain new\-line characters
parameter: items: mandatory items, can be empty at best

## Constructor: Line
- parameter: `text`, type: `java.lang.CharSequence`
- parameter: `items`, type: `java.util.List<com.pnfsoftware.jeb.core.output.text.impl.TextItem>`
- parameter: `marks`, type: `java.util.List<com.pnfsoftware.jeb.core.output.text.impl.TextMark>`

Description: Create a new line.
parameter: text: mandatory text line, cannot contain new\-line characters
parameter: items: optional items for the line
parameter: marks: optional marks for the line

## Method: addItem
- parameter: `item`, type: `com.pnfsoftware.jeb.core.output.text.impl.TextItem`

Description: Add [TextItem](com.pnfsoftware.jeb.core.output.text.impl.TextItem.md) to the current [Line](com.pnfsoftware.jeb.core.output.text.impl.Line.md). This method preserves [TextItem](com.pnfsoftware.jeb.core.output.text.impl.TextItem.md)  order based on the [TextItem#getOffset()](TextItem#getOffset()).
parameter: item: item to add

## Method: addMark
- parameter: `mark`, type: `com.pnfsoftware.jeb.core.output.text.impl.TextMark`

Description: Record a mark in the current line.
parameter: mark: mark to add

## Method: getItems
- return type: `java.util.List<com.pnfsoftware.jeb.core.output.text.impl.TextItem>`


## Method: getMarks
- return type: `java.util.List<com.pnfsoftware.jeb.core.output.text.impl.TextMark>`


## Method: getText
- return type: `java.lang.CharSequence`


## Method: setText
- parameter: `text`, type: `java.lang.CharSequence`


## Method: toString
- return type: `java.lang.String`


