org.apache.cocoon.components.modules.input
Class JXPathHelper

java.lang.Object
  extended byorg.apache.cocoon.components.modules.input.JXPathHelper

public class JXPathHelper
extends Object

Version:
$Id: JXPathHelper.java 160295 2005-04-06 13:59:30Z vgritsenko $
Author:
Christian Haul, Vadim Gritsenko

Method Summary
static Object getAttribute(String name, Configuration modeConf, JXPathHelperConfiguration setup, Object contextObj)
           
static Iterator getAttributeNames(JXPathHelperConfiguration setup, Object contextObj)
           
static Object[] getAttributeValues(String name, Configuration modeConf, JXPathHelperConfiguration setup, Object contextObj)
           
static JXPathHelperConfiguration setup(Configuration config)
          Configure component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setup

public static JXPathHelperConfiguration setup(Configuration config)
                                       throws ConfigurationException
Configure component. Preprocess list of packages, functions and namespaces to add to the JXPath context later. This method used in both AbstractJXPathModule and JXPathMetaModule to configure JXPath.

Parameters:
config - a Configuration value
Throws:
ConfigurationException - if an error occurs

getAttribute

public static Object getAttribute(String name,
                                  Configuration modeConf,
                                  JXPathHelperConfiguration setup,
                                  Object contextObj)
                           throws ConfigurationException
Throws:
ConfigurationException

getAttributeValues

public static Object[] getAttributeValues(String name,
                                          Configuration modeConf,
                                          JXPathHelperConfiguration setup,
                                          Object contextObj)
                                   throws ConfigurationException
Throws:
ConfigurationException

getAttributeNames

public static Iterator getAttributeNames(JXPathHelperConfiguration setup,
                                         Object contextObj)
                                  throws ConfigurationException
Throws:
ConfigurationException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.