Package org.intermine.model.fulldata
Class Item
- java.lang.Object
-
- org.intermine.model.fulldata.Item
-
- All Implemented Interfaces:
FastPathObject
,InterMineFastPathObject
,InterMineObject
public class Item extends java.lang.Object implements InterMineObject
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<Attribute>
attributes
protected java.lang.String
className
protected java.util.Set<ReferenceList>
collections
protected java.lang.Integer
id
protected java.lang.String
identifier
protected java.lang.String
implementations
protected java.util.Set<Reference>
references
-
Constructor Summary
Constructors Constructor Description Item()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttributes(Attribute arg)
void
addCollectionElement(java.lang.String fieldName, InterMineObject element)
void
addCollections(ReferenceList arg)
void
addReferences(Reference arg)
boolean
equals(java.lang.Object o)
java.util.Set<Attribute>
getAttributes()
java.lang.String
getClassName()
java.util.Set<ReferenceList>
getCollections()
java.lang.Class<?>
getElementType(java.lang.String fieldName)
Returns the element type of a collection by name.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.java.lang.Integer
getId()
Getter for the ID field - ensures that every object in the database has an ID.java.lang.String
getIdentifier()
java.lang.String
getImplementations()
StringConstructor
getoBJECT()
Returns the NotXml serialised version of this object.java.util.Set<Reference>
getReferences()
int
hashCode()
void
setAttributes(java.util.Set<Attribute> attributes)
void
setClassName(java.lang.String className)
void
setCollections(java.util.Set<ReferenceList> collections)
void
setFieldValue(java.lang.String fieldName, java.lang.Object value)
Sets the value of a field by name.void
setId(java.lang.Integer id)
Setter for the ID field.void
setIdentifier(java.lang.String identifier)
void
setImplementations(java.lang.String implementations)
void
setoBJECT(java.lang.String[] notXml, ObjectStore os)
Sets the values of the fields to the values in the given split NotXml.void
setoBJECT(java.lang.String notXml, ObjectStore os)
Sets the values of the fields to the values in the given NotXml.void
setReferences(java.util.Set<Reference> references)
java.lang.String
toString()
-
-
-
Field Detail
-
className
protected java.lang.String className
-
implementations
protected java.lang.String implementations
-
identifier
protected java.lang.String identifier
-
attributes
protected java.util.Set<Attribute> attributes
-
collections
protected java.util.Set<ReferenceList> collections
-
references
protected java.util.Set<Reference> references
-
id
protected java.lang.Integer id
-
-
Method Detail
-
getClassName
public java.lang.String getClassName()
-
setClassName
public void setClassName(java.lang.String className)
-
getImplementations
public java.lang.String getImplementations()
-
setImplementations
public void setImplementations(java.lang.String implementations)
-
getIdentifier
public java.lang.String getIdentifier()
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
-
getAttributes
public java.util.Set<Attribute> getAttributes()
-
setAttributes
public void setAttributes(java.util.Set<Attribute> attributes)
-
addAttributes
public void addAttributes(Attribute arg)
-
getCollections
public java.util.Set<ReferenceList> getCollections()
-
setCollections
public void setCollections(java.util.Set<ReferenceList> collections)
-
addCollections
public void addCollections(ReferenceList arg)
-
getReferences
public java.util.Set<Reference> getReferences()
-
setReferences
public void setReferences(java.util.Set<Reference> references)
-
addReferences
public void addReferences(Reference arg)
-
getId
public java.lang.Integer getId()
Description copied from interface:InterMineObject
Getter for the ID field - ensures that every object in the database has an ID.- Specified by:
getId
in interfaceInterMineFastPathObject
- Specified by:
getId
in interfaceInterMineObject
- Returns:
- an Integer
-
setId
public void setId(java.lang.Integer id)
Description copied from interface:InterMineObject
Setter for the ID field.- Specified by:
setId
in interfaceInterMineFastPathObject
- Specified by:
setId
in interfaceInterMineObject
- Parameters:
id
- an Integer
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
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
-
getoBJECT
public StringConstructor getoBJECT()
Description copied from interface:InterMineObject
Returns the NotXml serialised version of this object.- Specified by:
getoBJECT
in interfaceInterMineFastPathObject
- Specified by:
getoBJECT
in interfaceInterMineObject
- Returns:
- a StringConstructor containing the NotXml
-
setoBJECT
public void setoBJECT(java.lang.String notXml, ObjectStore os)
Description copied from interface:InterMineObject
Sets the values of the fields to the values in the given NotXml.- Specified by:
setoBJECT
in interfaceInterMineObject
- Parameters:
notXml
- a String containing NotXml for this classos
- an ObjectStore from which to create proxies
-
setoBJECT
public void setoBJECT(java.lang.String[] notXml, ObjectStore os)
Description copied from interface:InterMineObject
Sets the values of the fields to the values in the given split NotXml.- Specified by:
setoBJECT
in interfaceInterMineObject
- Parameters:
notXml
- a String array containing the NotXml split with the delimiteros
- an ObjectStore from which to create proxies
-
addCollectionElement
public void addCollectionElement(java.lang.String fieldName, InterMineObject element)
-
getElementType
public java.lang.Class<?> getElementType(java.lang.String fieldName)
Description copied from interface:InterMineObject
Returns the element type of a collection by name.- Specified by:
getElementType
in interfaceInterMineFastPathObject
- Specified by:
getElementType
in interfaceInterMineObject
- Parameters:
fieldName
- the name of the collection- Returns:
- the type of the elements of the collection
-
-