org.jboss.portal.portlet
Class PortletModeConverter

java.lang.Object
  extended by org.jboss.portal.portlet.PortletModeConverter
All Implemented Interfaces:
Converter

public class PortletModeConverter
extends java.lang.Object
implements Converter


Field Summary
static Converter INSTANCE
           
 
Constructor Summary
PortletModeConverter()
           
 
Method Summary
 boolean accept(java.lang.Class clazz)
          Return true if the converter accepts the class for conversion.
 java.lang.Object toObject(java.lang.String value)
          String to object conversion.
 java.lang.String toString(java.lang.Object value)
          Convert the object to the stored value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final Converter INSTANCE
Constructor Detail

PortletModeConverter

public PortletModeConverter()
Method Detail

accept

public boolean accept(java.lang.Class clazz)
Description copied from interface: Converter
Return true if the converter accepts the class for conversion.

Specified by:
accept in interface Converter

toObject

public java.lang.Object toObject(java.lang.String value)
                          throws NullConversionException,
                                 FormatConversionException
Description copied from interface: Converter
String to object conversion.

Specified by:
toObject in interface Converter
Throws:
NullConversionException - if the value nullity prevent the conversion
FormatConversionException - if the value cannot be converted

toString

public java.lang.String toString(java.lang.Object value)
                          throws NullConversionException,
                                 FormatConversionException
Description copied from interface: Converter
Convert the object to the stored value.

Specified by:
toString in interface Converter
Throws:
NullConversionException - if the value nullity prevent the conversion
FormatConversionException - if the value cannot be converted