org.apache.cocoon
Class Notification

java.lang.Object
  |
  +--org.apache.cocoon.Notification
All Implemented Interfaces:
Notificable

public class Notification
extends java.lang.Object
implements Notificable

Generates an XML representation of the current notification.

Author:
Nicola Ken Barozzi Aisa

Constructor Summary
Notification(java.lang.Object sender)
          Constructor for the Notification object
Notification(java.lang.Object sender, java.lang.Object o)
          Constructor for the Notification object
Notification(java.lang.Object sender, java.lang.Throwable t)
          Constructor for the Notification object
 
Method Summary
 void addExtraDescription(java.lang.String extraDescriptionDescription, java.lang.String extraDescription)
          Sets the ExtraDescriptions attribute of the Notification object
 void appendCauses(java.io.PrintWriter out, java.lang.Throwable t)
          Print recursively all nested causes of a Throwable in a PrintWriter.
 java.lang.String getDescription()
          Gets the Description attribute of the Notification object
 java.util.HashMap getExtraDescriptions()
          Gets the ExtraDescriptions attribute of the Notification object
 java.lang.String getMessage()
          Gets the Message attribute of the Notification object
 java.lang.String getSender()
          Gets the Sender attribute of the Notification object
 java.lang.String getSource()
          Gets the Source attribute of the Notification object
 java.lang.String getTitle()
          Gets the Title attribute of the Notification object
 java.lang.String getType()
          Gets the Type attribute of the Notification object
 void setDescription(java.lang.String description)
          Sets the Description attribute of the Notification object
 void setMessage(java.lang.String message)
          Sets the Message attribute of the Notification object
 void setSource(java.lang.String source)
          Sets the Source attribute of the Notification object
 void setTitle(java.lang.String title)
          Sets the Title attribute of the Notification object
 void setType(java.lang.String type)
          Sets the Type attribute of the Notification object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notification

public Notification(java.lang.Object sender)
Constructor for the Notification object

Notification

public Notification(java.lang.Object sender,
                    java.lang.Object o)
Constructor for the Notification object
Parameters:
o - Description of Parameter

Notification

public Notification(java.lang.Object sender,
                    java.lang.Throwable t)
Constructor for the Notification object
Parameters:
t - Description of Parameter
Method Detail

appendCauses

public void appendCauses(java.io.PrintWriter out,
                         java.lang.Throwable t)
Print recursively all nested causes of a Throwable in a PrintWriter.

setType

public void setType(java.lang.String type)
Sets the Type attribute of the Notification object
Parameters:
type - The new Type value

setTitle

public void setTitle(java.lang.String title)
Sets the Title attribute of the Notification object
Parameters:
title - The new Title value

setSource

public void setSource(java.lang.String source)
Sets the Source attribute of the Notification object
Parameters:
source - The new Source value

setMessage

public void setMessage(java.lang.String message)
Sets the Message attribute of the Notification object
Parameters:
message - The new Message value

setDescription

public void setDescription(java.lang.String description)
Sets the Description attribute of the Notification object
Parameters:
description - The new Description value

addExtraDescription

public void addExtraDescription(java.lang.String extraDescriptionDescription,
                                java.lang.String extraDescription)
Sets the ExtraDescriptions attribute of the Notification object
Parameters:
extraDescriptions - The new ExtraDescriptions value

getType

public java.lang.String getType()
Gets the Type attribute of the Notification object
Specified by:
getType in interface Notificable

getTitle

public java.lang.String getTitle()
Gets the Title attribute of the Notification object
Specified by:
getTitle in interface Notificable

getSource

public java.lang.String getSource()
Gets the Source attribute of the Notification object
Specified by:
getSource in interface Notificable

getSender

public java.lang.String getSender()
Gets the Sender attribute of the Notification object
Specified by:
getSender in interface Notificable

getMessage

public java.lang.String getMessage()
Gets the Message attribute of the Notification object
Specified by:
getMessage in interface Notificable

getDescription

public java.lang.String getDescription()
Gets the Description attribute of the Notification object
Specified by:
getDescription in interface Notificable

getExtraDescriptions

public java.util.HashMap getExtraDescriptions()
Gets the ExtraDescriptions attribute of the Notification object
Specified by:
getExtraDescriptions in interface Notificable


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.