|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeHandler
Users that wish to write their own X2JB Attribute Handler have to implement this interface.
Each attribute handler implementation have to:
ElementHandler
,
BindingException
Method Summary | |
---|---|
java.lang.Object |
bind(org.w3c.dom.Attr attribute,
java.lang.Class<?> clazz)
Processes the XML attribute and returns the object wrapping its content. |
java.lang.Object |
getDefault(java.lang.String defaultValue,
java.lang.Class<?> clazz)
Returns default value associated with clazz type. |
Method Detail |
---|
java.lang.Object bind(org.w3c.dom.Attr attribute, java.lang.Class<?> clazz)
attribute
- XML attribute to be wrappedclazz
- class type which instance to return
java.lang.Object getDefault(java.lang.String defaultValue, java.lang.Class<?> clazz)
clazz
type.
defaultValue
- default value (can be null)clazz
- class type which default instance have to be returned
clazz
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |