001/* 002 $Id: SearchModificationData.java 3207 2009-04-09 06:48:11Z gregory $ 003 004 */ 005package org.proteios.core.data; 006 007/** 008 * This represents a SearchModification of a Modification 009 * 010 * @author Fredrik 011 * @version 2.0 012 * @see org.proteios.core.SearchModification 013 * @hibernate.subclass discriminator-value="2" 014 */ 015public class SearchModificationData 016 extends ModificationData 017{ 018 public SearchModificationData() 019 {} 020 021 private SpectrumSearchData spectrumSearch; 022 023 024 /** 025 * Get the {@link SpectrumSearchData} this SearchDatabase is created from. 026 * 027 * @hibernate.many-to-one column="`spectrumSearchId`" 028 * @return The <code>SpectrumSearchData</code> item or null if not known 029 */ 030 public SpectrumSearchData getSpectrumSearch() 031 { 032 return spectrumSearch; 033 } 034 035 036 /** 037 * Set the {@link SpectrumSearchData} this peakList is created from. 038 * 039 * @param spectrumSearch The creator spectrumSearch 040 */ 041 public void setSpectrumSearch(SpectrumSearchData spectrumSearch) 042 { 043 this.spectrumSearch = spectrumSearch; 044 } 045 046 public static final int MAX_AASPECIFICITY_LENGTH = 255; 047 private String aminoAcidSpecificity; 048 049 050 /** 051 * @return Returns the aminoAcidSpecificity. 052 * @hibernate.property column="`aaSpecificity`" type="string" length="255" 053 * not-null="false" 054 * 055 */ 056 public String getAminoAcidSpecificity() 057 { 058 return aminoAcidSpecificity; 059 } 060 061 062 /** 063 * @param aminoAcidSpecificity The aminoAcidSpecificity to set. 064 */ 065 public void setAminoAcidSpecificity(String aminoAcidSpecificity) 066 { 067 this.aminoAcidSpecificity = aminoAcidSpecificity; 068 } 069 070 private int terminalSpecificity; 071 072 073 /** 074 * @return Returns the terminalSpecificity. 075 * @hibernate.property column="`terminalSpecificity`" 076 */ 077 public int getTerminalSpecificity() 078 { 079 return terminalSpecificity; 080 } 081 082 083 /** 084 * @param terminalSpecificity The terminalSpecificity to set. 085 */ 086 public void setTerminalSpecificity(int terminalSpecificity) 087 { 088 this.terminalSpecificity = terminalSpecificity; 089 } 090 091 private boolean fixed = true; 092 093 094 /** 095 * @return Returns the fixed modification flag 096 * @hibernate.property column="`fixed`" 097 */ 098 public boolean isFixed() 099 { 100 return fixed; 101 } 102 103 104 public void setFixed(boolean fixed) 105 { 106 this.fixed = fixed; 107 } 108}