Package org.intermine.model.fulldata
Class Attribute
- java.lang.Object
-
- org.intermine.model.fulldata.Attribute
-
- All Implemented Interfaces:
FastPathObject
public class Attribute extends java.lang.Object implements FastPathObject
-
-
Field Summary
Fields Modifier and Type Field Description protected InterMineObject
item
protected java.lang.String
name
protected java.lang.String
value
-
Constructor Summary
Constructors Constructor Description Attribute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getFieldProxy(java.lang.String fieldName)
Returns the value of a field without dereferencing any ProxyReference objects.java.lang.Class<?>
getFieldType(java.lang.String fieldName)
Returns the type of a field by name.java.lang.Object
getFieldValue(java.lang.String fieldName)
Returns the value of a field by name.Item
getItem()
java.lang.String
getName()
java.lang.String
getValue()
InterMineObject
proxGetItem()
void
proxyItem(ProxyReference item)
void
setFieldValue(java.lang.String fieldName, java.lang.Object value)
Sets the value of a field by name.void
setItem(Item item)
void
setName(java.lang.String name)
void
setValue(java.lang.String value)
java.lang.String
toString()
-
-
-
Field Detail
-
name
protected java.lang.String name
-
value
protected java.lang.String value
-
item
protected InterMineObject item
-
-
Method Detail
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getValue
public java.lang.String getValue()
-
setValue
public void setValue(java.lang.String value)
-
getItem
public Item getItem()
-
setItem
public void setItem(Item item)
-
proxyItem
public void proxyItem(ProxyReference item)
-
proxGetItem
public InterMineObject proxGetItem()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getFieldValue
public java.lang.Object getFieldValue(java.lang.String fieldName) throws java.lang.IllegalAccessException
Description copied from interface:FastPathObject
Returns the value of a field by name.- Specified by:
getFieldValue
in interfaceFastPathObject
- Parameters:
fieldName
- the name of the field- Returns:
- the value of the field
- Throws:
java.lang.IllegalAccessException
- when something goes wrong
-
getFieldProxy
public java.lang.Object getFieldProxy(java.lang.String fieldName) throws java.lang.IllegalAccessException
Description copied from interface:FastPathObject
Returns the value of a field without dereferencing any ProxyReference objects.- Specified by:
getFieldProxy
in interfaceFastPathObject
- Parameters:
fieldName
- the name of the field- Returns:
- the value of the field, or a ProxyReference representing it
- Throws:
java.lang.IllegalAccessException
- when something goes wrong
-
setFieldValue
public void setFieldValue(java.lang.String fieldName, java.lang.Object value)
Description copied from interface:FastPathObject
Sets the value of a field by name.- Specified by:
setFieldValue
in interfaceFastPathObject
- Parameters:
fieldName
- the name of the fieldvalue
- the value of the field, or a ProxyReference representing it
-
getFieldType
public java.lang.Class<?> getFieldType(java.lang.String fieldName)
Description copied from interface:FastPathObject
Returns the type of a field by name.- Specified by:
getFieldType
in interfaceFastPathObject
- Parameters:
fieldName
- the name of the field- Returns:
- the type of the field
-
-