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
-
LinkSet()
-
-
addLink(Link)
- Adds a link to the Set
-
addLinkSet(LinkSet)
- Add a set of links to this linkSet
-
getAllLinks()
- Gets an enumerator for all the links in this set
-
getByLoc(String)
- Gets a set of link that match a location.
-
getByURL(String)
- Gets a set of link that match a URL
-
getByURLAndLoc(String, String)
- Get a set of links that match a URL and location.
-
isUnique(Link)
- Gets a set of link that match a URL
-
linkAt(int)
- Gets an link for at a specified position
-
printAllLinks()
- Prints LinkSet - mostly for debugging
-
removeAllLinks()
- Remove all the links in this set
-
size()
- Gets the size of the linkSet
-
toString()
- toString - for debugging
LinkSet
public LinkSet()
addLink
public void addLink(Link newLink)
- Adds a link to the Set
- Parameters:
- newLink - the link to add
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
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
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
toString
public String toString()
- toString - for debugging
- Returns:
- the string representation of this LinkSet
- Overrides:
- toString in class Object
addLinkSet
public void addLinkSet(LinkSet newLinks)
- Add a set of links to this linkSet
- Parameters:
- newLinks - set to add to this one.
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
linkAt
public Link linkAt(int index)
- Gets an link for at a specified position
- Returns:
- an Link
size
public int size()
- Gets the size of the linkSet
- Returns:
- an Link
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
removeAllLinks
public void removeAllLinks()
- Remove all the links in this set
printAllLinks
public void printAllLinks()
- Prints LinkSet - mostly for debugging
All Packages Class Hierarchy This Package Previous Next Index