Ignore:
Timestamp:
08/16/12 15:22:28 (12 years ago)
Author:
sherbold
Message:
  • added getId() method to Event
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/Event.java

    r541 r551  
    120120    /** 
    121121     * <p> 
    122      * Returns {@link #getStandardId()} as String representation of the event. 
     122     * Returns {@link #getId()} as String representation of the event. 
    123123     * </p> 
    124124     *  
     
    127127    @Override 
    128128    public String toString() { 
    129         return "(" + type.toString() + ";" + target.toString() + ")"; 
     129        return getId(); 
    130130    } 
    131131 
     
    150150    public IEventType getType() { 
    151151        return type; 
     152    } 
     153     
     154    /** 
     155     * <p> 
     156     * Returns the combination of {@link #type} and {@link #target} as id. 
     157     * </p> 
     158     * 
     159     * @return string of the form (type,target) 
     160     */ 
     161    public String getId() { 
     162        return "(" + type.toString() + ";" + target.toString() + ")"; 
    152163    } 
    153164 
Note: See TracChangeset for help on using the changeset viewer.