/* this belongs to the WebRaveler package */ package webraveler.ravel; import java.util.*; /** * A warning for Web Raveler * * @author The Web Raveler Development Squad * @version 1.0 */ public class RavelerWarning { /* variables */ String warningString; Hashtable stdWarnings; /* constructors */ /** * Constructs a RavelerWarning with an warning number associated with a standard set of warnings * * @param warningNumber an integer containing the warning number */ public RavelerWarning(int warningNumber) { initializeStdWarnings(); Integer warnInt = new Integer(warningNumber); warningString = (String) stdWarnings.get(warnInt); } /** * Constructs a RavelerWarning with an warning number associated with a standard set of warnings * and a message describing the warning * * @param warningNumber an integer containing the warning number * @param warningString a string containing the message to display with the warning */ public RavelerWarning(int warningNumber, String warningString){ } /** * Constructs a RavelerWarning with a message describing the warning * * @param warningString a string containing the message to display with the warning */ public RavelerWarning(String warningString){ this.warningString = warningString; } /* methods */ /** * Gets the message associated with the warning * * @return a string containing the message associated with the warning */ public String getWarningString() { return warningString; } /** * Puts the standard warnings in a hashtable */ private void initializeStdWarnings() { stdWarnings = new Hashtable(); stdWarnings.put(new Integer(100),"The page may not be raveled correctly."); } //initializeStdWarnings() }