All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.pics.db.SQLProfile

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

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


Constructor Index

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

Method Index

 o addLSource(LabelSource)
Adds a LabelSource to the list of label sources for this profile.
 o getAuthor()
Returns the author of this profile.
 o getLastDate()
Returns the last modified date for this profile.
 o getLastDateTime()
Returns the last modified date and time.
 o getLastTime()
Returns the last modified time for this profile.
 o getRulename()
Returns the rulename clause of this profile.
 o getTool()
Returns the creationtool clause of this profile.
 o parseLast(String)
Takes a timestamp in ISO format as the lastmodified date for this profile and parses it, saving the results in this SQLProfile.
 o putAuthor(String)
Puts an author entry into this SQLProfile.
 o putBlock(String)
Puts a String into this profile as the Block sub-clause of a Filter clause.
 o putDesc(String)
Puts a description into this SQLProfile.
 o putPass(String)
Puts a String into this profile as the Pass sub-clause of a Filter clause.
 o putRulename(String)
Puts a rulename into this SQLProfile.
 o putSourceURL(String)
Puts a source URL into this SQLProfile.
 o putTool(String)
Puts a creationTool entry into this SQLProfile.
 o toString()
Returns a human readable form of this SQLProfile.

Constructors

 o SQLProfile
 public SQLProfile()
Creates a new, empty SQLProfile object.

 o SQLProfile
 public SQLProfile(Enumeration thelist,
                   String fname,
                   String dname)
Creates a new SQLProfile 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 getRulename
 public String getRulename()
Returns the rulename clause of this profile.

Returns:
A String containing the rulename.
 o putRulename
 public void putRulename(String newrulename)
Puts a rulename into this SQLProfile.

Parameters:
newrulename - The String to use as the rulename.
 o putDesc
 public void putDesc(String newdesc)
Puts a description into this SQLProfile.

Parameters:
newdesc - The String to use as the description.
 o putSourceURL
 public void putSourceURL(String newURL)
Puts a source URL into this SQLProfile.

Parameters:
newURL - The String to use as the Source URL.
 o getTool
 public String getTool()
Returns the creationtool clause of this profile.

Returns:
A String containing the name of the creation tool.
 o putTool
 public void putTool(String newtool)
Puts a creationTool entry into this SQLProfile.

Parameters:
newtool - The String to use as the creationTool.
 o getAuthor
 public String getAuthor()
Returns the author of this profile.

Returns:
A String containing the author.
 o putAuthor
 public void putAuthor(String newauthor)
Puts an author entry into this SQLProfile.

Parameters:
newauthor - The String to use as the author.
 o parseLast
 public void parseLast(String lastmod)
Takes a timestamp in ISO format as the lastmodified date for this profile and parses it, saving the results in this SQLProfile.

Parameters:
lastmod - The timestamp to parse.
 o getLastDate
 public String getLastDate()
Returns the last modified date for this profile.

Returns:
A String containing the last modified date.
 o getLastTime
 public String getLastTime()
Returns the last modified time for this profile.

Returns:
A String containing the last modified time.
 o getLastDateTime
 public String getLastDateTime()
Returns the last modified date and time.

Returns:
A String containing the last modified date and time, seperated by a single space.
 o putPass
 public void putPass(String thepass)
Puts a String into this profile as the Pass sub-clause of a Filter clause.

Parameters:
thepass - The Pass string.
 o putBlock
 public void putBlock(String theblock)
Puts a String into this profile as the Block sub-clause of a Filter clause.

Parameters:
theblock - The Block string.
 o addLSource
 public void addLSource(LabelSource ls)
Adds a LabelSource to the list of label sources for this profile.

Parameters:
ls - The LabelSource
 o toString
 public String toString()
Returns a human readable form of this SQLProfile.

Returns:
A String containing a human readable form of this profile.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index