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
| Fields inherited from class org.intermine.web.logic.results.DisplayField |
LOG |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 objectref - metadata for the referenced objectwebConfig - the WebConfig object for this webappwebProperties - the web properties from the sessionclassKeys - Map of class name to set of keys
- Throws:
java.lang.Exception - if an error occurs
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