org.openregistry.core.web
Class IdentifierTypeConverter

java.lang.Object
  extended by org.springframework.binding.convert.converters.StringToObject
      extended by org.openregistry.core.web.AbstractConverter
          extended by org.openregistry.core.web.IdentifierTypeConverter
All Implemented Interfaces:
org.springframework.binding.convert.converters.Converter, org.springframework.binding.convert.converters.TwoWayConverter

public final class IdentifierTypeConverter
extends AbstractConverter

Created by IntelliJ IDEA. User: Nancy Mond Date: Apr 28, 2009 Time: 3:33:37 PM To change this template use File | Settings | File Templates.


Field Summary
 
Fields inherited from class org.openregistry.core.web.AbstractConverter
logger
 
Constructor Summary
IdentifierTypeConverter(ReferenceRepository referenceRepository)
           
 
Method Summary
protected  java.lang.String getToStringInternal(java.lang.Object o)
          Returns the object as a String.
protected  java.lang.Object toObject(java.lang.String string, java.lang.Class targetClass)
           
 
Methods inherited from class org.openregistry.core.web.AbstractConverter
getReferenceRepository, toString
 
Methods inherited from class org.springframework.binding.convert.converters.StringToObject
convertSourceToTargetClass, convertTargetToSourceClass, getSourceClass, getTargetClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifierTypeConverter

public IdentifierTypeConverter(ReferenceRepository referenceRepository)
Method Detail

toObject

protected java.lang.Object toObject(java.lang.String string,
                                    java.lang.Class targetClass)
                             throws java.lang.Exception
Specified by:
toObject in class org.springframework.binding.convert.converters.StringToObject
Throws:
java.lang.Exception

getToStringInternal

protected java.lang.String getToStringInternal(java.lang.Object o)
Description copied from class: AbstractConverter
Returns the object as a String.

Specified by:
getToStringInternal in class AbstractConverter
Parameters:
o - the object. CANNOT be NULL.
Returns:
the string.


Copyright © 2009-2012 JA-SIG, Inc.. All Rights Reserved.