com.oroad.stxx.util
Class JDOMFactory

java.lang.Object
  extended byorg.apache.commons.jxpath.AbstractFactory
      extended bycom.oroad.stxx.util.JDOMFactory

public class JDOMFactory
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
JDOMFactory()
           
 
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

JDOMFactory

public JDOMFactory()
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