Interface ElementBindingHandler
- All Superinterfaces:
ElementMetaBase
- All Known Implementing Classes:
AbstractElementBindingHandler
,ElementClassAttributeBindingHandler
,ElementClassBindingHandler
,ElementInterfaceBindingHandler
,ElementModuleBindingHandler
,ElementNamespaceBindingHandler
,ElementRefectionBindingHandler
,StringSplitConverterBindingHandler
,StringSplitConverterStepBindingHandler
Bind ElementObjects together.
This interface is used to bind a parent and child ElementObject together.
For example; when both objects are an JComponent then we can add the child to the parent
with the method: ((JComponent)parent).add((JComponent)child);
- Version:
- 1.0 Aug 17, 2005
- Author:
- Willem Cazander
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Do the binding of this child to the parent object.void
createChilderen
(Element parentElement) Creates the childeren of the parent object.Class<?>[]
Class
<?> Methods inherited from interface org.x4o.xml.element.ElementMetaBase
getDescription, getId, setDescription, setId
-
Method Details
-
getBindParentClass
Class<?> getBindParentClass()- Returns:
- Returns the parent classes which this binding handler can do.
-
getBindChildClasses
Class<?>[] getBindChildClasses()- Returns:
- Returns array of child classes which this binding handler can do.
-
bindChild
Do the binding of this child to the parent object.- Parameters:
childElement
- The child element to bind to the parent.'- Throws:
ElementBindingHandlerException
- When binding could not happen.
-
createChilderen
Creates the childeren of the parent object.- Parameters:
parentElement
- The parent element to create the childeren from.'- Throws:
ElementBindingHandlerException
- When binding could not happen.
-