Package jspecview.source
Class NMRMLReader
java.lang.Object
jspecview.source.NMRMLReader
- All Implemented Interfaces:
SourceReader
Representation of an nmrML Source.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected booleanprotected doubleprotected SBprotected intprotected Stringprotected doubleprotected doubleprotected Stringprotected booleanprotected intprotected doubleprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected doubleprotected Stringprotected Stringprotected Stringprotected XMLParserprotected Stringprotected Stringprotected doubleprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected intprotected JDXSourceprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected double[]protected doubleprotected Stringprotected double[]protected doubleprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected voidprotected voidgetSource(String filePath, BufferedReader br) protected JDXSourcegetXML(BufferedReader br) protected voidprotected voidprocess(int tagId, boolean requiresEndTag) Process the audit XML eventsprotected voidprocessEndTag(int tagId) protected voidprocessErrors(String type) protected booleanprocessTag(int tagId) Process the XML events.protected voidprocessXML(int i0, int i1)
-
Field Details
-
source
-
filePath
-
parser
-
tagName
-
attrList
-
title
-
owner
-
origin
-
tmpEnd
-
molForm
-
techname
-
npoints
protected int npoints -
samplenum
protected int samplenum -
yaxisData
protected double[] yaxisData -
xaxisData
protected double[] xaxisData -
xUnits
-
yUnits
-
vendor
-
modelType
-
LongDate
-
pathlength
-
identifier
-
plLabel
-
resolution
-
resLabel
-
LocName
-
LocContact
-
casName
-
sampleowner
-
obNucleus
-
strObFreq
-
increasing
protected boolean increasing -
continuous
protected boolean continuous -
ivspoints
protected int ivspoints -
evspoints
protected int evspoints -
sampleRefNum
protected int sampleRefNum -
deltaX
protected double deltaX -
xFactor
protected double xFactor -
yFactor
protected double yFactor -
firstX
protected double firstX -
lastX
protected double lastX -
firstY
protected double firstY -
obFreq
protected double obFreq -
refPoint
protected double refPoint -
casRN
-
sampleID
-
errorLog
-
-
Constructor Details
-
NMRMLReader
public NMRMLReader()
-
-
Method Details
-
getXML
-
processTag
Process the XML events. Invoked for every start tag. Invoked by the superclass method XMLSource.process(tagId, requiresEndTag)- Parameters:
tagId-- Returns:
- true to continue looking for encapsulated tags false to process once only (no encapsulated tags of interest)
- Throws:
Exception
-
processEndTag
- Throws:
Exception
-
getSource
- Specified by:
getSourcein interfaceSourceReader
-
getSimpleXmlReader
-
checkStart
- Throws:
Exception
-
populateVariables
protected void populateVariables() -
checkPointCount
protected boolean checkPointCount() -
processErrors
-
processXML
- Throws:
Exception
-
process
protected void process(int tagId, boolean requiresEndTag) Process the audit XML events- Parameters:
tagId-requiresEndTag-
-