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. It is used by the sitemap
generation stylesheet to load MatcherFactory
s or
SelectorFactory
s to get the generated source code.
Note: This class uses a static log instance to
set up the instances it creates. This is suboptimal.
- Version:
- CVS $Id: XSLTFactoryLoader.java,v 1.5 2002/02/22 07:03:55 cziegeler Exp $
- Author:
- Giacomo Pati, Berin Loritsch
Field Summary |
protected static org.apache.log.Logger |
log
|
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)
|
static void |
setLogger(org.apache.log.Logger logger)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.log.Logger log
XSLTFactoryLoader
public XSLTFactoryLoader()
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
setLogger
public static void setLogger(org.apache.log.Logger logger)
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.