|
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.MzDataImportTest
public class MzDataImportTest
This class supports tests of possible mzData input streams. An mzData file contains information on a mass spectrometry experiment. The XML input stream is checked for an initial mzData XML start tag. Validatation against an XML Schema Definition file is optional.
| Constructor Summary | |
|---|---|
MzDataImportTest()
Default constructor. |
|
MzDataImportTest(String xsdFilePath)
Constructor that takes an xml schema definition as parameter. |
|
| Method Summary | |
|---|---|
String |
getXMLFilePath()
Get mzData XML file path. |
String |
getXsdFilePath()
Get XSD schema file to validate against. |
boolean |
importable(File file)
|
boolean |
importable(InputStream iStream)
Checks if XML input stream has mzData XML start tag. |
boolean |
importable(String xmlFilePath)
Checks if XML file has mzData XML start tag. |
void |
processEndElement(javax.xml.stream.XMLStreamReader parser)
Processes an EndElement event. |
void |
processEvent(int event,
javax.xml.stream.XMLStreamReader parser)
Processes an event. |
void |
processStartElement(javax.xml.stream.XMLStreamReader parser)
Processes a StartElement event. |
void |
setXMLFilePath(String xmlFilePath)
Set mzData XML file path. |
void |
setXsdFilePath(String xsdFilePath)
Set XSD schema file to validate against. |
boolean |
valid(InputStream xmlInputStream)
Validates mzData input stream against current mzData XSD file. |
boolean |
valid(String xmlFilePath)
Validates mzData file against current mzData XSD file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MzDataImportTest()
public MzDataImportTest(String xsdFilePath)
xsdFilePath - The XML Schema Definition to use.| 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 mzData XML file.
public boolean valid(String xmlFilePath)
throws javax.xml.stream.XMLStreamException,
SAXException
xmlFilePath - String with path of XML file to validate.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
SAXException
public boolean valid(InputStream xmlInputStream)
throws javax.xml.stream.XMLStreamException,
SAXException
xmlInputStream - XML input stream to validate.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
SAXException
public boolean importable(File file)
throws javax.xml.stream.XMLStreamException,
SAXException
javax.xml.stream.XMLStreamException
SAXExceptionpublic boolean importable(String xmlFilePath)
xmlFilePath - String with path of XML file to check.public boolean importable(InputStream iStream)
iStream - XML input stream to check.
public void processEvent(int event,
javax.xml.stream.XMLStreamReader parser)
throws javax.xml.stream.XMLStreamException
event - int current event.parser - XMLStreamReader instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void processStartElement(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 processEndElement(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 | |||||||||