|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectLogicSAXParser
public class LogicSAXParser
Processes messages from clients to create Logic Filters. Handles nested
logic filters. Filters should call start and end when they reach logic
filters, and create when the filter is complete.
This documenation provided by Dave Blasby April 1/2005 after fixing GEOS-328:
DJB: okay, there's no where near enough comments in here to understand whats going on. Hopefully I'm correct.
I've looked at this for a bit, and this is what I can figure out.
This is called by the FilterFilter class (nice name...NOT) which is also a sax parser-like class.
Basically, the FilterFilter does most of the Filter parsing - but it hands most of the work off to the
appropriate classes. For NOT, AND, OR clauses, this class is used.
As a simple example,
Constructor Summary | |
---|---|
LogicSAXParser()
Constructor which flags the operator as between. |
|
LogicSAXParser(FilterFactory factory)
Constructor injection |
Method Summary | |
---|---|
void |
add(Filter filter)
Adds a filter to the current logic list. |
Filter |
create()
Creates the the logic filter if in a complete state. |
void |
end(short logicType)
To be called when the sax parser reaches the end of a logic filter. |
boolean |
isComplete()
indicates if the logic filter is complete. |
void |
setFilterFactory(FilterFactory factory)
Setter injection |
void |
start(short logicType)
To be called by a parser to start the creation of a logic filter. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogicSAXParser()
public LogicSAXParser(FilterFactory factory)
Method Detail |
---|
public void setFilterFactory(FilterFactory factory)
public void start(short logicType) throws IllegalFilterException
logicType
- OR, or AND abstract filter type.
IllegalFilterException
- if filter type does not match declared
type.public void end(short logicType) throws IllegalFilterException
logicType
- the Filter type.
IllegalFilterException
- If the end message can't be processed in
this state.public void add(Filter filter)
filter
- The filter to be added.public Filter create() throws IllegalFilterException
IllegalFilterException
- if the filter is not complete.public boolean isComplete()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |