|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.config.AttributeExpander
public class AttributeExpander
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.
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 |
---|
public AttributeExpander(java.io.Reader reader)
reader
- the XML file readerMethod Detail |
---|
public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
setDocumentHandler
in interface org.exolab.castor.xml.EventProducer
public void start() throws org.xml.sax.SAXException
start
in interface org.exolab.castor.xml.EventProducer
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |