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.
-
LabelHolder()
-
-
addSource(LabelSource)
- Adds a label source to this LabelHolder.
-
addSource(String, String, String)
- Adds a label source to this LabelHolder
-
addSource(String, String, String, String)
- Adds a label source to this LabelHolder
-
addSource(String, String, String, StringBuffer)
- Adds a label source to this LabelHolder
-
countItems()
- Returns the number of LabelSources currently stored in this LabelHolder.
-
getItem(int)
- Returns the name of the ith LabelSource that is in this LabelHolder.
-
getSourceByName(String)
- Used to retrieve the LabelSource object for a particular label source.
-
remSource(String)
- Removes a label source from this LabelHolder.
-
toString()
- Returns a human-readable representation of this LabelHolder.
LabelHolder
public LabelHolder()
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.
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.
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.
addSource
public void addSource(LabelSource ls)
- Adds a label source to this LabelHolder.
- Parameters:
- ls - A LabelSource object.
remSource
public void remSource(String name)
- Removes a label source from this LabelHolder.
- Parameters:
- name - A String containing the name of a label source.
countItems
public int countItems()
- Returns the number of LabelSources currently stored in this LabelHolder.
- Returns:
- An int, the number of LabelSources.
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.
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.
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