Class SingleField.Accessor
java.lang.Object
com.sun.tools.xjc.generator.bean.field.SingleField.Accessor
- All Implemented Interfaces:
FieldAccessor
- Enclosing class:
- SingleField
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn an expression that evaluates to true only when this field has a set value(s).void
unsetValues
(JBlock body) Generates a code fragment to remove any "set" value and move this field to the "unset" state.
-
Constructor Details
-
Accessor
-
-
Method Details
-
unsetValues
Description copied from interface:FieldAccessor
Generates a code fragment to remove any "set" value and move this field to the "unset" state.- Parameters:
body
- The code will be appended at the end of this block.
-
hasSetValue
Description copied from interface:FieldAccessor
Return an expression that evaluates to true only when this field has a set value(s).- Returns:
- null if the isSetXXX/unsetXXX method does not make sense for the given field.
-