Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui
Class MassagerFoldCaseUnlessQuoted

java.lang.Object
  extended bycom.ibm.etools.systems.core.ui.MassagerFoldCase
      extended bycom.ibm.etools.systems.core.ui.MassagerFoldCaseUnlessQuoted
All Implemented Interfaces:
ISystemMassager

public class MassagerFoldCaseUnlessQuoted
extends MassagerFoldCase

This massager folds the input text into either uppercase or lowercase, but ONLY if the given input is not delimited. The default delimiter checked for is the double quote character, but this can be changed by a setter method.


Field Summary
static String Copyright
           
 
Constructor Summary
MassagerFoldCaseUnlessQuoted()
          Constructor using uppercase and using a double quote as delimiter
MassagerFoldCaseUnlessQuoted(boolean foldToUpperCase)
          Constructor using given case direction, using a double quote as delimiter
MassagerFoldCaseUnlessQuoted(boolean foldToUpperCase, char delimiter)
          Constructor using given case direction, using given delimiter
 
Method Summary
 char getDelimiter()
          Get the delimiter character
 void setDelimiter(char delimiter)
          Set the delimiter character
protected  String toLowerCase(String input)
          Overrridable method that actually does the lowercasing
protected  String toUpperCase(String input)
          Overrridable method that actually does the uppercasing
 
Methods inherited from class com.ibm.etools.systems.core.ui.MassagerFoldCase
getFoldToUpperCase, getTrimBlanks, massage, setFoldToUpperCase, setTrimBlanks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

MassagerFoldCaseUnlessQuoted

public MassagerFoldCaseUnlessQuoted()
Constructor using uppercase and using a double quote as delimiter


MassagerFoldCaseUnlessQuoted

public MassagerFoldCaseUnlessQuoted(boolean foldToUpperCase)
Constructor using given case direction, using a double quote as delimiter

Parameters:
foldToUpperCase - - whether to fold to uppercase (true) or lowercase (false).

MassagerFoldCaseUnlessQuoted

public MassagerFoldCaseUnlessQuoted(boolean foldToUpperCase,
                                    char delimiter)
Constructor using given case direction, using given delimiter

Parameters:
foldToUpperCase - - whether to fold to uppercase (true) or lowercase (false).
delimiter - - char to check if text is enclosed with. If it is, then no folding is done.
Method Detail

setDelimiter

public void setDelimiter(char delimiter)
Set the delimiter character

Parameters:
delimiter - - char to check if text is enclosed with. If it is, then no folding is done.

getDelimiter

public char getDelimiter()
Get the delimiter character


toUpperCase

protected String toUpperCase(String input)
Overrridable method that actually does the uppercasing

Overrides:
toUpperCase in class MassagerFoldCase

toLowerCase

protected String toLowerCase(String input)
Overrridable method that actually does the lowercasing

Overrides:
toLowerCase in class MassagerFoldCase

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.