uk.co.lakesidetech.spxforms.web.bind.jxpath
Class JXPathJDOMFactory

java.lang.Object
  extended byorg.apache.commons.jxpath.AbstractFactory
      extended byuk.co.lakesidetech.spxforms.web.bind.jxpath.JXPathJDOMFactory

public class JXPathJDOMFactory
extends org.apache.commons.jxpath.AbstractFactory

A JXPath AbstractFactory that creates JDOM elements. This code was based off code from Apache Cocoon, version 2.1.

Author:
Don Brown

Constructor Summary
JXPathJDOMFactory()
           
 
Method Summary
 boolean createObject(org.apache.commons.jxpath.JXPathContext context, org.apache.commons.jxpath.Pointer pointer, java.lang.Object parent, java.lang.String name, int index)
          Tries to create an element and attach it to the parent element or document.
 boolean declareVariable(org.apache.commons.jxpath.JXPathContext context, java.lang.String name)
          Not implemented, always returns false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JXPathJDOMFactory

public JXPathJDOMFactory()
Method Detail

createObject

public boolean createObject(org.apache.commons.jxpath.JXPathContext context,
                            org.apache.commons.jxpath.Pointer pointer,
                            java.lang.Object parent,
                            java.lang.String name,
                            int index)
Tries to create an element and attach it to the parent element or document. Warning: JXPath does not call this method for an element if the end node is an attribute.


declareVariable

public boolean declareVariable(org.apache.commons.jxpath.JXPathContext context,
                               java.lang.String name)
Not implemented, always returns false