org.openregistry.core.web
Class AbstractConverter

java.lang.Object
  extended by org.springframework.binding.convert.converters.StringToObject
      extended by org.openregistry.core.web.AbstractConverter
All Implemented Interfaces:
org.springframework.binding.convert.converters.Converter, org.springframework.binding.convert.converters.TwoWayConverter
Direct Known Subclasses:
CampusConverter, CountryConverter, IdentifierTypeConverter, RegionConverter, TypeConverter

public abstract class AbstractConverter
extends org.springframework.binding.convert.converters.StringToObject

Since:
0.1
Version:
$Revision$ $Date$

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

Field Detail

logger

protected org.slf4j.Logger logger
Constructor Detail

AbstractConverter

protected AbstractConverter(java.lang.Class converterClass,
                            ReferenceRepository referenceRepository)
Method Detail

getReferenceRepository

protected final ReferenceRepository getReferenceRepository()

toString

protected final java.lang.String toString(java.lang.Object o)
                                   throws java.lang.Exception
Specified by:
toString in class org.springframework.binding.convert.converters.StringToObject
Throws:
java.lang.Exception

getToStringInternal

protected abstract java.lang.String getToStringInternal(java.lang.Object o)
Returns the object as a String.

Parameters:
o - the object. CANNOT be NULL.
Returns:
the string.


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