net.sf.mmm.util.text.base
Enum DefaultLineWrapper.TextSegmentType

java.lang.Object
  extended by java.lang.Enum<DefaultLineWrapper.TextSegmentType>
      extended by net.sf.mmm.util.text.base.DefaultLineWrapper.TextSegmentType
All Implemented Interfaces:
Serializable, Comparable<DefaultLineWrapper.TextSegmentType>
Enclosing class:
DefaultLineWrapper

protected static enum DefaultLineWrapper.TextSegmentType
extends Enum<DefaultLineWrapper.TextSegmentType>

This enum contains the possbile types of a DefaultLineWrapper.TextSegment.


Enum Constant Summary
CHARACTERS
          Indicates one or multiple arbitrary characters.
NEWLINE
          Indicates a newline.
NON_BREAKING_CHARACTER
          Indicates a non-breaking character (e.g.
PUNCTUATION_CHARACTER
          Indicates a punctuation character (e.g. '.' or '!').
WORD
          Indicates a single word.
 
Method Summary
static DefaultLineWrapper.TextSegmentType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DefaultLineWrapper.TextSegmentType[] 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

WORD

public static final DefaultLineWrapper.TextSegmentType WORD
Indicates a single word. May be hyphenated as necessary.


NEWLINE

public static final DefaultLineWrapper.TextSegmentType NEWLINE
Indicates a newline.


NON_BREAKING_CHARACTER

public static final DefaultLineWrapper.TextSegmentType NON_BREAKING_CHARACTER
Indicates a non-breaking character (e.g. '&nbsp;'). Line wrapping should be avoided before and after this character.


PUNCTUATION_CHARACTER

public static final DefaultLineWrapper.TextSegmentType PUNCTUATION_CHARACTER
Indicates a punctuation character (e.g. '.' or '!'). Line wrapping should be avoided before this character.
Please note that "punctuation character" is a local definition and does NOT match with other definitions as from unicode.


CHARACTERS

public static final DefaultLineWrapper.TextSegmentType CHARACTERS
Indicates one or multiple arbitrary characters.

Method Detail

values

public static DefaultLineWrapper.TextSegmentType[] 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 (DefaultLineWrapper.TextSegmentType c : DefaultLineWrapper.TextSegmentType.values())
    System.out.println(c);

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

valueOf

public static DefaultLineWrapper.TextSegmentType 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.