1 package org.catacomb.interlish.structure; 2 3 4 public interface InfoMessage { 5 6 int UNKNOWN = 0; 7 int INFO = 1; 8 int WARNING = 2; 9 int ERROR = 3; 10 int FATAL = 4; 11 12 String[] textLevels = { "unknown", "INFO", "WARNING", "ERROR", "FATAL" }; 13 14 String getPlainText(); 15 16 int getLevel(); 17 18 String getContext(); // eg "net access", "deprecated", "memory" 19 20 boolean sameAs(InfoMessage im); 21 22 String getHTML(); 23 24 }