org.rundeck.api.parser
Class ListParser<T>

java.lang.Object
  extended by org.rundeck.api.parser.ListParser<T>
All Implemented Interfaces:
XmlNodeParser<List<T>>

public class ListParser<T>
extends Object
implements XmlNodeParser<List<T>>

Parser for a List of elements

Author:
Vincent Behar

Constructor Summary
ListParser(XmlNodeParser<T> parser, String xpath)
           
 
Method Summary
 List<T> parseXmlNode(org.dom4j.Node node)
          Parse the given XML Node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListParser

public ListParser(XmlNodeParser<T> parser,
                  String xpath)
Parameters:
parser - for an individual element
xpath - of the elements
Method Detail

parseXmlNode

public List<T> parseXmlNode(org.dom4j.Node node)
Description copied from interface: XmlNodeParser
Parse the given XML Node

Specified by:
parseXmlNode in interface XmlNodeParser<List<T>>
Returns:
any object holding the converted value


Copyright © 2011. All Rights Reserved.