| java.lang.Object org.x2jb.bind.HandlersRepository
Method Summary | |
static Object | bindAttributeToObject(Class clazz, Attr value, Class handlerClass) | static Object | bindElementToObject(Class clazz, Element value, Class handlerClass) | static Object | bindElementsToObjectArray(Class clazz, Element[] values, Class handlerClass) | static Object | getDefaultValue(Class clazz, BindingDefinition binding) | static Object | getHandler(Class clazz, BindingDefinition binding, boolean failIfNotFound) | static boolean | handlerExists(Class clazz, BindingDefinition binding, boolean failIfNotFound) |
bindAttributeToObject | static Object bindAttributeToObject(Class clazz, Attr value, Class handlerClass) throws BindingException(Code) | | Binds XML attribute value to object
Parameters: clazz - class which instance will be created Parameters: value - attribute which value will be used for object creation Parameters: handlerName - name of the handler that will be used for binding process instance of clazz class throws: BindingException - if there was a problem during binding process |
bindElementToObject | static Object bindElementToObject(Class clazz, Element value, Class handlerClass) throws BindingException(Code) | | Binds XML element to object
Parameters: clazz - class which instance will be created Parameters: value - element which content will be used for object creation Parameters: handlerName - name of the handler that will be used for binding process instance of clazz class throws: BindingException - if there was a problem during binding process |
bindElementsToObjectArray | static Object bindElementsToObjectArray(Class clazz, Element[] values, Class handlerClass) throws BindingException(Code) | | Binds XML element array to object array
Parameters: clazz - class which instances will be created and stored in returned array Parameters: values - XML elements which content will be used for objects creation Parameters: handlerName - name of the handler that will be used for binding process one dimensional array of instances of clazz class throws: BindingException - if there was a problem during binding process |
getDefaultValue | static Object getDefaultValue(Class clazz, BindingDefinition binding) throws BindingException(Code) | | Returns default value associated with the missing XML node
Parameters: clazz - class which instance will be created Parameters: BindingDefinition - binding that will be used for binding process of default value instance of clazz class throws: BindingException - if there was a problem during binding process |
getHandler | static Object getHandler(Class clazz, BindingDefinition binding, boolean failIfNotFound) throws BindingException(Code) | | Returns handler instance if handler specified in binding exists, null otherwise
Parameters: clazz - class which instance is created by returned handler Parameters: binding - used for obtaining informations about handler to be returned Parameters: failIfNotFound - if set to true and handler doesn't exist, BindingException will be thrown handler instance if handler specified in binding exists, null otherwise throws: BindingException - if handler specified in binding wasn't found and failIfNotFound is set to true |
handlerExists | static boolean handlerExists(Class clazz, BindingDefinition binding, boolean failIfNotFound) throws BindingException(Code) | | Returns true if handler specified in binding exists, false otherwise
Parameters: clazz - class which instance is created by returned handler Parameters: binding - used for obtaining informations about handler to be returned Parameters: failIfNotFound - if set to true and handler doesn't exist, BindingException will be thrown true if handler specified in binding exists, false otherwise throws: BindingException - if handler specified in binding wasn't find and failIfNotFound is set to true |
|
|