com.arsdigita.util
Class TypedText
java.lang.Object
com.arsdigita.util.TypedText
- public class TypedText
- extends Object
A general utility class for text which carries additional type
information. Specifically, we recognize plain text, HTML, and
preformatted text.
- Author:
- Kevin Scaldeferri
versionId
public static final String versionId
- See Also:
- Constant Field Values
TEXT_HTML
public static final String TEXT_HTML
- See Also:
- Constant Field Values
TEXT_PLAIN
public static final String TEXT_PLAIN
- See Also:
- Constant Field Values
TEXT_PREFORMATTED
public static final String TEXT_PREFORMATTED
- See Also:
- Constant Field Values
TypedText
public TypedText(String text,
String type)
getText
public String getText()
setText
public void setText(String text)
getType
public String getType()
setType
public void setType(String type)
getHTMLText
public String getHTMLText()
- Generates a version of the text renderable as HTML based on
the type.
equals
public boolean equals(Object o)
- Returns true if the text and type are both equal
hashCode
public int hashCode()
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC