Package org.intermine.web.logic.results
Class DisplayReference
- java.lang.Object
-
- org.intermine.web.logic.results.DisplayField
-
- org.intermine.web.logic.results.DisplayReference
-
public class DisplayReference extends DisplayField
Class to represent a reference field of an object for display in the webapp- Author:
- Mark Woodbridge
-
-
Field Summary
-
Fields inherited from class org.intermine.web.logic.results.DisplayField
LOG
-
-
Constructor Summary
Constructors Constructor Description DisplayReference(ProxyReference proxy, ReferenceDescriptor ref, WebConfig webConfig, java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys, java.lang.String objectType)Create a new DisplayReference object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferenceDescriptorgetDescriptor()Get ReferenceDescriptor for this reference.intgetId()Get the id of the objectjava.lang.ObjectgetObject()Get the referenced object-
Methods inherited from class org.intermine.web.logic.results.DisplayField
getSize, getTable, isEmpty
-
-
-
-
Constructor Detail
-
DisplayReference
public DisplayReference(ProxyReference proxy, ReferenceDescriptor ref, WebConfig webConfig, java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys, java.lang.String objectType) throws java.lang.Exception
Create a new DisplayReference object.- Parameters:
proxy- proxy for the referenced objectref- metadata for the referenced objectwebConfig- the WebConfig object for this webappclassKeys- Map of class name to set of keysobjectType- the type of the object.- Throws:
java.lang.Exception- if an error occurs
-
-
Method Detail
-
getDescriptor
public ReferenceDescriptor getDescriptor()
Get ReferenceDescriptor for this reference.- Returns:
- ReferenceDescriptor
-
getId
public int getId()
Get the id of the object- Returns:
- the id
-
getObject
public java.lang.Object getObject()
Get the referenced object- Returns:
- the object
-
-