All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.pics.profiler.LabelSource

java.lang.Object
   |
   +----w3c.pics.profiler.LabelSource

public class LabelSource
extends Object
Represents a source of PICS labels. Contains all the information needed in order for the system to make a serviceinfo clause for this source.


Constructor Index

 o LabelSource()
Creates a new, empty LabelSource.
 o LabelSource(String, String, String, String, boolean)
Creates a new LabelSource.

Method Index

 o getBureauUnavail()
Returns the bureauUnavailable value for this LabelSource.
 o getBureauURL()
Returns the bureauURL for this LabelSource.
 o getName()
Returns the name for this LabelSource.
 o getRatfile()
Returns the text of the ratfile for this LabelSource.
 o getRatURL()
Returns the URL for the ratfile if it exists.
 o getRmode()
Returns a boolean indicating if the ratfile field of this LabelSource is a URL of the text of an actual .rat file.
 o getShortname()
Returns the shortname for this LabelSource.
 o getUnparsedRatfile()
Returns the text of the ratfile for this LabelSource.
 o parseRatfile(String)
Changes the ratfile clause of this LabelSource.
 o putBureauUnavail(String)
Changes the bureauUnavailable clause of this LabelSource.
 o putBureauURL(String)
Changes the bureauURL clause of this LabelSource.
 o putName(String)
Changes the name clause of this LabelSource.
 o putShortname(String)
Changes the shortname clause of this LabelSource.
 o setRatURL(String)
Changes the Ratfile URL for this LabelSource.

Constructors

 o LabelSource
 public LabelSource(String ServiceURL,
                    String sname,
                    String bureau,
                    String rfile,
                    boolean rmode)
Creates a new LabelSource.

Parameters:
ServiceURL - The URL of the Ratings Service.
sname - The human readable name for this source.
bureau - The URL of the Label Bureau for this Service.
rfile - A String containing the text of the associated .rat file or its URL.
rmode - A boolean indicating if rfile is a URL or the actual .rat file.
 o LabelSource
 public LabelSource()
Creates a new, empty LabelSource.

Methods

 o getShortname
 public String getShortname()
Returns the shortname for this LabelSource.

Returns:
The String value of the shortname clause.
 o getName
 public String getName()
Returns the name for this LabelSource.

Returns:
The String value of the name clause.
 o getBureauURL
 public String getBureauURL()
Returns the bureauURL for this LabelSource.

Returns:
The String value of the bureauURL clause.
 o getRatfile
 public String getRatfile()
Returns the text of the ratfile for this LabelSource.

Returns:
A String containing the text of the .rat file, replacing quotes with hex.
 o getUnparsedRatfile
 public String getUnparsedRatfile()
Returns the text of the ratfile for this LabelSource.

Returns:
A String containing the text of the .rat file without replacing quotes.
 o getRatURL
 public String getRatURL()
Returns the URL for the ratfile if it exists.

Returns:
A String containing the URL of the ratfile for this LabelSource.
 o getBureauUnavail
 public String getBureauUnavail()
Returns the bureauUnavailable value for this LabelSource.

Returns:
The String value of the bureauUnavailable clause.
 o putName
 public void putName(String n)
Changes the name clause of this LabelSource. If the URL supplied is not valid, no change is made.

Parameters:
n - The new name URL as a String.
 o putShortname
 public void putShortname(String sn)
Changes the shortname clause of this LabelSource.

Parameters:
sn - The new shortname.
 o putBureauURL
 public void putBureauURL(String burl)
Changes the bureauURL clause of this LabelSource. If the URL supplied is not valid, no change is made.

Parameters:
burl - The new URL, as a String.
 o setRatURL
 public void setRatURL(String newurl)
Changes the Ratfile URL for this LabelSource. If the URL supplied is not valid, no change is made.

Parameters:
newurl - The new URL as a String.
 o putBureauUnavail
 public void putBureauUnavail(String ba)
Changes the bureauUnavailable clause of this LabelSource.

Parameters:
ba - The new bureauUnavailable value.
 o parseRatfile
 public void parseRatfile(String rfile)
Changes the ratfile clause of this LabelSource. It parses the string to convert quotes back from hex.

Parameters:
rfile - The ratfile (either a file or a URL).
 o getRmode
 public boolean getRmode()
Returns a boolean indicating if the ratfile field of this LabelSource is a URL of the text of an actual .rat file.

Returns:
A boolean, true if the ratfile field is a URL, false if the ratfile field is a file.

All Packages  Class Hierarchy  This Package  Previous  Next  Index