All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.pics.db.LabelHolder

java.lang.Object
   |
   +----w3c.pics.db.LabelHolder

public class LabelHolder
extends Object
A class to keep track of LabelSources.


Constructor Index

 o LabelHolder()

Method Index

 o addSource(LabelSource)
Adds a label source to this LabelHolder.
 o addSource(String, String, String)
Adds a label source to this LabelHolder
 o addSource(String, String, String, String)
Adds a label source to this LabelHolder
 o addSource(String, String, String, StringBuffer)
Adds a label source to this LabelHolder
 o countItems()
Returns the number of LabelSources currently stored in this LabelHolder.
 o getItem(int)
Returns the name of the ith LabelSource that is in this LabelHolder.
 o getSourceByName(String)
Used to retrieve the LabelSource object for a particular label source.
 o remSource(String)
Removes a label source from this LabelHolder.
 o toString()
Returns a human-readable representation of this LabelHolder.

Constructors

 o LabelHolder
 public LabelHolder()

Methods

 o addSource
 public void addSource(String name,
                       String sURL,
                       String bURL,
                       StringBuffer rfile)
Adds a label source to this LabelHolder

Parameters:
name - A String containing the name of the label source.
sURL - A String containing the URL of the service for this label source.
bURL - A String containing the URL of a Label Bureau for this source.
rfile - A StringBuffer containing the contents of the associated .rat file.
 o addSource
 public void addSource(String name,
                       String sURL,
                       String bURL,
                       String rURL)
Adds a label source to this LabelHolder

Parameters:
name - A String containing the name of the label source.
sURL - A String containing the URL of the service for this label source.
bURL - A String containing the URL of a Label Bureau for this source.
rURL - A String containing the URL of the associated .rat file.
 o addSource
 public void addSource(String name,
                       String sURL,
                       String bURL)
Adds a label source to this LabelHolder

Parameters:
name - A String containing the name of the label source.
sURL - A String containing the URL of the service for this label source.
bURL - A String containing the URL of a Label Bureau for this source.
 o addSource
 public void addSource(LabelSource ls)
Adds a label source to this LabelHolder.

Parameters:
ls - A LabelSource object.
 o remSource
 public void remSource(String name)
Removes a label source from this LabelHolder.

Parameters:
name - A String containing the name of a label source.
 o countItems
 public int countItems()
Returns the number of LabelSources currently stored in this LabelHolder.

Returns:
An int, the number of LabelSources.
 o getItem
 public String getItem(int i)
Returns the name of the ith LabelSource that is in this LabelHolder.

Parameters:
i - The index of the LabelSource to be fetched.
Returns:
A String, the shortname of the LabelSource with index i.
 o getSourceByName
 public LabelSource getSourceByName(String name)
Used to retrieve the LabelSource object for a particular label source.

Parameters:
name - The String name of the label source.
Returns:
A LabelSource.
 o toString
 public String toString()
Returns a human-readable representation of this LabelHolder.

Returns:
A String containing a human-readable representation of this LabelHolder.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index