This project has retired. For details please refer to its
Attic page .
VariableExpanderTransformer (Apache Cocoon 3: Parent 3.0.0-beta-1-SNAPSHOT API)
org.apache.cocoon.sax.component
Class VariableExpanderTransformer
java.lang.Object
org.apache.cocoon.pipeline.component.AbstractPipelineComponent
org.apache.cocoon.sax.AbstractSAXPipelineComponent
org.apache.cocoon.sax.AbstractSAXProducer
org.apache.cocoon.sax.AbstractSAXTransformer
org.apache.cocoon.sax.component.VariableExpanderTransformer
All Implemented Interfaces: Consumer , PipelineComponent , Producer , SAXConsumer , SAXPipelineComponent , SAXProducer , ContentHandler , LexicalHandler
public final class VariableExpanderTransformer extends AbstractSAXTransformer implements SAXConsumer
A transformer that expands variables in the form of ${}
inside the processing document.
The idea has been borrowed from Apache Commons Digester, Apache Ant, Apache Maven.
Version:
$Id: VariableExpanderTransformer.html 1343757 2012-05-29 14:45:42Z ilgrosso $
Methods inherited from class org.apache.cocoon.sax.AbstractSAXTransformer
comment , endCDATA , endDocument , endDTD , endEntity , endPrefixMapping , endSAXRecording , endTextRecording , findPrefixMapping , ignorableWhitespace , processingInstruction , removeRecorder , sendEndPrefixMapping , sendStartPrefixMapping , setDocumentLocator , setRecorder , skippedEntity , startCDATA , startDocument , startDTD , startEntity , startPrefixMapping , startSAXRecording , startTextRecording
VariableExpanderTransformer
public VariableExpanderTransformer ()
setProperty
public void setProperty (String key,
String value)
loadAll
public void loadAll (Map <String ,String > variables)
loadAll
public void loadAll (Properties variables)
loadSystemProperties
public void loadSystemProperties ()
loadEnvironmentVariables
public void loadEnvironmentVariables ()
loadProperties
public void loadProperties (URL propertiesUrl)
throws IOException
Throws:
IOException
loadXmlProperties
public void loadXmlProperties (URL propertiesUrl)
throws IOException
Throws:
IOException
startElement
public void startElement (String uri,
String localName,
String name,
Attributes atts)
throws SAXException
Specified by: startElement
in interface ContentHandler
Overrides: startElement
in class AbstractSAXTransformer
Throws:
SAXException
characters
public void characters (char[] ch,
int start,
int length)
throws SAXException
Specified by: characters
in interface ContentHandler
Overrides: characters
in class AbstractSAXTransformer
Throws:
SAXException
endElement
public void endElement (String uri,
String localName,
String name)
throws SAXException
Specified by: endElement
in interface ContentHandler
Overrides: endElement
in class AbstractSAXTransformer
Throws:
SAXException
Copyright © 2008-2012 The Apache Software Foundation . All Rights Reserved.