org.azzyzt.jee.runtime.util
Interface Xml2QuerySpec
- All Known Implementing Classes:
- AttributedTags2QuerySpec
public interface Xml2QuerySpec
Interface implemented by parsers for XML representations of query specifications.
Java is a single inheritance language, and our parsers already inherit from
org.xml.sax.helpers.DefaultHandler
. Thus, to hide the fact that we
could use different parsers for different XML formats, we let all parsers implement
this interface.
- See Also:
QuerySpec
,
AttributedTags2QuerySpec
fromXML
QuerySpec fromXML(java.lang.String xml)
throws QuerySyntaxException
- Parameters:
xml
- an XML representation of a QuerySpec
- Returns:
- a
QuerySpec
- Throws:
QuerySyntaxException