au.edu.anu.portal.portlets.sakaiconnector.utils
Class XmlParser

java.lang.Object
  extended by au.edu.anu.portal.portlets.sakaiconnector.utils.XmlParser

public class XmlParser
extends Object

A collection of methods to parse XML into various lists and objects Ideally these should be genericised to a generic parsing algorithm

Author:
Steve Swinsburg (steve.swinsburg@anu.edu.au)

Constructor Summary
XmlParser()
           
 
Method Summary
static List<Tool> parseListOfPages(String xml)
          Parse the given XML into a list of Tools.
static List<Site> parseListOfSites(String xml)
          Parse the given XML into a list of Sites.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlParser

public XmlParser()
Method Detail

parseListOfSites

public static List<Site> parseListOfSites(String xml)
Parse the given XML into a list of Sites. This comes from getSitesUserCanAccess.

Parameters:
xml -
Returns:

parseListOfPages

public static List<Tool> parseListOfPages(String xml)
Parse the given XML into a list of Tools. This comes from getPagesAndToolsForSite.

Parameters:
xml -
Returns:


Copyright © 2009-2012 Division of Information, Australian National University. All Rights Reserved.