apollo.editor
Class TransactionSubpart

java.lang.Object
  extended by apollo.editor.TransactionSubpart
All Implemented Interfaces:
java.io.Serializable

public class TransactionSubpart
extends java.lang.Object
implements java.io.Serializable

Enumeration/value class that captures the subpart of the feature that is effected by the transaction. This is an optional part of a Transaction as some transactions effect the whole feature (e.g. delete transcript). Do I go too far with this enumeration stuff? I think its nice to have a strongly typed enumeration over a loose string but it is more work to add more subparts

See Also:
Serialized Form

Field Summary
static TransactionSubpart CDNA_NAME
           
static TransactionSubpart COMMENT
           
static TransactionSubpart DBXREF
           
static TransactionSubpart DESCRIPTION
           
static TransactionSubpart FINISHED
           
static TransactionSubpart ID
           
static TransactionSubpart IS_DICISTRONIC
           
static TransactionSubpart IS_PROBLEMATIC
           
static TransactionSubpart LIMITS
           
protected static org.apache.log4j.Logger logger
           
static TransactionSubpart MINUS_1_FRAMESHIFT
           
static TransactionSubpart NAME
           
static TransactionSubpart NON_CONSENSUS_SPLICE_OKAY
           
static TransactionSubpart PARENT
           
static TransactionSubpart PEPTIDE_ID
          This maps to SequenceI accessionNo
static TransactionSubpart PEPTIDE_LIMITS
           
static TransactionSubpart PEPTIDE_NAME
          Yuck! we need a Peptide feature! this subpart is just a hack around a lack of peptide feature.
static TransactionSubpart PLUS_1_FRAMESHIFT
           
static TransactionSubpart REPLACE_STOP
           
static TransactionSubpart SYNONYM
           
static TransactionSubpart TYPE
           
 
Method Summary
 boolean isBoolean()
           
 boolean isComment()
           
 boolean isDbXref()
           
 boolean isDescription()
           
 boolean isFinished()
           
 boolean isId()
           
 boolean isInt()
           
 boolean isLimits()
           
 boolean isName()
           
 boolean isProblematic()
           
 boolean isString()
           
 boolean isSynonym()
           
 boolean isType()
           
 void setValue(SeqFeatureI feat, java.lang.Object value)
           
 void setValue(SeqFeatureI feat, java.lang.Object value, boolean isAdd)
           
static TransactionSubpart stringToSubpart(java.lang.String subpartString)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

PARENT

public static TransactionSubpart PARENT

ID

public static TransactionSubpart ID

NAME

public static TransactionSubpart NAME

TYPE

public static TransactionSubpart TYPE

COMMENT

public static TransactionSubpart COMMENT

SYNONYM

public static TransactionSubpart SYNONYM

LIMITS

public static TransactionSubpart LIMITS

PEPTIDE_LIMITS

public static TransactionSubpart PEPTIDE_LIMITS

PEPTIDE_NAME

public static TransactionSubpart PEPTIDE_NAME
Yuck! we need a Peptide feature! this subpart is just a hack around a lack of peptide feature. This is SequenceI's displayId


PEPTIDE_ID

public static TransactionSubpart PEPTIDE_ID
This maps to SequenceI accessionNo


CDNA_NAME

public static TransactionSubpart CDNA_NAME

REPLACE_STOP

public static TransactionSubpart REPLACE_STOP

PLUS_1_FRAMESHIFT

public static TransactionSubpart PLUS_1_FRAMESHIFT

MINUS_1_FRAMESHIFT

public static TransactionSubpart MINUS_1_FRAMESHIFT

NON_CONSENSUS_SPLICE_OKAY

public static TransactionSubpart NON_CONSENSUS_SPLICE_OKAY

IS_DICISTRONIC

public static TransactionSubpart IS_DICISTRONIC

IS_PROBLEMATIC

public static TransactionSubpart IS_PROBLEMATIC

FINISHED

public static TransactionSubpart FINISHED

DBXREF

public static TransactionSubpart DBXREF

DESCRIPTION

public static TransactionSubpart DESCRIPTION
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

stringToSubpart

public static TransactionSubpart stringToSubpart(java.lang.String subpartString)

isBoolean

public boolean isBoolean()

isString

public boolean isString()

isType

public boolean isType()

isId

public boolean isId()

isInt

public boolean isInt()

isName

public boolean isName()

isComment

public boolean isComment()

isSynonym

public boolean isSynonym()

isLimits

public boolean isLimits()

isFinished

public boolean isFinished()

isProblematic

public boolean isProblematic()

isDbXref

public boolean isDbXref()

isDescription

public boolean isDescription()

setValue

public void setValue(SeqFeatureI feat,
                     java.lang.Object value)

setValue

public void setValue(SeqFeatureI feat,
                     java.lang.Object value,
                     boolean isAdd)