Package org.intermine.metadata
Class TypeUtil.FieldInfo
- java.lang.Object
-
- org.intermine.metadata.TypeUtil.FieldInfo
-
- Enclosing class:
- TypeUtil
public static class TypeUtil.FieldInfo extends java.lang.Object
Inner class to hold info on a field.- Author:
- Matthew Wakeling, Andrew Varley
-
-
Constructor Summary
Constructors Constructor Description FieldInfo(java.lang.String name, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.reflect.Method proxySetter, java.lang.reflect.Method proxyGetter, java.lang.reflect.Method adder)
Construct a new FieldInfo object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.Method
getAdder()
Returns the adder Method.java.lang.Class<? extends FastPathObject>
getElementType()
Returns the collection element type of the field.java.lang.reflect.Method
getGetter()
Returns the getter Method.java.lang.String
getName()
Returns the field namejava.lang.reflect.Method
getProxyGetter()
Returns the proxyGetter Method.java.lang.reflect.Method
getProxySetter()
Returns the proxySetter Method.java.lang.reflect.Method
getSetter()
Returns the setter Method.java.lang.Class<?>
getType()
Returns the type of the field.
-
-
-
Constructor Detail
-
FieldInfo
public FieldInfo(java.lang.String name, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.reflect.Method proxySetter, java.lang.reflect.Method proxyGetter, java.lang.reflect.Method adder)
Construct a new FieldInfo object.- Parameters:
name
- the field namegetter
- the getter Method to retrieve the valuesetter
- the setter Method to alter the valueproxySetter
- the setter Method to set the value to a ProxyReferenceproxyGetter
- the getter Method to get the value without dereferencing ProxyReferencesadder
- the adder Method to add elements to a collection
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the field name- Returns:
- a String
-
getGetter
public java.lang.reflect.Method getGetter()
Returns the getter Method.- Returns:
- a getter Method
-
getSetter
public java.lang.reflect.Method getSetter()
Returns the setter Method.- Returns:
- a setter Method
-
getProxySetter
public java.lang.reflect.Method getProxySetter()
Returns the proxySetter Method.- Returns:
- a proxySetter Method
-
getProxyGetter
public java.lang.reflect.Method getProxyGetter()
Returns the proxyGetter Method.- Returns:
- a proxyGetter Method
-
getAdder
public java.lang.reflect.Method getAdder()
Returns the adder Method.- Returns:
- an adder Method
-
getType
public java.lang.Class<?> getType()
Returns the type of the field.- Returns:
- a Class object
-
getElementType
public java.lang.Class<? extends FastPathObject> getElementType()
Returns the collection element type of the field.- Returns:
- a Class
-
-