Class LabelledRelationshipResource<Owner extends IridaThing,Child extends IridaThing>
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel
-
- ca.corefacility.bioinformatics.irida.web.assembler.resource.LabelledRelationshipResource<Owner,Child>
-
- Type Parameters:
Owner
- The object type owning the relationshipChild
- The owned object type in the relationship
public class LabelledRelationshipResource<Owner extends IridaThing,Child extends IridaThing> extends IridaRepresentationModel
An implementation of a resource that only has a label and an identifier.
-
-
Constructor Summary
Constructors Constructor Description LabelledRelationshipResource(java.lang.String label, Join<Owner,Child> r)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getIdentifier()
We don't want to expose the id for the relationship, but rather the id for the object of the relationship.java.lang.String
getLabel()
Join<Owner,Child>
getResource()
void
setLabel(java.lang.String label)
-
Methods inherited from class ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel
add, add, equals, getLink, getLinks, getRemoteStatus, getSelfHref, hashCode, hasLink, hasLinks, removeLinks, setRemoteStatus, toString
-
-
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String label)
-
getIdentifier
public java.lang.String getIdentifier()
We don't want to expose the id for the relationship, but rather the id for the object of the relationship.- Returns:
- the id for the object of the relationship.
-
-