|
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.mzdata.MzDataExpCommon
public class MzDataExpCommon
This class supports export of mzData files from Proteios. An mzData file contains information on a mass spectrometry experiment. Given a Proteios peakListSet, MzDataExporter fetches stored data related to this peakListSet and stores it in an mzData file.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
Logger used. |
| Constructor Summary | |
|---|---|
MzDataExpCommon()
Default constructor. |
|
| Method Summary | |
|---|---|
String |
getBlockTagName()
Get the blockTagName. |
void |
setBlockTagName(String blockTagName)
Set the blockTagName. |
void |
write(XMLCrudeWriter xmlCrudeWriter)
Write the current XML block. |
void |
writeAttribute(XMLCrudeWriter xmlCrudeWriter,
String attrName,
String attrValue)
Writes XML attribute for current XML block. |
void |
writeEndTag(XMLCrudeWriter xmlCrudeWriter)
Writes XML end tag for current XML block. |
void |
writeNamespace(XMLCrudeWriter xmlCrudeWriter,
String name,
String value)
Writes XML namespace for current XML block. |
void |
writeSimpleElementPair(XMLCrudeWriter xmlCrudeWriter,
String data)
Convenience method for writing simple element pair for current XML block. |
void |
writeSimpleElementPair(XMLCrudeWriter xmlCrudeWriter,
String elementName,
String data)
Convenience method for writing simple element pair. |
void |
writeSingleElementEnd(XMLCrudeWriter xmlCrudeWriter)
Writes XML single element end. |
void |
writeStartElement(XMLCrudeWriter xmlCrudeWriter)
Writes XML start element for current XML block. |
void |
writeStartElementEnd(XMLCrudeWriter xmlCrudeWriter)
Writes XML start element end. |
void |
writeStartListTag(XMLCrudeWriter xmlCrudeWriter,
int count)
Writes XML start list tag for current XML block. |
void |
writeStartTag(XMLCrudeWriter xmlCrudeWriter)
Writes XML start tag for current XML block. |
String |
zeroPad(double doubleNum,
int minNumDecimals)
Pad double number string with zeros if necessary |
String |
zeroPad(float floatNum,
int minNumDecimals)
Pad float number string with zeros if necessary |
String |
zeroPad(String numAsString,
int minNumDecimals)
Pad number string with zeros if necessary |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public MzDataExpCommon()
| Method Detail |
|---|
public String getBlockTagName()
public void setBlockTagName(String blockTagName)
blockTagName - String the XML block tag name to set.
public void writeStartElement(XMLCrudeWriter xmlCrudeWriter)
throws javax.xml.stream.XMLStreamException
xmlCrudeWriter - XMLCrudeWriter instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeAttribute(XMLCrudeWriter xmlCrudeWriter,
String attrName,
String attrValue)
throws javax.xml.stream.XMLStreamException
xmlCrudeWriter - XMLCrudeWriter instance.attrName - String the name of the attribute..attrValue - String the value of the attribute..
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeNamespace(XMLCrudeWriter xmlCrudeWriter,
String name,
String value)
throws javax.xml.stream.XMLStreamException
xmlCrudeWriter - XMLCrudeWriter instance.name - String with namespace name.value - String with namespace value.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeStartElementEnd(XMLCrudeWriter xmlCrudeWriter)
throws javax.xml.stream.XMLStreamException
xmlCrudeWriter - XMLCrudeWriter instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeStartTag(XMLCrudeWriter xmlCrudeWriter)
throws javax.xml.stream.XMLStreamException
xmlCrudeWriter - XMLCrudeWriter instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeStartListTag(XMLCrudeWriter xmlCrudeWriter,
int count)
throws javax.xml.stream.XMLStreamException
xmlCrudeWriter - XMLCrudeWriter instance.count - int the number of XML blocks in the list.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeEndTag(XMLCrudeWriter xmlCrudeWriter)
throws javax.xml.stream.XMLStreamException
xmlCrudeWriter - XMLCrudeWriter instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeSingleElementEnd(XMLCrudeWriter xmlCrudeWriter)
throws javax.xml.stream.XMLStreamException
xmlCrudeWriter - XMLCrudeWriter instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeSimpleElementPair(XMLCrudeWriter xmlCrudeWriter,
String elementName,
String data)
throws javax.xml.stream.XMLStreamException
xmlCrudeWriter - XMLCrudeWriter instance.elementName - String with element name.data - String with element data.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void writeSimpleElementPair(XMLCrudeWriter xmlCrudeWriter,
String data)
throws javax.xml.stream.XMLStreamException
xmlCrudeWriter - XMLCrudeWriter instance.data - String with element data.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public String zeroPad(float floatNum,
int minNumDecimals)
floatNum - float Value to formatminNumDecimals - int Minimum number of decimals in output
public String zeroPad(double doubleNum,
int minNumDecimals)
doubleNum - double Value to formatminNumDecimals - int Minimum number of decimals in output
public String zeroPad(String numAsString,
int minNumDecimals)
numAsString - String with number value to formatminNumDecimals - int Minimum number of decimals in output
public void write(XMLCrudeWriter xmlCrudeWriter)
throws javax.xml.stream.XMLStreamException
xmlCrudeWriter - XMLCrudeWriter instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||