com.abra.j2xb.beans.propertyEditors
Class MOPropertyEditorRegistryMapImpl

java.lang.Object
  extended by com.abra.j2xb.beans.propertyEditors.MOPropertyEditorRegistryMapImpl
All Implemented Interfaces:
MOPropertyEditorRegistry

public class MOPropertyEditorRegistryMapImpl
extends java.lang.Object
implements MOPropertyEditorRegistry

Created by IntelliJ IDEA. User: YOAVA Date: May 24, 2007 Time: 3:37:38 PM To change this template use File | Settings | File Templates.

See Also:
MOPropertyEditorRegistry

Constructor Summary
MOPropertyEditorRegistryMapImpl()
           
 
Method Summary
 MOPropertyEditor get(java.lang.Class clazz)
          gets a MO property editor MOPropertyEditor for the given class.
 boolean has(java.lang.Class clazz)
          checks if the registry knows of a property editor for this class.
 void registerPropertyEditor(java.lang.Class clazz, MOPropertyEditor pe)
          registers a new MO property editor MOPropertyEditor to support new primitive types
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MOPropertyEditorRegistryMapImpl

public MOPropertyEditorRegistryMapImpl()
Method Detail

registerPropertyEditor

public void registerPropertyEditor(java.lang.Class clazz,
                                   MOPropertyEditor pe)
Description copied from interface: MOPropertyEditorRegistry
registers a new MO property editor MOPropertyEditor to support new primitive types

Specified by:
registerPropertyEditor in interface MOPropertyEditorRegistry
Parameters:
clazz - - the property type
pe - - the property editor

get

public MOPropertyEditor get(java.lang.Class clazz)
Description copied from interface: MOPropertyEditorRegistry
gets a MO property editor MOPropertyEditor for the given class. If the class is not registered, the method will search for a super-class of it that is registered.

Specified by:
get in interface MOPropertyEditorRegistry
Parameters:
clazz - - the property type
Returns:
a property editor, or null if non is found

has

public boolean has(java.lang.Class clazz)
Description copied from interface: MOPropertyEditorRegistry
checks if the registry knows of a property editor for this class. If the class is not registered, the method will search for a super-class of it that is registered.

Specified by:
has in interface MOPropertyEditorRegistry
Parameters:
clazz - - the property class
Returns:
true if a property editor is found.


Copyright © 2008. All Rights Reserved.