All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.simonstl.sax.xlink.LinkSet

java.lang.Object
   |
   +----com.simonstl.sax.xlink.LinkSet

public class LinkSet
extends Object

Constructor Index

 o LinkSet()

Method Index

 o addLink(Link)
Adds a link to the Set
 o addLinkSet(LinkSet)
Add a set of links to this linkSet
 o getAllLinks()
Gets an enumerator for all the links in this set
 o getByLoc(String)
Gets a set of link that match a location.
 o getByURL(String)
Gets a set of link that match a URL
 o getByURLAndLoc(String, String)
Get a set of links that match a URL and location.
 o isUnique(Link)
Gets a set of link that match a URL
 o linkAt(int)
Gets an link for at a specified position
 o printAllLinks()
Prints LinkSet - mostly for debugging
 o removeAllLinks()
Remove all the links in this set
 o size()
Gets the size of the linkSet
 o toString()
toString - for debugging

Constructors

 o LinkSet
 public LinkSet()

Methods

 o addLink
 public void addLink(Link newLink)
Adds a link to the Set

Parameters:
newLink - the link to add
 o getByURL
 public LinkSet getByURL(String URL)
Gets a set of link that match a URL

Parameters:
URL - the URL to match
Returns:
the set of matching Links
 o getByLoc
 public LinkSet getByLoc(String loc)
Gets a set of link that match a location.

Parameters:
loc - the location to match
Returns:
the set of matching Links
 o getByURLAndLoc
 public LinkSet getByURLAndLoc(String URL,
                               String loc)
Get a set of links that match a URL and location.

Parameters:
URL - the URL to match
loc - the location to match
Returns:
the set of matching Links
 o toString
 public String toString()
toString - for debugging

Returns:
the string representation of this LinkSet
Overrides:
toString in class Object
 o addLinkSet
 public void addLinkSet(LinkSet newLinks)
Add a set of links to this linkSet

Parameters:
newLinks - set to add to this one.
 o getAllLinks
 public Enumeration getAllLinks()
Gets an enumerator for all the links in this set

Returns:
an Enumeration for all of the links in this set
 o linkAt
 public Link linkAt(int index)
Gets an link for at a specified position

Returns:
an Link
 o size
 public int size()
Gets the size of the linkSet

Returns:
an Link
 o isUnique
 public boolean isUnique(Link testLink)
Gets a set of link that match a URL

Parameters:
URL - the URL to match
Returns:
the set of matching Links
 o removeAllLinks
 public void removeAllLinks()
Remove all the links in this set

 o printAllLinks
 public void printAllLinks()
Prints LinkSet - mostly for debugging


All Packages  Class Hierarchy  This Package  Previous  Next  Index