|
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
org.proteios.io.mzdata.MzDataImpCommonDc
org.proteios.io.mzdata.MzDataImpCommonAnnotation
public class MzDataImpCommonAnnotation
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 |
|---|
| Fields inherited from class org.proteios.io.mzdata.MzDataImpCommonDc |
|---|
anna, dc, factory |
| Fields inherited from class org.proteios.io.mzdata.MzDataImpCommon |
|---|
log |
| Constructor Summary | |
|---|---|
MzDataImpCommonAnnotation(SessionControl sc)
Default constructor. |
|
| Method Summary | |
|---|---|
CvLookup |
fetchCvLookupAnnotation(AnnotationSet as,
String atName,
Type atType,
DbControl argDc)
Fetches annotation value from annotation for given cvLookup annotation type. |
List<CvLookup> |
fetchCvLookupAnnotationList(AnnotationSet as,
Type atType,
DbControl argDc)
Fetches list of cvLookup type annotations. |
CvParam |
fetchCvParamAnnotation(AnnotationSet as,
String atName,
Type atType,
DbControl argDc)
Fetches annotation value from annotation for given cvParam annotation type. |
List<CvParam> |
fetchCvParamAnnotationList(AnnotationSet as,
Type atType,
DbControl argDc)
Fetches list of cvParam type annotations. |
UserParam |
fetchUserParamAnnotation(AnnotationSet as,
String atName,
Type atType,
DbControl argDc)
Fetches annotation value from annotation for given userParam annotation type. |
List<UserParam> |
fetchUserParamAnnotationList(AnnotationSet as,
Type atType,
DbControl argDc)
Fetches list of userParam type annotations. |
void |
storeAnnotation(AnnotationSet as,
String atName,
Type atType,
Item atItem,
String value)
Stores standard annotation. |
void |
storeCvLookupAnnotation(AnnotationSet as,
String lookupCvLabel,
Type atType,
Item atItem,
String lookupFullName,
String lookupVersion,
String lookupAddress)
Stores variable values as cvLookup annotation. |
void |
storeCvParamAnnotation(AnnotationSet as,
String atName,
Type atType,
Item atItem,
String value,
String cvLabel,
String accession)
Stores variable values as cvParam annotation. |
void |
storeUserParamAnnotation(AnnotationSet as,
String atName,
Type atType,
Item atItem,
String value)
Stores variable values as userParam annotation. |
| Methods inherited from class org.proteios.io.mzdata.MzDataImpCommonDc |
|---|
enableDbControl, enableDbControl, getDbControl, getSessionControl, setDbControl |
| Methods inherited from class org.proteios.io.mzdata.MzDataImpCommon |
|---|
blockEnd, blockStart, getBlockTagName, getTempStrBuf, parse, processCData, processCharacters, processInternalEndElement, processInternalStartElement, setBlockTagName, setTempStrBuf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MzDataImpCommonAnnotation(SessionControl sc)
| Method Detail |
|---|
public void storeAnnotation(AnnotationSet as,
String atName,
Type atType,
Item atItem,
String value)
as - AnnotationSet the AnnotationSet to useatName - String the name of the AnnotationTypeatType - Type the type of the AnnotationTypeatItem - Item the Item the AnnotationType should be enabled forvalue - The annotation value
public void storeUserParamAnnotation(AnnotationSet as,
String atName,
Type atType,
Item atItem,
String value)
as - AnnotationSet the AnnotationSet to useatName - String the name of the AnnotationTypeatType - Type the type of the AnnotationTypeatItem - Item the Item the AnnotationType should be enabled forvalue - The annotation value
public void storeCvParamAnnotation(AnnotationSet as,
String atName,
Type atType,
Item atItem,
String value,
String cvLabel,
String accession)
as - AnnotationSet the AnnotationSet to useatName - String the name of the AnnotationTypeatType - Type the type of the AnnotationTypeatItem - Item the Item the AnnotationType should be enabled forvalue - String the annotation value as a StringcvLabel - String the annotation cvLabel as a Stringaccession - String the annotation accession as a String
public void storeCvLookupAnnotation(AnnotationSet as,
String lookupCvLabel,
Type atType,
Item atItem,
String lookupFullName,
String lookupVersion,
String lookupAddress)
as - AnnotationSet the AnnotationSet to uselookupCvLabel - String the name of the AnnotationTypeatType - Type the type of the AnnotationTypeatItem - Item the Item the AnnotationType should be enabled forlookupFullName - String the annotation added parameter name as a
StringlookupVersion - String the annotation added parameter value as a
StringlookupAddress - String the annotation value as a String
public CvLookup fetchCvLookupAnnotation(AnnotationSet as,
String atName,
Type atType,
DbControl argDc)
as - AnnotationSet the AnnotationSet to useatName - String the name of annotationTypeatType - Type the type of the annotationTypeargDc - DbControl the DbControl object to use
public List<CvLookup> fetchCvLookupAnnotationList(AnnotationSet as,
Type atType,
DbControl argDc)
as - AnnotationSet the AnnotationSet to useatType - Type the type of the annotationTypeargDc - DbControl the DbControl object to use
public CvParam fetchCvParamAnnotation(AnnotationSet as,
String atName,
Type atType,
DbControl argDc)
as - AnnotationSet the AnnotationSet to useatName - String the name of annotationTypeatType - Type the type of the annotationTypeargDc - DbControl the DbControl object to use
public List<CvParam> fetchCvParamAnnotationList(AnnotationSet as,
Type atType,
DbControl argDc)
as - AnnotationSet the AnnotationSet to useatType - Type the type of the annotationTypeargDc - DbControl the DbControl object to use
public UserParam fetchUserParamAnnotation(AnnotationSet as,
String atName,
Type atType,
DbControl argDc)
as - AnnotationSet the AnnotationSet to useatName - String the name of annotationTypeatType - Type the type of the annotationTypeargDc - DbControl the DbControl object to use
public List<UserParam> fetchUserParamAnnotationList(AnnotationSet as,
Type atType,
DbControl argDc)
as - AnnotationSet the AnnotationSet to useatType - Type the type of the annotationTypeargDc - DbControl the DbControl object to use
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||