com.abra.j2xb.beans.propertyEditors
Interface MOPropertyEditorRegistry

All Known Implementing Classes:
MOPropertyEditorRegistryMapImpl

public interface MOPropertyEditorRegistry

Registry for MOPropertyEditor. To extend the library and support mapping additional Java classes to XML simple types, register the new MOPropertyEditor instances with the registerPropertyEditor(Class, MOPropertyEditor) method.

Since:
JDK1.5
Version:
1.0, Dec 10, 2007
Author:
Yoav Abrahami
See Also:
MOPropertyEditor

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
 

Method Detail

registerPropertyEditor

void registerPropertyEditor(java.lang.Class clazz,
                            MOPropertyEditor pe)
registers a new MO property editor MOPropertyEditor to support new primitive types

Parameters:
clazz - - the property type
pe - - the property editor

get

MOPropertyEditor get(java.lang.Class clazz)
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.

Parameters:
clazz - - the property type
Returns:
a property editor, or null if non is found

has

boolean has(java.lang.Class clazz)
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.

Parameters:
clazz - - the property class
Returns:
true if a property editor is found.


Copyright © 2008. All Rights Reserved.