org.norther.tammi.core.rt
Class DefaultIdentityConverter
java.lang.Object
org.norther.tammi.core.base.Adaptee
org.norther.tammi.core.converter.DefaultObjectConverter
org.norther.tammi.core.rt.DefaultIdentityConverter
- All Implemented Interfaces:
- Serializable, NotificationBroadcaster, NotificationEmitter, Manageable, MBeanDelegate, ObjectConverter
public class DefaultIdentityConverter
- extends DefaultObjectConverter
An identity converter.
- Author:
- Ilkka Priha
- See Also:
- Serialized Form
| Methods inherited from class org.norther.tammi.core.converter.DefaultObjectConverter |
fromLocalizedObject, getFormatPattern, getInstance, getInstance, getInstance, getLocalizedPattern, getResourceFinderName, postmanaged, setResourceFinderName, toComponentString, toLocalizedObject, toString, toString, toString, toStrings, toStrings, toStrings, unmanaged |
| Methods inherited from class org.norther.tammi.core.base.Adaptee |
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unregister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IDENTITY_TYPE
public static final String IDENTITY_TYPE
- The identity type.
DefaultIdentityConverter
public DefaultIdentityConverter()
- Constructs a new converter.
isConversionSupported
public boolean isConversionSupported(String className)
- Description copied from interface:
ObjectConverter
- Checks whether conversion of the specified class is supported.
- Specified by:
isConversionSupported in interface ObjectConverter- Overrides:
isConversionSupported in class DefaultObjectConverter
- Parameters:
className - the class name.
- Returns:
- true for a supported conversion, false otherwise.
getComponentInstance
protected Object getComponentInstance(String className,
Object object,
String pattern,
Object minValue,
Object maxValue)
throws ConversionException
- Description copied from class:
DefaultObjectConverter
- Gets an instance of the named component class by converting the source
object and optionally applying the specified pattern and limits.
- Overrides:
getComponentInstance in class DefaultObjectConverter
- Parameters:
className - the name of the class.object - the source object.pattern - an optional conversion pattern.minValue - an optional minimum value.maxValue - an optional maximum value.
- Returns:
- the component instance.
- Throws:
ConversionException - if conversion fails.
Copyright © 2004 The Norther Organization. All rights reserved.