|
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.io.MascotParameterFileUtil
public class MascotParameterFileUtil
This class implements the MascotParameterFileUtilInterface that defines methods to access input data from a Mascot input file.
| Constructor Summary | |
|---|---|
MascotParameterFileUtil()
Default constructor. |
|
MascotParameterFileUtil(File mascotParameterFile)
Constructor that takes a Mascot parameter file item as parameter. |
|
MascotParameterFileUtil(InputStream xmlInputStream)
Constructor that takes a Mascot input XML input stream as parameter. |
|
| Method Summary | |
|---|---|
void |
exportMascotParameterSet(MascotParameterSet mascotParameterSet)
Export MascotParameterSet item to output stream. |
String |
fetchAttribute(Hashtable<String,String> hashtable,
String tagValue)
Convenience method to get an XML tag attribute for an XML tag value from a hash table. |
List<String> |
fetchDataFormatAlternativesList()
Data format alternatives list, key= |
List<String> |
fetchEnzymeAlternativesList()
Enzyme alternatives list, key= |
List<String> |
fetchInstrumentAlternativesList()
Instrument alternatives list, key= |
MascotParameterSet |
fetchMascotParameterSet()
Fetch MascotParameterSet item from input stream. |
List<String> |
fetchMassIonTypeAlternativesList()
Mass ion type alternatives list, key= |
Hashtable<String,String> |
fetchMassIonTypeAttributeHashtable()
Mass ion type attribute hash table, key= |
List<String> |
fetchMassTypeAlternativesList()
Mass type alternatives list, key= |
List<String> |
fetchMissedCleavagesAlternativesList()
Missed cleavages alternatives list, key= |
List<String> |
fetchModificationAlternativesList()
Modification alternatives list, key= |
List<String> |
fetchMsMsTolUnitAlternativesList()
MS-MS tolerance unit alternatives list, key= |
List<String> |
fetchPeptideChargeAlternativesList()
Peptide charge alternatives list, key= |
List<String> |
fetchPeptideIsotopeErrorAlternativesList()
Peptide isotope error alternatives list, key= |
List<String> |
fetchPeptideTolUnitAlternativesList()
Peptide tolerance unit alternatives list, key= |
List<String> |
fetchQuantitationAlternativesList()
Quantitation alternatives list, key= |
List<String> |
fetchReportTopAlternativesList()
Report top alternatives list, key= |
List<String> |
fetchSearchTypeAlternativesList()
Search type alternatives list, key= |
Hashtable<String,String> |
fetchSearchTypeAttributeHashtable()
Search type attribute hash table, key= |
List<String> |
fetchSequenceLibraryAlternativesList()
Sequence library alternatives list, key= |
List<String> |
fetchSpeciesAlternativesList()
Species alternatives list, key= |
File |
getMascotParameterFile()
Get the Mascot parameter file item. |
MascotParameterSet |
getMascotParameterSet()
Get the Mascot parameter set item. |
String |
getXMLFilePath()
Get Mascot input XML file path. |
InputStream |
getXMLInputStream()
Get Mascot input XML input stream. |
OutputStream |
getXMLOutputStream()
Get Mascot input XML output stream. |
String |
getXsdFilePath()
Get XSD schema file to validate against. |
boolean |
importable()
Validates first element of input stream. |
void |
saveMascotParameterSet()
Saves Mascot parameter set from MascotParameterSet item instance variable to XML output stream. |
void |
saveMascotParameterSet(MascotParameterSet mascotParameterSetArg)
Saves Mascot parameter set from MascotParameterSet item to XML output stream. |
void |
setMascotParameterFile(File mascotParameterFile)
Set the Mascot parameter file item. |
void |
setMascotParameterSet(MascotParameterSet mascotParameterSet)
Set the Mascot parameter set item. |
void |
setXMLFilePath(String xmlFilePath)
Set Mascot input XML file path. |
void |
setXMLInputStream(InputStream xmlInputStream)
Set Mascot input XML input stream. |
void |
setXMLOutputStream(OutputStream xmlOutputStream)
Set Mascot input XML output stream. |
void |
setXsdFilePath(String xsdFilePath)
Set XSD schema file to validate against. |
boolean |
valid()
Validates Mascot input XML input stream against current Mascot input XSD file. |
void |
writeBlankLine()
Writes a blank line. |
void |
writeEndTag(String tagName)
Writes XML end tag for an XML block. |
void |
writeIndentedText(String text,
int extraIndentation)
Writes indented text with optional extra indentation. |
void |
writeLabeledSingleTag(String tagName,
String label)
Writes a Mascot input XML single tag with "value" attribute as label. |
void |
writeLabeledTagPair(String tagName,
String label,
String value)
Writes a Mascot input XML tag pair with "value" attribute as label. |
void |
writeStartTag(String tagName)
Writes XML start tag for an XML block. |
void |
writeTagPair(String tagName,
String value)
Writes a Mascot input XML tag pair. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MascotParameterFileUtil()
public MascotParameterFileUtil(File mascotParameterFile)
mascotParameterFile - File Mascot parameter file item.public MascotParameterFileUtil(InputStream xmlInputStream)
xmlInputStream - InputStream Mascot input XML input stream.| Method Detail |
|---|
public String getXsdFilePath()
public void setXsdFilePath(String xsdFilePath)
xsdFilePath - String with path for XSD schema file.public String getXMLFilePath()
public void setXMLFilePath(String xmlFilePath)
xmlFilePath - String with path for Mascot input XML file.public InputStream getXMLInputStream()
public void setXMLInputStream(InputStream xmlInputStream)
xmlInputStream - InputStream Mascot input XML input stream.public OutputStream getXMLOutputStream()
public void setXMLOutputStream(OutputStream xmlOutputStream)
xmlOutputStream - OutputStream Mascot input XML output stream.public File getMascotParameterFile()
public void setMascotParameterFile(File mascotParameterFile)
mascotParameterFile - File Mascot parameter file item.public MascotParameterSet getMascotParameterSet()
getMascotParameterSet in interface MascotParameterFileUtilInterfacepublic void setMascotParameterSet(MascotParameterSet mascotParameterSet)
mascotParameterSet - MascotParameterSet Mascot parameter set item.
public boolean valid()
throws javax.xml.stream.XMLStreamException,
SAXException
valid in interface FileValidationInterfacejavax.xml.stream.XMLStreamException - If there is an XML Stream related error
SAXExceptionpublic boolean importable()
importable in interface FileValidationInterfacepublic MascotParameterSet fetchMascotParameterSet()
public void saveMascotParameterSet()
public void saveMascotParameterSet(MascotParameterSet mascotParameterSetArg)
mascotParameterSetArg - MascotParameterSet item with settings data.public Hashtable<String,String> fetchSearchTypeAttributeHashtable()
public List<String> fetchSearchTypeAlternativesList()
public List<String> fetchEnzymeAlternativesList()
public List<String> fetchSequenceLibraryAlternativesList()
public List<String> fetchMissedCleavagesAlternativesList()
public List<String> fetchSpeciesAlternativesList()
public List<String> fetchModificationAlternativesList()
public List<String> fetchQuantitationAlternativesList()
public List<String> fetchPeptideTolUnitAlternativesList()
public List<String> fetchPeptideIsotopeErrorAlternativesList()
public List<String> fetchMsMsTolUnitAlternativesList()
public List<String> fetchPeptideChargeAlternativesList()
public Hashtable<String,String> fetchMassIonTypeAttributeHashtable()
public List<String> fetchMassIonTypeAlternativesList()
public List<String> fetchMassTypeAlternativesList()
public List<String> fetchDataFormatAlternativesList()
public List<String> fetchInstrumentAlternativesList()
public List<String> fetchReportTopAlternativesList()
public String fetchAttribute(Hashtable<String,String> hashtable,
String tagValue)
hashtable - HashtabletagValue - String The XML tag value to find the attribute for.
public void exportMascotParameterSet(MascotParameterSet mascotParameterSet)
mascotParameterSet - MascotParameterSet item with settings data.
public void writeStartTag(String tagName)
throws javax.xml.stream.XMLStreamException
tagName - String tag name
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeEndTag(String tagName)
throws javax.xml.stream.XMLStreamException
tagName - String tag name
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeBlankLine()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeLabeledSingleTag(String tagName,
String label)
throws javax.xml.stream.XMLStreamException
tagName - Stringlabel - String
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeLabeledTagPair(String tagName,
String label,
String value)
throws javax.xml.stream.XMLStreamException
tagName - Stringlabel - Stringvalue - String
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeTagPair(String tagName,
String value)
throws javax.xml.stream.XMLStreamException
tagName - Stringvalue - String
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeIndentedText(String text,
int extraIndentation)
throws javax.xml.stream.XMLStreamException
text - String with text.extraIndentation - int optional extra indentation.
javax.xml.stream.XMLStreamException - If there is an error
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||