org.eclipse.rse.ui
Class MassagerFoldCaseUnlessQuoted
java.lang.Object
org.eclipse.rse.ui.MassagerFoldCase
org.eclipse.rse.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.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
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.
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
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.