org.intermine.web.logic.results
Class DisplayReference

java.lang.Object
  extended by org.intermine.web.logic.results.DisplayField
      extended by 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


Field Summary
 
Fields inherited from class org.intermine.web.logic.results.DisplayField
LOG
 
Constructor Summary
DisplayReference(ProxyReference proxy, ReferenceDescriptor ref, WebConfig webConfig, java.util.Map webProperties, java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys)
          Create a new DisplayReference object.
 
Method Summary
 ReferenceDescriptor getDescriptor()
          Get ReferenceDescriptor for this reference.
 int getId()
          Get the id of the object
 java.lang.Object getObject()
          Get the referenced object
 
Methods inherited from class org.intermine.web.logic.results.DisplayField
getSize, getTable, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayReference

public DisplayReference(ProxyReference proxy,
                        ReferenceDescriptor ref,
                        WebConfig webConfig,
                        java.util.Map webProperties,
                        java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys)
                 throws java.lang.Exception
Create a new DisplayReference object.

Parameters:
proxy - proxy for the referenced object
ref - metadata for the referenced object
webConfig - the WebConfig object for this webapp
webProperties - the web properties from the session
classKeys - Map of class name to set of keys
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