Project: stp

com.ibm.rational.wvcm.stp.cc
Enum CcView.TextMode

Object
  extended by Enum<CcView.TextMode>
      extended by CcView.TextMode
All Implemented Interfaces:
com.ibm.rational.wvcm.stpex.StpExEnumeration, Serializable, Comparable<CcView.TextMode>
Enclosing interface:
CcView

public static enum CcView.TextMode
extends Enum<CcView.TextMode>
implements com.ibm.rational.wvcm.stpex.StpExEnumeration

Values for view text mode


Enum Constant Summary
INSERT_CR
          An insert_cr interop text mode.
NL_TO_CR
          An nl_to_cr interop text mode.
STRIP_CR
          A strip_cr interop text mode.
TRANSPARENT
          A transparent interop text mode.
 
Method Summary
 String toString()
           
static CcView.TextMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CcView.TextMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSERT_CR

public static final CcView.TextMode INSERT_CR
An insert_cr interop text mode. The view converts NL line terminators to the CR NL sequence when reading from a VOB, and CR NL line terminators to single NL characters when writing to the VOB.


NL_TO_CR

public static final CcView.TextMode NL_TO_CR
An nl_to_cr interop text mode. The view converts NL line terminators to CR characters when reading from a VOB, and CR line terminators to single NL characters wehn writing to the VOB.


STRIP_CR

public static final CcView.TextMode STRIP_CR
A strip_cr interop text mode. The view converts CR NL line terminators to NL when reading from a VOB, and NL line terminators back to the CR NL sequence when writing to the VOB.


TRANSPARENT

public static final CcView.TextMode TRANSPARENT
A transparent interop text mode. The line terminator for text files is a single NL character. The view does not transform text file line terminators in any way. This is the default text mode if no value is set upon view creation.

Method Detail

toString

public String toString()
Overrides:
toString in class Enum<CcView.TextMode>

valueOf

public static CcView.TextMode 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

values

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

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

Generated Sat 15-Jan-2011 04:14 AM

Copyright © IBM 2011. All rights reserved.