org.benow.web.extension
Class Extension

java.lang.Object
  extended by org.benow.web.extension.Extension
Direct Known Subclasses:
BlueExtension, CounterExtension, GreenExtension, RedExtension, ServiceExtension, TranslationExtension

public abstract class Extension
extends java.lang.Object

An XSL extension. By extending this class, the class will be made available as an XSL extension. Each public method in the extended class will be made into a call. The package holding the extension will become the namespace.

Author:
andy

Nested Class Summary
static interface Extension.IsElement
          Specify this Annotation to indicate that a method is to become an element in the extension.
 
Field Summary
protected  org.apache.xalan.extensions.XSLProcessorContext context
           
protected  org.apache.xalan.templates.ElemExtensionCall extElem
           
 
Constructor Summary
protected Extension()
           
 
Method Summary
protected  org.w3c.dom.NodeList getChildElementsByTagName(java.lang.String tagName)
          Get direct child elements of current extElem with given name.
protected  java.lang.String getTextContent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected org.apache.xalan.extensions.XSLProcessorContext context

extElem

protected org.apache.xalan.templates.ElemExtensionCall extElem
Constructor Detail

Extension

protected Extension()
Method Detail

getChildElementsByTagName

protected org.w3c.dom.NodeList getChildElementsByTagName(java.lang.String tagName)
Get direct child elements of current extElem with given name. Use this as extElem.getElementsByTagName is not implemented.

Parameters:
tagName -
Returns:

getTextContent

protected java.lang.String getTextContent()
Returns:
the text content of the current extension element