org.jvnet.jaxb2_commons.util
Class FieldAccessorUtils

java.lang.Object
  extended by org.jvnet.jaxb2_commons.util.FieldAccessorUtils

public class FieldAccessorUtils
extends Object


Constructor Summary
FieldAccessorUtils()
           
 
Method Summary
static com.sun.codemodel.JFieldVar field(com.sun.tools.xjc.outline.FieldOutline fieldOutline)
          Returns the field for the given field outline or null if no such field exists.
static com.sun.codemodel.JMethod getter(com.sun.tools.xjc.outline.FieldOutline fieldOutline)
           
static com.sun.codemodel.JMethod issetter(com.sun.tools.xjc.outline.FieldOutline fieldOutline)
          Returns the isSetProperty() method for the given field outline or null if no such method exists.
static com.sun.codemodel.JMethod setter(com.sun.tools.xjc.outline.FieldOutline fieldOutline)
          Returns the setProperty(...) method for the given field outline or null if no such method exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldAccessorUtils

public FieldAccessorUtils()
Method Detail

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 the isSetProperty() method for the given field outline or null if no such method exists.

Parameters:
fieldOutline - field outline.
Returns:
The isSetProperty() method for the given field outline or null if 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 or null if no such field exists.

Parameters:
fieldOutline - field outline.
Returns:
The field for the given field outline or null if no such field exists.

setter

public static com.sun.codemodel.JMethod setter(com.sun.tools.xjc.outline.FieldOutline fieldOutline)
Returns the setProperty(...) method for the given field outline or null if no such method exists.

Parameters:
fieldOutline - field outline.
Returns:
The setProperty(...) method for the given field outline or null if no such method exists.


Copyright © 2005-2012. All Rights Reserved.