lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/workflow/impl EventImpl.java
Date Wed, 28 May 2003 15:19:23 GMT
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


Mime
View raw message