org.intermine.metadata
Class CollectionDescriptor
java.lang.Object
org.intermine.metadata.FieldDescriptor
org.intermine.metadata.ReferenceDescriptor
org.intermine.metadata.CollectionDescriptor
public class CollectionDescriptor
- extends ReferenceDescriptor
Describes a field that references a collection of other objects.
getReverseReferenceDescriptor()
allows one ot work out the multiplicity of the association's other end.
|
Constructor Summary |
CollectionDescriptor(java.lang.String name,
java.lang.String referencedType,
java.lang.String reverseRefName)
Construct a CollectionDescriptor. |
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
int |
relationType()
Return an integer describing the type of relationship this field represents,
where relationship types are 1:1, 1:N, N:1, M:N and "not a relationship". |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CollectionDescriptor
public CollectionDescriptor(java.lang.String name,
java.lang.String referencedType,
java.lang.String reverseRefName)
- Construct a CollectionDescriptor. name and referencedType may not be null.
- Parameters:
name - name of this field in parent classreferencedType - the fully qualified name of the business object type in this collectionreverseRefName - name of field in the referenced class that points back to this class
(may be null)
- Throws:
java.lang.IllegalArgumentException - if arguments are null
relationType
public int relationType()
- Return an integer describing the type of relationship this field represents,
where relationship types are 1:1, 1:N, N:1, M:N and "not a relationship".
- Overrides:
relationType in class ReferenceDescriptor
- Returns:
- int to describe the relationship type
equals
public boolean equals(java.lang.Object obj)
-
- Overrides:
equals in class ReferenceDescriptor
hashCode
public int hashCode()
-
- Overrides:
hashCode in class ReferenceDescriptor
toString
public java.lang.String toString()
-
- Overrides:
toString in class ReferenceDescriptor