org.exolab.jms.config
Class AttributeExpander

java.lang.Object
  |
  +--org.exolab.jms.config.AttributeExpander
All Implemented Interfaces:
org.exolab.castor.xml.EventProducer

public class AttributeExpander
extends java.lang.Object
implements org.exolab.castor.xml.EventProducer

This class expands attributes in XML documents as the document is being parsed. It is designed to be used in conjunction with the Castor unmarshalling framework.

To be expanded, attribute values must contain text of the form ${property.name}, where property.name is a property returned by System.getProperty().
If no property exists, the attribute value remains unchanged.

Version:
$Revision: 1.1 $ $Date: 2004/11/26 01:50:41 $
Author:
Tim Anderson
See Also:
EventProducer, Unmarshaller

Constructor Summary
AttributeExpander(java.io.Reader reader)
          Construct a new instance
 
Method Summary
 void setDocumentHandler(org.xml.sax.DocumentHandler handler)
          Sets the DocumentHandler to send SAX events to
 void start()
          Signals to start producing events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeExpander

public AttributeExpander(java.io.Reader reader)
Construct a new instance
Parameters:
reader - the XML file reader
Method Detail

setDocumentHandler

public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
Sets the DocumentHandler to send SAX events to
Specified by:
setDocumentHandler in interface org.exolab.castor.xml.EventProducer

start

public void start()
           throws org.xml.sax.SAXException
Signals to start producing events.
Specified by:
start in interface org.exolab.castor.xml.EventProducer


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.