net.sourceforge.cathcart
Class TaskParser

java.lang.Object
  extended by net.sourceforge.cathcart.TaskParser

public class TaskParser
extends Object

Parses an xml configuration file for information on valid tasks and properties.

Author:
Steven Hale

Field Summary
static String URL
           
 
Constructor Summary
TaskParser(InputStream stream, DocumentBuilderFactory factory)
           
 
Method Summary
 Map<String,PropertyType> getPropertyTypes(Document doc, String toolName)
           
protected  Map<String,PropertyType> getPropertyTypes(Element tool)
           
 Element getTool(String toolName, Document doc)
           
 List<Element> getTools(Document doc)
           
 String getXsl(String toolName)
           
 Document parse()
           
 String print(Document doc)
           
 StringBuffer printList(Collection<String> items, boolean italics)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL

public static final String URL
See Also:
Constant Field Values
Constructor Detail

TaskParser

public TaskParser(InputStream stream,
                  DocumentBuilderFactory factory)
Method Detail

parse

public Document parse()

getTools

public List<Element> getTools(Document doc)

getTool

public Element getTool(String toolName,
                       Document doc)

getXsl

public String getXsl(String toolName)

getPropertyTypes

protected Map<String,PropertyType> getPropertyTypes(Element tool)

printList

public StringBuffer printList(Collection<String> items,
                              boolean italics)

print

public String print(Document doc)

getPropertyTypes

public Map<String,PropertyType> getPropertyTypes(Document doc,
                                                 String toolName)


Copyright © 2010. All Rights Reserved.