Return-Path: Delivered-To: apmail-cocoon-lenya-cvs-archive@cocoon.apache.org Received: (qmail 41671 invoked by uid 500); 28 May 2003 15:19:24 -0000 Mailing-List: contact lenya-cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Lenya CVS Mailing List" Delivered-To: mailing list lenya-cvs@cocoon.apache.org Received: (qmail 41659 invoked from network); 28 May 2003 15:19:24 -0000 Date: 28 May 2003 15:19:23 -0000 Message-ID: <20030528151923.12818.qmail@icarus.apache.org> From: andreas@apache.org To: cocoon-lenya-cvs@apache.org Subject: cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/workflow/impl EventImpl.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N andreas 2003/05/28 08:19:22 Modified: src/java/org/apache/lenya/cms/workflow/impl EventImpl.java Log: formatting changed Revision Changes Path 1.3 +18 -13 cocoon-lenya/src/java/org/apache/lenya/cms/workflow/impl/EventImpl.java Index: EventImpl.java =================================================================== RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/workflow/impl/EventImpl.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- EventImpl.java 24 Apr 2003 13:53:00 -0000 1.2 +++ EventImpl.java 28 May 2003 15:19:22 -0000 1.3 @@ -12,41 +12,46 @@ * * @author andreas */ -public class EventImpl - implements Event { - +public class EventImpl implements Event { + /** Creates a new instance of EventImpl */ public EventImpl(String id) { assert id != null; this.id = id; } - + private String id; - + public String getId() { return id; } - + public String toString() { return getId(); } - + public boolean equals(Object otherObject) { boolean equals = false; - + if (otherObject instanceof EventImpl) { EventImpl otherEvent = (EventImpl) otherObject; equals = getId().equals(otherEvent.getId()); - } - else { + } else { equals = super.equals(otherObject); } - + return equals; } - + public int hashCode() { return getId().hashCode(); } - + + /* (non-Javadoc) + * @see org.apache.lenya.cms.workflow.Event#getCommand() + */ + public String getCommand() { + return getId(); + } + } --------------------------------------------------------------------- To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org