|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.BasicItem<D>
org.proteios.core.OwnedItem<D>
org.proteios.core.SharedItem<D>
org.proteios.core.CommonItem<D>
org.proteios.core.AnnotatedItem<D>
org.proteios.core.PolyPeptide<PeptideData>
org.proteios.core.Peptide
public class Peptide
This class represent peptide.
| Field Summary | |
|---|---|
static int |
MAX_POSTSEQUENCE_LENGTH
The maximum length of the postSequence string that can be stored in the database. |
static int |
MAX_PRESEQUENCE_LENGTH
The maximum length of the preSequence string that can be stored in the database. |
static Item |
TYPE
The type of item represented by this class. |
| Fields inherited from class org.proteios.core.PolyPeptide |
|---|
MAX_ACCESSION_NUMBER_LENGTH, MAX_LSID_LENGTH, MAX_SEQUENCE_LENGTH |
| Fields inherited from interface org.proteios.core.Nameable |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Method Summary | |
|---|---|
Set<Annotatable> |
getAnnotatableParents()
Always null. |
static Peptide |
getById(DbControl dc,
int id)
Get an Peptide item when you know the id. |
int |
getEndPosition()
|
String |
getPostSequence()
Get the sequence before this peptide. |
String |
getPreSequence()
Get the sequence before this peptide. |
static ItemQuery<Peptide> |
getQuery()
Get a query that returns protein items. |
int |
getStartPosition()
|
Item |
getType()
Get the type of item represented by the object. |
boolean |
isUsed()
Check that: no Sample has been created from this protein
|
void |
setEndPosition(int endPosition)
|
void |
setPostSequence(String postSequence)
Set the postSequence for this SearchResult item. |
void |
setPreSequence(String preSequence)
Set the preSequence for this SearchResult item. |
void |
setStartPosition(int startPosition)
|
| Methods inherited from class org.proteios.core.PolyPeptide |
|---|
addObservedModification, getAccessionNumber, getLsid, getObservedModifications, getSearchResult, getSequence, setAccessionNumber, setLsid, setObservedModifications, setSearchResult, setSequence |
| Methods inherited from class org.proteios.core.CommonItem |
|---|
getDescription, getName, isRemoved, setDescription, setName, setRemoved |
| Methods inherited from class org.proteios.core.SharedItem |
|---|
getItemKey, getProjectKey, isShared, setItemKey, setProjectKey |
| Methods inherited from class org.proteios.core.OwnedItem |
|---|
getOwner, setOwner |
| Methods inherited from class org.proteios.core.BasicItem |
|---|
checkPermission, equals, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.proteios.core.Identifiable |
|---|
getId, getVersion |
| Methods inherited from interface org.proteios.core.AccessControlled |
|---|
checkPermission, hasPermission |
| Methods inherited from interface org.proteios.core.Ownable |
|---|
getOwner, setOwner |
| Field Detail |
|---|
public static final Item TYPE
Item.PROTEIOS_PEPTIDE,
getType()public static final int MAX_PRESEQUENCE_LENGTH
setPreSequence(String),
Constant Field Valuespublic static final int MAX_POSTSEQUENCE_LENGTH
setPostSequence(String),
Constant Field Values| Method Detail |
|---|
public static Peptide getById(DbControl dc,
int id)
throws ItemNotFoundException,
PermissionDeniedException,
BaseException
Peptide item when you know the id.
dc - The DbControl which will be used for permission
checking and database access.id - The id of the item to load
Peptide item
ItemNotFoundException - If an item with the specified id is not
found
PermissionDeniedException - If the logged in user doesn't have read
permission to the item
BaseException - If there is another errorpublic static ItemQuery<Peptide> getQuery()
ItemQuery object.public Item getType()
IdentifiableItem enumeration.
public Set<Annotatable> getAnnotatableParents()
throws BaseException
BaseException
public boolean isUsed()
throws BaseException
Sample has been created from this protein
isUsed in class BasicItem<PeptideData>BaseExceptionpublic String getPreSequence()
public void setPreSequence(String preSequence)
throws InvalidDataException
SearchResult item. The value
may be null but must not be longer than the value specified by the
MAX_PRESEQUENCE_LENGTH constant.
preSequence - The new preSequence for this item
InvalidDataException - If the preSequence is longer than
MAX_PRESEQUENCE_LENGTHpublic String getPostSequence()
public void setPostSequence(String postSequence)
throws InvalidDataException
SearchResult item. The value
may be null but must not be longer than the value specified by the
MAX_POSTSEQUENCE_LENGTH constant.
postSequence - The new postSequence for this item
InvalidDataException - If the postSequence is longer than
MAX_POSTSEQUENCE_LENGTHpublic int getStartPosition()
public void setStartPosition(int startPosition)
startPosition - The startPosition to set.public int getEndPosition()
public void setEndPosition(int endPosition)
endPosition - The endPosition to set.
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||