|
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.OMSSAParameterFileUtil
public class OMSSAParameterFileUtil
This class implements the OMSSAParameterFileUtilInterface that defines methods to access input data from an OMSSA input file.
| Constructor Summary | |
|---|---|
OMSSAParameterFileUtil()
Default constructor. |
|
OMSSAParameterFileUtil(File omssaParameterFile)
Constructor that takes an OMSSA parameter file item as parameter. |
|
OMSSAParameterFileUtil(InputStream xmlInputStream)
Constructor that takes an OMSSA input XML input stream as parameter. |
|
| Method Summary | |
|---|---|
void |
exportOMSSAParameterSet(OMSSAParameterSet omssaParameterSet)
Export OMSSAParameterSet 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> |
fetchEnzymeAlternativesList()
Enxyme alternatives list, key= |
Hashtable<String,String> |
fetchEnzymeAttributeHashtable()
Enzyme attribute hash table, key= |
List<String> |
fetchIonTypeAlternativesList()
Ion type alternatives list, key= |
Hashtable<String,String> |
fetchIonTypeAttributeHashtable()
Ion type attribute hash table, key= |
List<String> |
fetchModificationAlternativesList()
Modification alternatives list, key= |
Hashtable<String,String> |
fetchModificationAttributeHashtable()
Modification attribute hash table, key= |
OMSSAParameterSet |
fetchOMSSAParameterSet()
Fetch OMSSAParameterSet item from input stream. |
List<String> |
fetchSearchTypeAlternativesList()
Search type alternatives list, key= |
Hashtable<String,String> |
fetchSearchTypeAttributeHashtable()
Search type attribute hash table, key= |
List<String> |
fetchSpeciesAlternativesList()
Species alternatives list, key= |
Hashtable<String,String> |
fetchSpeciesAttributeHashtable()
Species attribute hash table, key= |
List<String> |
fetchZDependenceAlternativesList()
Z dependence alternatives list, key= |
Hashtable<String,String> |
fetchZDependenceAttributeHashtable()
Z dependence attribute hash table, key= |
File |
getOMSSAParameterFile()
Get the OMSSA parameter file item. |
OMSSAParameterSet |
getOMSSAParameterSet()
Get the OMSSA parameter set item. |
String |
getXMLFilePath()
Get OMSSA input XML file path. |
InputStream |
getXMLInputStream()
Get OMSSA input XML input stream. |
OutputStream |
getXMLOutputStream()
Get OMSSA input XML output stream. |
String |
getXsdFilePath()
Get XSD schema file to validate against. |
boolean |
importable()
Validates first element of input stream. |
void |
saveOMSSAParameterSet()
Saves OMSSA parameter set from OMSSAParameterSet item instance variable to XML output stream. |
void |
saveOMSSAParameterSet(OMSSAParameterSet omssaParameterSetArg)
Saves OMSSA parameter set from OMSSAParameterSet item to XML output stream. |
void |
setOMSSAParameterFile(File omssaParameterFile)
Set the OMSSA parameter file item. |
void |
setOMSSAParameterSet(OMSSAParameterSet omssaParameterSet)
Set the OMSSA parameter set item. |
void |
setXMLFilePath(String xmlFilePath)
Set OMSSA input XML file path. |
void |
setXMLInputStream(InputStream xmlInputStream)
Set OMSSA input XML input stream. |
void |
setXMLOutputStream(OutputStream xmlOutputStream)
Set OMSSA input XML output stream. |
void |
setXsdFilePath(String xsdFilePath)
Set XSD schema file to validate against. |
boolean |
valid()
Validates OMSSA input XML input stream against current OMSSA 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 an OMSSA input XML single tag with "value" attribute as label. |
void |
writeLabeledTagPair(String tagName,
String label,
String value)
Writes an OMSSA 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 an OMSSA 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 OMSSAParameterFileUtil()
public OMSSAParameterFileUtil(File omssaParameterFile)
omssaParameterFile - File OMSSA parameter file item.public OMSSAParameterFileUtil(InputStream xmlInputStream)
xmlInputStream - InputStream OMSSA 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 OMSSA input XML file.public InputStream getXMLInputStream()
public void setXMLInputStream(InputStream xmlInputStream)
xmlInputStream - InputStream OMSSA input XML input stream.public OutputStream getXMLOutputStream()
public void setXMLOutputStream(OutputStream xmlOutputStream)
xmlOutputStream - OutputStream OMSSA input XML output stream.public File getOMSSAParameterFile()
public void setOMSSAParameterFile(File omssaParameterFile)
omssaParameterFile - File OMSSA parameter file item.public OMSSAParameterSet getOMSSAParameterSet()
getOMSSAParameterSet in interface OMSSAParameterFileUtilInterfacepublic void setOMSSAParameterSet(OMSSAParameterSet omssaParameterSet)
omssaParameterSet - OMSSAParameterSet OMSSA 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 OMSSAParameterSet fetchOMSSAParameterSet()
public void saveOMSSAParameterSet()
public void saveOMSSAParameterSet(OMSSAParameterSet omssaParameterSetArg)
omssaParameterSetArg - OMSSAParameterSet item with settings data.public Hashtable<String,String> fetchSearchTypeAttributeHashtable()
public List<String> fetchSearchTypeAlternativesList()
public Hashtable<String,String> fetchIonTypeAttributeHashtable()
public List<String> fetchIonTypeAlternativesList()
public Hashtable<String,String> fetchZDependenceAttributeHashtable()
public List<String> fetchZDependenceAlternativesList()
public Hashtable<String,String> fetchEnzymeAttributeHashtable()
public List<String> fetchEnzymeAlternativesList()
public Hashtable<String,String> fetchSpeciesAttributeHashtable()
public List<String> fetchSpeciesAlternativesList()
public Hashtable<String,String> fetchModificationAttributeHashtable()
public List<String> fetchModificationAlternativesList()
public String fetchAttribute(Hashtable<String,String> hashtable,
String tagValue)
hashtable - HashtabletagValue - String The XML tag value to find the attribute for.
public void exportOMSSAParameterSet(OMSSAParameterSet omssaParameterSet)
omssaParameterSet - OMSSAParameterSet 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 | |||||||||