com.lutris.html
Class HtmlString
java.lang.Object
|
+--com.lutris.html.HtmlString
- public class HtmlString
- extends java.lang.Object
- implements java.io.Serializable
The HtmlString
class contains a String and adds a
toHtml() method. It is intended to be used in Jolt presentations
and referenced through JoltFields. The presence of the toHtml()
method prevents the default behavour of HTML encoding
the string contents to take place.
- Since:
- LBS1.8
- Version:
- 1.0 (File $Revision: 1.7.12.1 $)
- See Also:
- Serialized Form
Constructor Summary |
HtmlString(java.lang.String value)
Allocates a new string that contains the same sequence of
characters as the string argument. |
HtmlString(java.lang.StringBuffer buffer)
Allocates a new String that contains the same sequence
characters contained in the string buffer argument. |
Method Summary |
java.lang.String |
toHtml()
Returns the contained String object. |
java.lang.String |
toString()
Returns the contained String object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
HtmlString
public HtmlString(java.lang.String value)
- Allocates a new string that contains the same sequence of
characters as the string argument.
- Parameters:
value
- a String
.
HtmlString
public HtmlString(java.lang.StringBuffer buffer)
- Allocates a new
String
that contains the same sequence
characters contained in the string buffer argument.
- Parameters:
buffer
- a StringBuffer
.
toString
public java.lang.String toString()
- Returns the contained
String
object.
- Overrides:
- toString in class java.lang.Object
toHtml
public java.lang.String toHtml()
- Returns the contained
String
object.