|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.apl.jxc.filter.XMLFilter
public class XMLFilter
Filters XML by applying a number of filter criteria. Please note citeria are applied in the order in which they are added. Therefore if an element is omitted prior to being in referenced in the expression of a subsequent critera, the latter criteria will have no effect.
Constructor Summary | |
---|---|
XMLFilter()
Creates a new XMLFilter. |
Method Summary | |
---|---|
void |
addCriteria(java.util.Iterator<XMLFilterCriteria> iterator)
Clears any previously added criteria and adds any criteria found in the iterator. |
void |
addCriteria(XMLFilterCriteria criteria)
Adds a criteria to the filter. |
void |
addCriteriaFromSavedFilter(java.io.File savedFilter)
Clears any previously added criteria and adds any criteria found in the saved XML filter file. |
org.w3c.dom.Document |
apply(org.w3c.dom.Document xmlDocument)
Applies the filter to an XML Document. |
org.w3c.dom.Document |
apply(java.io.File xmlFile)
Applies the filter to an XML File. |
org.w3c.dom.Document |
apply(java.lang.String xmlString)
Applies the filter to an XML String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLFilter()
Method Detail |
---|
public void addCriteria(XMLFilterCriteria criteria)
criteria
- the criteria to be addedpublic void addCriteriaFromSavedFilter(java.io.File savedFilter) throws XMLFilterException
savedFilter
- File containing a saved XML filter definition
XMLFilterException
- when an exception occurs applying the saved filterpublic void addCriteria(java.util.Iterator<XMLFilterCriteria> iterator)
iterator
- the mapping iterator
XMLMapperException
- when an exception occurs applying the mappingspublic org.w3c.dom.Document apply(java.lang.String xmlString) throws XMLFilterException
xmlString
- the String of XML to be filtered
XMLFilterException
- when an exception occurs applying the filterpublic org.w3c.dom.Document apply(java.io.File xmlFile) throws XMLFilterException
xmlFile
- the File of XML to be filtered
XMLFilterException
- when an exception occurs applying the filterpublic org.w3c.dom.Document apply(org.w3c.dom.Document xmlDocument) throws XMLFilterException
xmlDocument
- the XML Document to be filtered
XMLFilterException
- when an exception occurs applying the filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |