Package org.intermine.bio.web.export
Class ResidueFieldExporter
- java.lang.Object
-
- org.intermine.bio.web.export.ResidueFieldExporter
-
- All Implemented Interfaces:
org.intermine.web.logic.export.FieldExporter
public class ResidueFieldExporter extends java.lang.Object implements org.intermine.web.logic.export.FieldExporterResidueFieldExporter class
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.LoggerLOGprotected static java.lang.StringPROPERTY_DESCRIPTIONLINE
-
Constructor Summary
Constructors Constructor Description ResidueFieldExporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexportField(org.intermine.model.InterMineObject object, java.lang.String fieldName, org.intermine.objectstore.ObjectStore os, javax.servlet.http.HttpServletResponse response)Export a field containing residues in FASTA format.static org.intermine.model.InterMineObjectgetIMObjectForSequence(org.intermine.objectstore.ObjectStore os, java.lang.Class clazz, org.intermine.model.bio.Sequence sequence)Find the IntermineObject that references the given Sequence.static org.intermine.model.bio.ProteingetProteinForSequence(org.intermine.objectstore.ObjectStore os, org.intermine.model.bio.Sequence sequence)Find the Protein that references the given Sequence.static org.intermine.model.bio.SequenceFeaturegetSequenceFeatureForSequence(org.intermine.objectstore.ObjectStore os, org.intermine.model.bio.Sequence sequence)Find the SequenceFeature that references the given Sequence.
-
-
-
Field Detail
-
LOG
protected static final org.apache.log4j.Logger LOG
-
PROPERTY_DESCRIPTIONLINE
protected static final java.lang.String PROPERTY_DESCRIPTIONLINE
- See Also:
- Constant Field Values
-
-
Method Detail
-
exportField
public void exportField(org.intermine.model.InterMineObject object, java.lang.String fieldName, org.intermine.objectstore.ObjectStore os, javax.servlet.http.HttpServletResponse response)Export a field containing residues in FASTA format.- Specified by:
exportFieldin interfaceorg.intermine.web.logic.export.FieldExporter- Parameters:
object- the object of interestfieldName- the field of the object to output - should be sequenceos- the ObjectStore that contains the objectresponse- The HTTP response we are creating - used to get the OutputStream to write to- Throws:
org.intermine.web.logic.export.ExportException- if the application business logic throws an exception
-
getSequenceFeatureForSequence
public static org.intermine.model.bio.SequenceFeature getSequenceFeatureForSequence(org.intermine.objectstore.ObjectStore os, org.intermine.model.bio.Sequence sequence)Find the SequenceFeature that references the given Sequence.- Parameters:
os- the ObjectStoresequence- the Sequence- Returns:
- the SequenceFeature
-
getProteinForSequence
public static org.intermine.model.bio.Protein getProteinForSequence(org.intermine.objectstore.ObjectStore os, org.intermine.model.bio.Sequence sequence)Find the Protein that references the given Sequence.- Parameters:
os- the ObjectStoresequence- the Sequence- Returns:
- the Protein
-
getIMObjectForSequence
public static org.intermine.model.InterMineObject getIMObjectForSequence(org.intermine.objectstore.ObjectStore os, java.lang.Class clazz, org.intermine.model.bio.Sequence sequence)Find the IntermineObject that references the given Sequence.- Parameters:
os- the ObjectStoreclazz- the class of the InterMineObjectsequence- the Sequence- Returns:
- the IntermineObject
-
-