cz.zcu.fav.kiv.editor.controller.options
Enum NewlineEnum

java.lang.Object
  extended by java.lang.Enum<NewlineEnum>
      extended by cz.zcu.fav.kiv.editor.controller.options.NewlineEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NewlineEnum>

public enum NewlineEnum
extends java.lang.Enum<NewlineEnum>

The NewlineEnum class is the enumerated list of chars defining ends of line in the output XSL stylesheet.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Enum Constant Summary
CR
           
CRLF
           
LF
           
 
Method Summary
static boolean containsNewline(java.lang.String encodKey)
          Specifies if the input end of line is among predefined ends of line NewlineEnum.
 java.lang.String getKey()
           
 java.lang.String getMessage()
           
static NewlineEnum getNewline(java.lang.String newLineKey)
          Returns NewlineEnum object for the corresponding key.
 java.lang.String toString()
           
static NewlineEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NewlineEnum[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CRLF

public static final NewlineEnum CRLF

LF

public static final NewlineEnum LF

CR

public static final NewlineEnum CR
Method Detail

values

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

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

valueOf

public static NewlineEnum valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getMessage

public java.lang.String getMessage()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<NewlineEnum>

getNewline

public static NewlineEnum getNewline(java.lang.String newLineKey)
Returns NewlineEnum object for the corresponding key.

Parameters:
newLineKey - the key of the end of line.
Returns:
the end of line for the input key.

containsNewline

public static boolean containsNewline(java.lang.String encodKey)
Specifies if the input end of line is among predefined ends of line NewlineEnum.

Parameters:
encodKey - the key of the end of line.
Returns:
true if the input end of line is present in the predefined ends of line NewlineEnum.

getKey

public java.lang.String getKey()