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.
-
LabelSource()
- Creates a new, empty LabelSource.
-
LabelSource(String, String, String, String, boolean)
- Creates a new LabelSource.
-
getBureauUnavail()
- Returns the bureauUnavailable value for this LabelSource.
-
getBureauURL()
- Returns the bureauURL for this LabelSource.
-
getName()
- Returns the name for this LabelSource.
-
getRatfile()
- Returns the text of the ratfile for this LabelSource.
-
getRatURL()
- Returns the URL for the ratfile if it exists.
-
getRmode()
- Returns a boolean indicating if the ratfile field of this LabelSource is
a URL of the text of an actual .rat file.
-
getShortname()
- Returns the shortname for this LabelSource.
-
getUnparsedRatfile()
- Returns the text of the ratfile for this LabelSource.
-
parseRatfile(String)
- Changes the ratfile clause of this LabelSource.
-
putBureauUnavail(String)
- Changes the bureauUnavailable clause of this LabelSource.
-
putBureauURL(String)
- Changes the bureauURL clause of this LabelSource.
-
putName(String)
- Changes the name clause of this LabelSource.
-
putShortname(String)
- Changes the shortname clause of this LabelSource.
-
setRatURL(String)
- Changes the Ratfile URL for this LabelSource.
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.
LabelSource
public LabelSource()
- Creates a new, empty LabelSource.
getShortname
public String getShortname()
- Returns the shortname for this LabelSource.
- Returns:
- The String value of the shortname clause.
getName
public String getName()
- Returns the name for this LabelSource.
- Returns:
- The String value of the name clause.
getBureauURL
public String getBureauURL()
- Returns the bureauURL for this LabelSource.
- Returns:
- The String value of the bureauURL clause.
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.
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.
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.
getBureauUnavail
public String getBureauUnavail()
- Returns the bureauUnavailable value for this LabelSource.
- Returns:
- The String value of the bureauUnavailable clause.
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.
putShortname
public void putShortname(String sn)
- Changes the shortname clause of this LabelSource.
- Parameters:
- sn - The new shortname.
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.
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.
putBureauUnavail
public void putBureauUnavail(String ba)
- Changes the bureauUnavailable clause of this LabelSource.
- Parameters:
- ba - The new bureauUnavailable value.
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).
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