com.bankframe.fe.wml
Class WMLWidget

java.lang.Object
  extended by com.bankframe.fe.wml.WMLWidget
Direct Known Subclasses:
Card, Comment, Deck, Hidden, Image, MenuOption, Paragraph, Password, Postfield, Text

public abstract class WMLWidget
extends Object

This class is the WML widget abstract class.


Constructor Summary
WMLWidget()
          WMLWidget constructor comment.
 
Method Summary
 String quote(int data)
          Add quotes around the value, i.e.
 String quote(String data)
          Add quotes around the value, i.e.
 String replaceSpacesWithUnderscores(String oldString)
          Replace all instances of spaces with an underscore.
abstract  String toWML()
          This method returns a WML representation of this widget.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMLWidget

public WMLWidget()
WMLWidget constructor comment.

Method Detail

quote

public String quote(int data)
Add quotes around the value, i.e. \" not " so that it can be used in string literals.

Parameters:
data - int to quote
Returns:
a string represention of the int, qouted

quote

public String quote(String data)
Add quotes around the value, i.e. \" not " so that it can be used in string literals.

Parameters:
data - the string to quote
Returns:
The quoted string

replaceSpacesWithUnderscores

public String replaceSpacesWithUnderscores(String oldString)
Replace all instances of spaces with an underscore. XML syntax does not allow spaces in attribute names.

Parameters:
oldString - the string without quotes
Returns:
the new String with double quotes appended at either end.

toWML

public abstract String toWML()
This method returns a WML representation of this widget.

Returns:
a string containing WML markup


Copyright © 2005, 2007, Oracle. All rights reserved.