|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.apache.commons.latka.xml.XMLPreprocessor
Methods for massaging the Latka XML. Includes methods for finding and substituting variables in the XML stream with Latka variables.
LatkaProperties| Constructor Summary | |
XMLPreprocessor()
|
|
| Method Summary | |
java.util.Set |
findVariables(java.io.Reader reader)
Given an XML suite contained in the reader, find the names of all variables that must be set in the LatkaProperties. |
java.util.Set |
findVariables(java.net.URL url)
Given an XML suite contained in the file uri, find the names of all variables that must be set in the LatkaProperties. |
java.util.Set |
getLocalVariables(java.io.Reader reader)
Read the text in the Reader and find the names of all variables that must be set in the LatkaProperties. |
java.io.Reader |
preprocessXml(java.io.Reader reader)
Processes a Stream, preparing it for the final XML processing. |
java.io.Reader |
preprocessXml(java.net.URL url)
Reads a file URI instead of a Reader, but otherwise similar to preprocessReader(Reader). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLPreprocessor()
| Method Detail |
public java.util.Set findVariables(java.io.Reader reader)
throws java.io.IOException
reader - Reader representing a Latka suite
java.io.IOExceptionLatkaProperties
public java.util.Set findVariables(java.net.URL url)
throws java.io.IOException
java.io.IOExceptionLatkaProperties
public java.util.Set getLocalVariables(java.io.Reader reader)
throws java.io.IOException
java.io.IOExceptionLatkaProperties
public java.io.Reader preprocessXml(java.io.Reader reader)
throws java.io.IOException
reader - XML stream to preprocess
java.io.IOException - thrown if the stream could not be read,
or if variables could not be substitutedSuiteHandler.resolveEntity(String,String),
Latka.runTests(Suite,LatkaEventInfo)
public java.io.Reader preprocessXml(java.net.URL url)
throws java.io.IOException
java.io.IOException - If the URI could not be found, or if variables could
not be substituted.#preprocessReader(Reader)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||