All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.pics.profiler.Profile

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

public class Profile
extends Object
An object representing a .pro file. It contains the state information for a particular profile.


Variable Index

 o blocks
 o description
 o dirname
 o filename
 o passes
 o sinfos
 o sourceURL
 o stringrep

Constructor Index

 o Profile()
Creates a new, empty Profile.
 o Profile(Enumeration, String, String)
Creates a new Profile object.
 o Profile(String)
Creates a new Profile object.
 o Profile(String, String)
Creates a new Profile object.
 o Profile(String, String, String)
Creates a new Profile object.

Method Index

 o addFile(String)
Adds a filename to the internal table of filenames.
 o addLSource(String)
Adds a label source to the internal table of label sources.
 o addURL(String)
Adds a URL to the internal table of Forbidden URLs.
 o addURL2(String)
Adds a URL to the internal table of Permitted URLs.
 o getBlock()
Returns the Block portion of the Filter clause for this Profile.
 o getBools()
Returns the booleans, in order, used in this Profile.
 o getDesc()
Returns the value of the description field of the name clause for this Profile.
 o getDirname()
Returns the directory name stored within this Profile (if any)
 o getFilename()
Returns the file name stored within this Profile (if any)
 o getFiles()
Returns the filenames contained within this Profile.
 o getFullNames()
Returns the full names contained within this Profile.
 o getLSources()
Returns the label sources contained within this Profile.
 o getPass()
Returns the Pass portion of the Filter clause for this Profile.
 o getPros()
Returns the profiles contained within this Profile.
 o getRats()
Returns the service descriptions contained within this Profile.
 o getServiceInfos()
Returns the serviceinfo clauses (as LabelSources) contained within this Profile.
 o getSourceURL()
Returns the value of the sourceURL field of the source clause for this Profile.
 o getStates()
Returns the ratings settings contained within this Profile.
 o getStringRep()
Returns a String with the contents of the Profile.
 o getURLs()
Returns the Forbidden URLs contained within this Profile.
 o getURLs2()
Returns the Permitted URLs for contained within this Profile.
 o putFullName(String)
Puts a full name (service/filename) into this Profile.
 o putState(String)
Puts a ratings description in this Profile.

Variables

 o stringrep
 protected String stringrep
 o sinfos
 protected Vector sinfos
 o filename
 protected String filename
 o dirname
 protected String dirname
 o passes
 protected String passes
 o blocks
 protected String blocks
 o description
 protected String description
 o sourceURL
 protected String sourceURL

Constructors

 o Profile
 public Profile()
Creates a new, empty Profile.

 o Profile
 public Profile(String filename,
                String opendir)
Creates a new Profile object.

Parameters:
filename - The name of the .pro file.
opendir - The current working directory.
 o Profile
 public Profile(String filelist)
Creates a new Profile object.

Parameters:
filelist - The list of .pro and .rat files for this Profile.
 o Profile
 public Profile(String filelist,
                String fname,
                String dname)
Creates a new Profile object.

Parameters:
filelist - The list of .pro and .rat files for this Profile.
fname - The name of the .pro file for this Profile.
dname - The name of the directory for this Profile.
 o Profile
 public Profile(Enumeration thelist,
                String fname,
                String dname)
Creates a new Profile object.

Parameters:
thelist - An enumeration containing the profile information.
fname - The name of the file for this Profile.
dname - The name of the directory for this Profile.

Methods

 o putState
 public void putState(String state)
Puts a ratings description in this Profile.

Parameters:
state - A String representing a ratings description.
 o putFullName
 public void putFullName(String fname)
Puts a full name (service/filename) into this Profile.

Parameters:
state - A String representing a full name.
 o getFullNames
 public Vector getFullNames()
Returns the full names contained within this Profile.

Returns:
A Vector containing the full names (service/file) contained within this Profile.
 o getStringRep
 public String getStringRep()
Returns a String with the contents of the Profile.

Returns:
A String representation of the Profile.
 o getPros
 public Vector getPros()
Returns the profiles contained within this Profile.

Returns:
A Vector containing the names of the .pro files inside this profile.
 o getRats
 public Vector getRats()
Returns the service descriptions contained within this Profile.

Returns:
A Vector containing the names of the .rat files inside this profile.
 o getStates
 public Vector getStates()
Returns the ratings settings contained within this Profile.

Returns:
A Vector containing the saved state for each of the service descriptions within this profile.
 o getURLs
 public Vector getURLs()
Returns the Forbidden URLs contained within this Profile.

Returns:
A Vector containing the Forbidden URLs for this Profile.
 o getURLs2
 public Vector getURLs2()
Returns the Permitted URLs for contained within this Profile.

Returns:
A Vector containing the Permitted URLs for this Profile.
 o getLSources
 public Vector getLSources()
Returns the label sources contained within this Profile.

Returns:
A Vector containing the label sources for this Profile.
 o getFiles
 public Vector getFiles()
Returns the filenames contained within this Profile.

Returns:
A Vector containing the filenames for this Profile.
 o getBools
 public Vector getBools()
Returns the booleans, in order, used in this Profile.

Returns:
A Vector containing the booleans (as Strings) for this Profile.
 o getServiceInfos
 public Vector getServiceInfos()
Returns the serviceinfo clauses (as LabelSources) contained within this Profile.

Returns:
A Vector containing the LabelSource objects for this Profile.
See Also:
LabelSource
 o addFile
 protected void addFile(String fname)
Adds a filename to the internal table of filenames.

Parameters:
fname - The filename to add.
 o addLSource
 public void addLSource(String sname)
Adds a label source to the internal table of label sources.

Parameters:
sname - The name of the label source.
 o addURL
 public void addURL(String urlname)
Adds a URL to the internal table of Forbidden URLs. Checks to see that it is in the proper format.

Parameters:
urlname - The URL as a String.
 o addURL2
 public void addURL2(String urlname)
Adds a URL to the internal table of Permitted URLs. Checks to see that it is in the proper format.

Parameters:
urlname - The URL as a String.
 o getFilename
 public String getFilename()
Returns the file name stored within this Profile (if any)

Returns:
The name of this .pro file for this Profile.
 o getDirname
 public String getDirname()
Returns the directory name stored within this Profile (if any)

Returns:
The name of the directory for the .pro file for this Profile.
 o getPass
 public String getPass()
Returns the Pass portion of the Filter clause for this Profile.

Returns:
A String containing the Pass portion of the Filter.
 o getBlock
 public String getBlock()
Returns the Block portion of the Filter clause for this Profile.

Returns:
A String containing the Block portion of the Filter,
 o getDesc
 public String getDesc()
Returns the value of the description field of the name clause for this Profile.

Returns:
A String containing the description for this Profile.
 o getSourceURL
 public String getSourceURL()
Returns the value of the sourceURL field of the source clause for this Profile.

Returns:
A String containing the sourceURL for this Profile.

All Packages  Class Hierarchy  This Package  Previous  Next  Index