org.owasp.webscarab.model
Class AbstractUrlModel

java.lang.Object
  extended by org.owasp.webscarab.model.AbstractUrlModel
All Implemented Interfaces:
UrlModel
Direct Known Subclasses:
FilteredUrlModel

public abstract class AbstractUrlModel
extends java.lang.Object
implements UrlModel

Author:
rogan

Constructor Summary
AbstractUrlModel()
          Creates a new instance of AbstractUrlModel
 
Method Summary
 void addUrlListener(UrlListener listener)
           
protected  void fireUrlAdded(HttpUrl url, int position)
          tells listeners that a new Url has been added
protected  void fireUrlChanged(HttpUrl url, int position)
          fired to tell listeners that a particular Url has had a property change
protected  void fireUrlRemoved(HttpUrl url, int position)
          tells listeners that a Url has been removed, after the fact
protected  void fireUrlsChanged()
          fired to tell listeners that all Url have changed
abstract  HttpUrl getChildAt(HttpUrl parent, int index)
           
abstract  int getChildCount(HttpUrl parent)
           
abstract  int getIndexOf(HttpUrl url)
           
abstract  EDU.oswego.cs.dl.util.concurrent.Sync readLock()
           
 void removeUrlListener(UrlListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUrlModel

public AbstractUrlModel()
Creates a new instance of AbstractUrlModel

Method Detail

getChildCount

public abstract int getChildCount(HttpUrl parent)
Specified by:
getChildCount in interface UrlModel

getIndexOf

public abstract int getIndexOf(HttpUrl url)
Specified by:
getIndexOf in interface UrlModel

getChildAt

public abstract HttpUrl getChildAt(HttpUrl parent,
                                   int index)
Specified by:
getChildAt in interface UrlModel

readLock

public abstract EDU.oswego.cs.dl.util.concurrent.Sync readLock()
Specified by:
readLock in interface UrlModel

addUrlListener

public void addUrlListener(UrlListener listener)
Specified by:
addUrlListener in interface UrlModel

removeUrlListener

public void removeUrlListener(UrlListener listener)
Specified by:
removeUrlListener in interface UrlModel

fireUrlAdded

protected void fireUrlAdded(HttpUrl url,
                            int position)
tells listeners that a new Url has been added

Parameters:
url - the url that was added

fireUrlRemoved

protected void fireUrlRemoved(HttpUrl url,
                              int position)
tells listeners that a Url has been removed, after the fact

Parameters:
url - the url that was removed

fireUrlChanged

protected void fireUrlChanged(HttpUrl url,
                              int position)
fired to tell listeners that a particular Url has had a property change

Parameters:
url - the url that was changed

fireUrlsChanged

protected void fireUrlsChanged()
fired to tell listeners that all Url have changed