|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.ui.MassagerRemoveQuotes
public class MassagerRemoveQuotes
Utility class used by UI widgets to format a srcpf or member Description string.
It checks to see if the string is legally quoted, and if not, it returns it as is. A legally quoted
string is one which begins and ends with single quotes, and where all single quotes inside the
string are escaped with another single quote. If the string is legally quoted, it de-quotes it
(hence the name). Dequoting means remove the single quotes, and remove any escape quotes
from the inside of the string.
There is also a general constructor that takes in the quoting character, the character to escape,
and the character to use as an escape charcter. It also takes n a boolean flag that decides wether
or not the string has to be quoted before this massager actually does the job.
Constructor Summary | |
---|---|
MassagerRemoveQuotes()
Default constructor for MassagerRemoveQuotes. |
|
MassagerRemoveQuotes(char quoteChar,
char charToEscape,
char escapeChar,
boolean mustBeQuoted)
Generic constructor. |
Method Summary | |
---|---|
protected boolean |
isLegalString(String text)
Checks to see if we have a valid string. |
protected boolean |
isQuoted(String text)
Returns true if string is single quoted. |
String |
massage(String text)
Given the user-entered input, return the massaged version of it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MassagerRemoveQuotes()
public MassagerRemoveQuotes(char quoteChar, char charToEscape, char escapeChar, boolean mustBeQuoted)
Method Detail |
---|
public String massage(String text)
ISystemMassager
massage
in interface ISystemMassager
protected boolean isQuoted(String text)
protected boolean isLegalString(String text)
|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |