net.sf.mmm.util.text.api
Enum TextColumnInfo.IndentationMode

java.lang.Object
  extended by java.lang.Enum<TextColumnInfo.IndentationMode>
      extended by net.sf.mmm.util.text.api.TextColumnInfo.IndentationMode
All Implemented Interfaces:
Serializable, Comparable<TextColumnInfo.IndentationMode>
Enclosing class:
TextColumnInfo

public static enum TextColumnInfo.IndentationMode
extends Enum<TextColumnInfo.IndentationMode>

This enum contains the available modes how to deal with indentation after newlines.


Enum Constant Summary
INDENT_AFTER_NEWLINE
          Do NOT add indent for the first line, but for each following lines, even after a newline in the text.
NO_INDENT_AFTER_DOUBLE_NEWLINE
          Do NOT add indent for the first line, but for each following lines, even after a single newline in the text.
NO_INDENT_AFTER_NEWLINE
          Do NOT add indent for the first line, but for each following lines.
 
Method Summary
static TextColumnInfo.IndentationMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TextColumnInfo.IndentationMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_INDENT_AFTER_NEWLINE

public static final TextColumnInfo.IndentationMode NO_INDENT_AFTER_NEWLINE
Do NOT add indent for the first line, but for each following lines. After newline in the text, no indent is added for the following line of the column.


NO_INDENT_AFTER_DOUBLE_NEWLINE

public static final TextColumnInfo.IndentationMode NO_INDENT_AFTER_DOUBLE_NEWLINE
Do NOT add indent for the first line, but for each following lines, even after a single newline in the text. If a column-line starts with a newline (duplicate newlines), this indicates a new paragraph. So after an empty line in the column, no indent is added for the next line of the column.


INDENT_AFTER_NEWLINE

public static final TextColumnInfo.IndentationMode INDENT_AFTER_NEWLINE
Do NOT add indent for the first line, but for each following lines, even after a newline in the text.

Method Detail

values

public static TextColumnInfo.IndentationMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TextColumnInfo.IndentationMode c : TextColumnInfo.IndentationMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TextColumnInfo.IndentationMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


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