org.jboss.portal.server.util
Class ServerObjectIDConverter

java.lang.Object
  extended by org.jboss.portal.server.util.ServerObjectIDConverter
All Implemented Interfaces:
Converter

public class ServerObjectIDConverter
extends java.lang.Object
implements Converter


Field Summary
static ServerObjectIDConverter instance
           
 
Constructor Summary
ServerObjectIDConverter()
           
 
Method Summary
 boolean accept(java.lang.Class clazz)
          Return true if the converter accepts the class for conversion.
static ServerObjectID decode(java.lang.String value)
           
 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 ServerObjectIDConverter instance
Constructor Detail

ServerObjectIDConverter

public ServerObjectIDConverter()
Method Detail

decode

public static ServerObjectID decode(java.lang.String value)
                             throws NullConversionException,
                                    FormatConversionException
Throws:
NullConversionException
FormatConversionException

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