01: /*
02: *
03: * Copyright 2002-2004 BBNT Solutions, LLC
04: * under sponsorship of the Defense Advanced Research Projects
05: * Agency (DARPA).
06: *
07: * You can redistribute this software and/or modify it under the
08: * terms of the Cougaar Open Source License as published on the
09: * Cougaar Open Source Website (www.cougaar.org).
10: *
11: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
12: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
13: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
14: * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
15: * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
16: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
17: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
18: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
19: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
21: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22: *
23: * </copyright>
24: */
25:
26: package org.cougaar.pizza.servlet;
27:
28: /**
29: * Simple interface for Blackboard objects to supply pretty HTML descriptions
30: * of themselves, for use in servlets like the {@link HistoryServlet}.
31: * {@link HistoryServlet} uses this as the default for the Meaning column.
32: *
33: * @see HistoryServlet
34: */
35: public interface HistoryServletFriendly {
36: /**
37: * @param whichState HistoryServlet.ADDED, CHANGED, or REMOVED in this transaction
38: * @return HTML-formatted description of the object for servlet display
39: */
40: public String toHTML(int whichState);
41: }
|