Remote Systems
v6.4.1

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

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

public class MassagerAddQuotes
extends Object
implements ISystemMassager

This massager will take a string an add quotes to it by wrapping the string in the quote character and doubling any interior instances of the quote character.


Field Summary
static String Copyright
           
 
Constructor Summary
MassagerAddQuotes()
          Construct a new instance of the massager.
MassagerAddQuotes(char quote)
          Construct a new instance of the massager.
 
Method Summary
 String massage(String text)
          Quotes the string by surround the original string with the quote character and doubling any internal occurences of the character.
 
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

MassagerAddQuotes

public MassagerAddQuotes()
Construct a new instance of the massager. This instance assumes the quote character is the apostrophe '\''.


MassagerAddQuotes

public MassagerAddQuotes(char quote)
Construct a new instance of the massager. This instance uses the supplied character as the quoting character.

Parameters:
quote - the quote character to use in quoting strings
Method Detail

massage

public String massage(String text)
Quotes the string by surround the original string with the quote character and doubling any internal occurences of the character.

Specified by:
massage in interface ISystemMassager
Parameters:
text - the string to be quoted
Returns:
the quoted string
See Also:
ISystemMassager.massage(String)

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.