public class ProbeXmlParser
extends java.lang.Object
Probe from an XML file. Returns
an instance of the appropriate Probe species. This class simply
provides methods for opening an xml document and creating a
DataAdaptor for it. It delegates the task of reading the
Probe definition and instantiating the Probe to that
class.| Constructor and Description |
|---|
ProbeXmlParser() |
| Modifier and Type | Method and Description |
|---|---|
static Probe<?> |
parse(java.lang.String fileUri)
Parse the XML file specified by the supplied URI.
|
Probe<?> |
parseAdaptor(DataAdaptor adaptor)
Parse the given data source and build a probe object according
to that described.
|
static Probe<?> |
parseDataAdaptor(DataAdaptor adaptor)
Parse the given data source and build a probe object according
to that described.
|
Probe<?> |
parseProbeFile(java.lang.String fileUri)
Parse the XML file specified by the supplied URI.
|
public static Probe<?> parse(java.lang.String fileUri) throws ParsingException
Probe of the appropriate species.fileUri - the URI specifying the XML file to parseParsingExceptionpublic static Probe<?> parseDataAdaptor(DataAdaptor adaptor) throws ParsingException
parseAdaptor(DataAdaptor).adaptor - data source containing probe descriptionParsingException - general formating error in the data sourcepublic Probe<?> parseProbeFile(java.lang.String fileUri) throws ParsingException
Probe of the appropriate species.fileUri - the URI specifying the XML file to parseParsingExceptionpublic Probe<?> parseAdaptor(DataAdaptor adaptor) throws ParsingException
Probe.readFrom(DataAdaptor) to do
the actual parsing.adaptor - data source containing probe descriptionParsingException - general formating error in the data source