org.viewaframework.util
Class ViewActionDescriptorExpressionsHandler

java.lang.Object
  extended by org.viewaframework.util.ViewActionDescriptorExpressionsHandler

public class ViewActionDescriptorExpressionsHandler
extends Object

This class translates simple xpath expressions into xml.

Since:
1.0
Author:
Mario Garcia

Constructor Summary
ViewActionDescriptorExpressionsHandler()
           
 
Method Summary
 Document getXML(List<String> actionDescriptors)
          This method returns an xml document built upon the xpath expressions
 Document getXML(Reader reader)
          This method returns an xml document built upon the xpath expressions
 String getXMLAsString(Document document)
          Method for retrieving the menu contruction as a String object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewActionDescriptorExpressionsHandler

public ViewActionDescriptorExpressionsHandler()
Method Detail

getXML

public Document getXML(List<String> actionDescriptors)
                throws Exception
This method returns an xml document built upon the xpath expressions

Parameters:
actionDescriptors - A list of xpath expressions
Returns:
An xml representation of the expressions
Throws:
Exception - If anything goes wrong

getXML

public Document getXML(Reader reader)
                throws Exception
This method returns an xml document built upon the xpath expressions

Parameters:
actionDescriptors - A list of xpath expressions
Returns:
An xml representation of the expressions
Throws:
Exception - If anything goes wrong

getXMLAsString

public String getXMLAsString(Document document)
                      throws Exception
Method for retrieving the menu contruction as a String object. Mostly used for logging purposes.

Parameters:
document - xml document
Returns:
A String representation of the ActionDescriptor list
Throws:
Exception - If anything goes wrong


Copyright © 2010. All Rights Reserved.