hudson.plugins.accurev
Interface AccurevLauncher.ICmdOutputXmlParser<TResult,TContext>

Type Parameters:
TResult - The output of the parsing process.
TContext - Context object that will be passed to the parser each time it is called.
All Known Implementing Classes:
ParseRefTreeExternalFile, ParseShowReftrees
Enclosing class:
AccurevLauncher

public static interface AccurevLauncher.ICmdOutputXmlParser<TResult,TContext>

Interface implemented by code that interprets the output of AccuRev commands.

Intended to separate out the running of commands from the actual parsing of their results in an attempt to reduce code duplication.


Method Summary
 TResult parse(org.xmlpull.v1.XmlPullParser parser, TContext context)
          Parses the command's output.
 

Method Detail

parse

TResult parse(org.xmlpull.v1.XmlPullParser parser,
              TContext context)
              throws AccurevLauncher.UnhandledAccurevCommandOutput,
                     IOException,
                     org.xmlpull.v1.XmlPullParserException
Parses the command's output.

Parameters:
parser - The XmlPullParser that contains the output of the command.
context - Context passed in when the command was run.
Returns:
The result of the parsing.
Throws:
AccurevLauncher.UnhandledAccurevCommandOutput - if the command output was invalid.
IOException
org.xmlpull.v1.XmlPullParserException


Copyright © 2004-2013. All Rights Reserved.