|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.urlchecker.commands.Context
public abstract class Context
The Context to pass all information through the commands. The context contains the Listeners of events, the results of each stage of processing and the original source of target URLs.
$Id: Context.java 184 2010-12-17 21:23:28Z georgosn $
Constructor Summary | |
---|---|
Context()
Instantiates a new context. |
Method Summary | |
---|---|
void |
addListener(ChainListener newListener)
Adds the listener. |
void |
clearListeners()
Clear listeners. |
boolean |
equals(Object obj)
|
Set<ChainListener> |
getListeners()
Returns the listeners. |
Set<Result> |
getResults()
Gets the results. |
Readable |
getSource()
Gets the source. |
int |
hashCode()
|
boolean |
removeListener(ChainListener oldListener)
Removes the listener. |
void |
setSource(Readable aSource)
Sets the source. |
Iterator<Result> |
validResultsIterator()
Valid results iterator. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Context()
Method Detail |
---|
public void addListener(ChainListener newListener)
newListener
- the new listenerpublic void clearListeners()
public boolean equals(Object obj)
equals
in class Object
public Set<ChainListener> getListeners()
public Set<Result> getResults()
public Readable getSource()
public int hashCode()
hashCode
in class Object
public boolean removeListener(ChainListener oldListener)
oldListener
- the old listener
public void setSource(Readable aSource)
aSource
- the source to setpublic Iterator<Result> validResultsIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |