|
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.MzDataImpCommon
public class MzDataImpCommon
This class supports import of mzData files into Proteios. It contains common
attributes and methods, and is intended to be the parent class for other
classes that process an XML block in an mzData file. An mzData file contains
information on a mass spectrometry experiment. The mzData file is first
vaildated against the XML Schema Definition file mzdata.xsd. If the file is
valid, its content is parsed and selected information stored in Proteios. The
mzData file is parsed using cursor-based XML stream parsing. The StAX (Stream
API for XML) parser finds start and stop (end) tags, which are then
processed. Element attributes are located in the start tag, and elements of
simple types are stored directly after the start tag is read. For more
complex elements, values of attributes and sub-elements are collected in
temporary variables, until the end tag is reached, and the colelcted contents
are stored. Example: XML tag
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
Logger used. |
| Constructor Summary | |
|---|---|
MzDataImpCommon()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
blockEnd(javax.xml.stream.XMLStreamReader parser)
Processes end of XML block processed by this class. |
void |
blockStart(javax.xml.stream.XMLStreamReader parser)
Processes start of XML block processed by this class. |
String |
getBlockTagName()
Get the blockTagName. |
StringBuffer |
getTempStrBuf()
Get the StringBuffer tempStrBuf value. |
void |
parse(javax.xml.stream.XMLStreamReader parser)
Parse the current XML block. |
void |
processCData(javax.xml.stream.XMLStreamReader parser)
Processes a CData event. |
void |
processCharacters(javax.xml.stream.XMLStreamReader parser)
Processes a Characters event. |
void |
processInternalEndElement(javax.xml.stream.XMLStreamReader parser)
Processes an internal EndElement event. |
void |
processInternalStartElement(javax.xml.stream.XMLStreamReader parser)
Processes an internal StartElement event. |
void |
setBlockTagName(String blockTagName)
Set the blockTagName. |
void |
setTempStrBuf(StringBuffer tempStrBuf)
Set the StringBuffer tempStrBuf value. |
| 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 MzDataImpCommon()
| Method Detail |
|---|
public String getBlockTagName()
public void setBlockTagName(String blockTagName)
blockTagName - String the XML block tag name to set.public StringBuffer getTempStrBuf()
public void setTempStrBuf(StringBuffer tempStrBuf)
tempStrBuf - StringBuffer tempStrBuf value to set.
public void parse(javax.xml.stream.XMLStreamReader parser)
throws javax.xml.stream.XMLStreamException
parser - XMLStreamReader instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void processCharacters(javax.xml.stream.XMLStreamReader parser)
throws javax.xml.stream.XMLStreamException
parser - XMLStreamReader instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void processCData(javax.xml.stream.XMLStreamReader parser)
throws javax.xml.stream.XMLStreamException
parser - XMLStreamReader instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void blockStart(javax.xml.stream.XMLStreamReader parser)
throws javax.xml.stream.XMLStreamException
parser - XMLStreamReader instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void blockEnd(javax.xml.stream.XMLStreamReader parser)
throws javax.xml.stream.XMLStreamException
parser - XMLStreamReader instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void processInternalStartElement(javax.xml.stream.XMLStreamReader parser)
throws javax.xml.stream.XMLStreamException
parser - XMLStreamReader instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void processInternalEndElement(javax.xml.stream.XMLStreamReader parser)
throws javax.xml.stream.XMLStreamException
parser - XMLStreamReader 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 | |||||||||