no.sesat.search.datamodel.generic
Class StringDataObjectSupport

java.lang.Object
  extended by no.sesat.search.datamodel.generic.StringDataObjectSupport
All Implemented Interfaces:
Serializable, StringDataObject

@DataObject
public class StringDataObjectSupport
extends Object
implements StringDataObject

This helper class provides a utility implementation of the no.sesat.search.datamodel.StringDataObject interface.

Since this class directly implements the StringDataObject interface, the class can, and is intended to be used either by subclassing this implementation, or via ad-hoc delegation of an instance of this class from another.

Version:
$Id: StringDataObjectSupport.java 7225 2009-04-09 00:32:20Z ssmiweve $
See Also:
Serialized Form

Constructor Summary
StringDataObjectSupport(String string)
           
 
Method Summary
 String getIso88591UrlEncoded()
          The ISO-88591 url encoded variant of the string.
 String getString()
          The plain value of the string.
 String getUtf8UrlEncoded()
          The UTF8 url encoded variant of the string.
 String getXmlEscaped()
          The xml escaped variant of the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringDataObjectSupport

public StringDataObjectSupport(String string)
Parameters:
string -
Method Detail

getString

public String getString()
Description copied from interface: StringDataObject
The plain value of the string. Disallowed during rendering for security reasons.

Specified by:
getString in interface StringDataObject
Returns:

getUtf8UrlEncoded

public String getUtf8UrlEncoded()
Description copied from interface: StringDataObject
The UTF8 url encoded variant of the string. Encoding must meet those requirements stated in java.net.URLEncoder

Specified by:
getUtf8UrlEncoded in interface StringDataObject
Returns:
UTF8 url encoded variant of the string.

getIso88591UrlEncoded

public String getIso88591UrlEncoded()
Description copied from interface: StringDataObject
The ISO-88591 url encoded variant of the string. Encoding must meet those requirements stated in java.net.URLEncoder

Specified by:
getIso88591UrlEncoded in interface StringDataObject
Returns:
ISO-88591 url encoded variant of the string.

getXmlEscaped

public String getXmlEscaped()
Description copied from interface: StringDataObject
The xml escaped variant of the string.

Specified by:
getXmlEscaped in interface StringDataObject
Returns:
xmlescaped variant of the string.


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.