org.apache.cocoon.sitemap
Class XSLTFactoryLoader

java.lang.Object
  |
  +--org.apache.cocoon.sitemap.XSLTFactoryLoader

public class XSLTFactoryLoader
extends java.lang.Object

This class is used as a XSLT extension class.

Version:
CVS $Id: XSLTFactoryLoader.java,v 1.6.2.1 2002/06/30 23:26:56 vgritsenko Exp $
Author:
Giacomo Pati, Berin Loritsch

Constructor Summary
XSLTFactoryLoader()
           
 
Method Summary
 java.lang.String escape(java.lang.String string)
          Escapes '"' and '\' characters in a String (add a '\' before them) so that it can be inserted in java source.
 java.lang.String escapeBraces(java.lang.String string)
          Escapes like escape(String) after having removed any '\' preceding a '{'.
 java.lang.String getClassSource(java.lang.String className, java.lang.String prefix, java.lang.String pattern, org.w3c.dom.NodeList conf)
           
 java.lang.String getMethodSource(java.lang.String className, org.w3c.dom.NodeList conf)
           
 java.lang.String getParameterSource(java.lang.String className, org.w3c.dom.NodeList conf)
           
 boolean hasSubstitutions(java.lang.String pattern)
           
 boolean isFactory(java.lang.String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLTFactoryLoader

public XSLTFactoryLoader()
Method Detail

getClassSource

public java.lang.String getClassSource(java.lang.String className,
                                       java.lang.String prefix,
                                       java.lang.String pattern,
                                       org.w3c.dom.NodeList conf)
                                throws java.lang.ClassNotFoundException,
                                       java.lang.InstantiationException,
                                       java.lang.IllegalAccessException,
                                       java.lang.Exception

getParameterSource

public java.lang.String getParameterSource(java.lang.String className,
                                           org.w3c.dom.NodeList conf)
                                    throws java.lang.ClassNotFoundException,
                                           java.lang.InstantiationException,
                                           java.lang.IllegalAccessException,
                                           java.lang.Exception

getMethodSource

public java.lang.String getMethodSource(java.lang.String className,
                                        org.w3c.dom.NodeList conf)
                                 throws java.lang.ClassNotFoundException,
                                        java.lang.InstantiationException,
                                        java.lang.IllegalAccessException,
                                        java.lang.Exception

isFactory

public boolean isFactory(java.lang.String className)

escape

public java.lang.String escape(java.lang.String string)
Escapes '"' and '\' characters in a String (add a '\' before them) so that it can be inserted in java source.

escapeBraces

public java.lang.String escapeBraces(java.lang.String string)
Escapes like escape(String) after having removed any '\' preceding a '{'. This is used to insert a pattern with escaped subsitution syntax in Java source.

hasSubstitutions

public boolean hasSubstitutions(java.lang.String pattern)


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.