net.sf.mmm.util.text.api
Class TextColumn

java.lang.Object
  extended by net.sf.mmm.util.text.api.TextColumn
Direct Known Subclasses:
DefaultLineWrapper.ColumnState

public class TextColumn
extends Object

This class is a simple container for the text of a column together with its metadata.

Since:
2.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
See Also:
LineWrapper.wrap(Appendable, TextTableInfo, TextColumn[])

Field Summary
private  TextColumnInfo columnInfo
           
private  String text
           
 
Constructor Summary
TextColumn(String text, TextColumnInfo columnInfo)
          The constructor.
 
Method Summary
 TextColumnInfo getColumnInfo()
          This method gets the TextColumnInfo holding the metadata of the column.
 String getText()
          This method gets the text of this column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

private final String text
See Also:
getText()

columnInfo

private final TextColumnInfo columnInfo
See Also:
getColumnInfo()
Constructor Detail

TextColumn

public TextColumn(String text,
                  TextColumnInfo columnInfo)
The constructor.

Parameters:
text - is the text.
columnInfo - is the column-info.
Method Detail

getText

public String getText()
This method gets the text of this column.

Returns:
the column text.

getColumnInfo

public TextColumnInfo getColumnInfo()
This method gets the TextColumnInfo holding the metadata of the column.

Returns:
the column-info.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.