Package org.jvnet.jaxb2_commons.util
Class FieldAccessorUtils
java.lang.Object
org.jvnet.jaxb2_commons.util.FieldAccessorUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.sun.codemodel.JFieldVarfield(com.sun.tools.xjc.outline.FieldOutline fieldOutline) Returns the field for the given field outline ornullif no such field exists.static com.sun.codemodel.JMethodgetter(com.sun.tools.xjc.outline.FieldOutline fieldOutline) static com.sun.codemodel.JMethodissetter(com.sun.tools.xjc.outline.FieldOutline fieldOutline) Returns theisSetProperty()method for the given field outline ornullif no such method exists.static com.sun.codemodel.JMethodsetter(com.sun.tools.xjc.outline.FieldOutline fieldOutline) Returns thesetProperty(...)method for the given field outline ornullif no such method exists.
-
Constructor Details
-
FieldAccessorUtils
public FieldAccessorUtils()
-
-
Method Details
-
getter
public static com.sun.codemodel.JMethod getter(com.sun.tools.xjc.outline.FieldOutline fieldOutline) -
issetter
public static com.sun.codemodel.JMethod issetter(com.sun.tools.xjc.outline.FieldOutline fieldOutline) Returns theisSetProperty()method for the given field outline ornullif no such method exists.- Parameters:
fieldOutline- field outline.- Returns:
- The
isSetProperty()method for the given field outline ornullif no such method exists.
-
field
public static com.sun.codemodel.JFieldVar field(com.sun.tools.xjc.outline.FieldOutline fieldOutline) Returns the field for the given field outline ornullif no such field exists.- Parameters:
fieldOutline- field outline.- Returns:
- The field for the given field outline or
nullif no such field exists.
-
setter
public static com.sun.codemodel.JMethod setter(com.sun.tools.xjc.outline.FieldOutline fieldOutline) Returns thesetProperty(...)method for the given field outline ornullif no such method exists.- Parameters:
fieldOutline- field outline.- Returns:
- The
setProperty(...)method for the given field outline ornullif no such method exists.
-