Package org.intermine.xml.full
Class ReferenceList
- java.lang.Object
-
- org.intermine.xml.full.ReferenceList
-
public class ReferenceList extends java.lang.Object
Representation of a field in an object.- Author:
- Andrew Varley
-
-
Constructor Summary
Constructors Constructor Description ReferenceList()
ConstructorReferenceList(java.lang.String name)
ConstructorReferenceList(java.lang.String name, java.util.List<java.lang.String> refIds)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRefId(java.lang.String refId)
Add a value to the list of references.boolean
equals(java.lang.Object o)
java.lang.String
getName()
Get the name of this field.java.util.List<java.lang.String>
getRefIds()
Get the references in this collection.int
hashCode()
void
setName(java.lang.String name)
Set the name of this field.void
setRefIds(java.util.List<java.lang.String> refIds)
Set the references in this collection
-
-
-
Constructor Detail
-
ReferenceList
public ReferenceList()
Constructor
-
ReferenceList
public ReferenceList(java.lang.String name)
Constructor- Parameters:
name
- the name
-
ReferenceList
public ReferenceList(java.lang.String name, java.util.List<java.lang.String> refIds)
Constructor- Parameters:
name
- the namerefIds
- the refIds
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
Set the name of this field.- Parameters:
name
- the name
-
getName
public java.lang.String getName()
Get the name of this field.- Returns:
- the name
-
addRefId
public void addRefId(java.lang.String refId)
Add a value to the list of references.- Parameters:
refId
- the value
-
getRefIds
public java.util.List<java.lang.String> getRefIds()
Get the references in this collection.- Returns:
- the list of references
-
setRefIds
public void setRefIds(java.util.List<java.lang.String> refIds)
Set the references in this collection- Parameters:
refIds
- the refIds
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-