|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.webapps.dimlib.util.ImportXML
| Constructor Summary | |
ImportXML()
|
|
ImportXML(javax.jdo.PersistenceManager session_pm)
|
|
| Method Summary | |
void |
addAddedMutant(MutantProtein mp)
|
void |
addAddedSNP(SNP snp)
|
void |
addExistingMutant(java.lang.String id)
|
void |
addExistingSNP(java.lang.String id)
|
void |
addNewAc(AccessionCode ac)
|
java.util.Collection |
getAddedMutants()
|
java.util.Collection |
getAddedSNPs()
|
java.util.Collection |
getExistingMutants()
|
java.util.Collection |
getExistingSNPs()
|
java.util.Vector |
getNewAcs()
|
void |
importAcs(java.util.Vector acs,
WildTypeProtein wtp,
boolean wtp_exists)
Updates accession codes for WildTypeProtein. |
void |
importMutants(java.util.Collection c)
Submits MutantProteins to the database. |
void |
importProtein(WildTypeProtein wtp)
Submits the WildTypeProtein to the database. |
void |
importSNP(SNP snp)
Submit a single SNP to the database. |
void |
importSNPs(java.util.Collection c)
Submits SNPs to the database. |
static void |
main(java.lang.String[] args)
|
java.util.Collection |
parseMutants(Protein protein,
WildTypeProtein wtp)
Parses the XML file for all information relating to MutantProteins from edu.mssm.crover.webapps.dimlib.parsers.xml.Protein. |
WildTypeProtein |
parseProtein(Protein protein,
SubmitterInfo submitter)
Parses the XML file for all WildTypeProtein information from edu.mssm.crover.webapps.dimlib.parsers.xml.Protein |
java.util.Collection |
parseSNPs(Protein protein,
WildTypeProtein wtp)
Parses any SNPs in the XML import file. |
void |
parseXML(java.io.File f)
Unmarshals and parses the XML file containing the dimlib-submission, and imports the information into the database. |
boolean |
proteinExists()
|
void |
setProteinExists(boolean new_prot)
|
boolean |
validate(java.io.File f)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImportXML()
public ImportXML(javax.jdo.PersistenceManager session_pm)
| Method Detail |
public void parseXML(java.io.File f)
throws InvalidSubmissionException,
java.io.FileNotFoundException,
java.io.IOException
InvalidSubmissionException
java.io.FileNotFoundException
java.io.IOExceptionpublic void importProtein(WildTypeProtein wtp)
wtp - WildTypeProtein to be submitted
public void importAcs(java.util.Vector acs,
WildTypeProtein wtp,
boolean wtp_exists)
acs - accession codes to be addedwtp - WildTypeProtein to be updatedpublic void importMutants(java.util.Collection c)
c - Collection of MutantProteins to be importedpublic void importSNPs(java.util.Collection c)
c - Collection of SNPs to be imported
public void importSNP(SNP snp)
throws InvalidSubmissionException
snp - SNP to be submitted
InvalidSubmissionException
public WildTypeProtein parseProtein(Protein protein,
SubmitterInfo submitter)
throws InvalidSubmissionException
InvalidSubmissionException
public java.util.Collection parseMutants(Protein protein,
WildTypeProtein wtp)
throws InvalidSubmissionException
InvalidSubmissionException
public java.util.Collection parseSNPs(Protein protein,
WildTypeProtein wtp)
throws InvalidSubmissionException
InvalidSubmissionException
public boolean validate(java.io.File f)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException
java.io.IOExceptionpublic void setProteinExists(boolean new_prot)
public boolean proteinExists()
public void addNewAc(AccessionCode ac)
public java.util.Vector getNewAcs()
public java.util.Collection getAddedMutants()
public void addAddedMutant(MutantProtein mp)
public void addExistingMutant(java.lang.String id)
public java.util.Collection getExistingMutants()
public java.util.Collection getAddedSNPs()
public void addAddedSNP(SNP snp)
public void addExistingSNP(java.lang.String id)
public java.util.Collection getExistingSNPs()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||