|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.common.propertyeditor.PropertyEditors
A collection of PropertyEditor utilities.
Allows editors to be nested sub-classes named PropertyEditor.
Constructor Summary | |
PropertyEditors()
|
Method Summary | |
static void |
appendEditorSearchPath(List names)
Append package names to the property editor search path. |
static void |
appendEditorSearchPath(String name)
Append a package name to the property editor search path. |
static void |
appendEditorSearchPath(String[] names)
Append package names to the property editor search path. |
static PropertyEditor |
findEditor(Class type)
Locate a value editor for a given target type. |
static PropertyEditor |
findEditor(String typeName,
ClassLoader classLoader)
Locate a value editor for a given target type. |
static PropertyEditor |
getEditor(Class type)
Get a value editor for a given target type. |
static List |
getEditorSearchPath()
Gets the package names that will be searched for property editors. |
static void |
registerEditor(Class type,
Class editorType)
Register an editor class to be used to editor values of a given target class. |
static void |
registerEditor(String typeName,
String editorTypeName)
Register an editor class to be used to editor values of a given target class. |
static void |
setEditorSearchPath(List path)
Sets the package names that will be searched for property editors. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyEditors()
Method Detail |
public static PropertyEditor findEditor(Class type)
type
- The class of the object to be edited.
public static PropertyEditor findEditor(String typeName, ClassLoader classLoader) throws ClassNotFoundException
typeName
- The class name of the object to be edited.
ClassNotFoundException
public static PropertyEditor getEditor(Class type)
type
- The class of the object to be edited.
PropertyEditorException
- No editor was found.public static void registerEditor(Class type, Class editorType)
type
- The class of the objetcs to be edited.editorType
- The class of the editor.public static void registerEditor(String typeName, String editorTypeName) throws ClassNotFoundException
typeName
- The classname of the objetcs to be edited.editorTypeName
- The class of the editor.
ClassNotFoundException
public static List getEditorSearchPath()
public static void setEditorSearchPath(List path)
path
- The serach path.public static void appendEditorSearchPath(List names)
names
- The package names to append.public static void appendEditorSearchPath(String[] names)
names
- The package names to append.public static void appendEditorSearchPath(String name)
name
- The package name to append.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |