- Timestamp:
- 08/17/12 09:21:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/plugin/guitar/eventcore/GUITARReplayable.java
r556 r560 1 1 2 package de.ugoe.cs.quest.plugin.guitar.eventcore; 2 3 4 import de.ugoe.cs.quest.IReplayDecorator; 3 5 import de.ugoe.cs.quest.eventcore.IReplayable; 6 import de.ugoe.cs.quest.plugin.guitar.EFGReplayDecorator; 4 7 import de.ugoe.cs.util.StringTools; 5 8 … … 14 17 public class GUITARReplayable implements IReplayable { 15 18 16 17 18 19 20 21 19 /** 20 * <p> 21 * EventId in the EFG and GUI files. 22 * </p> 23 */ 24 String eventId; 22 25 23 24 25 26 27 28 26 /** 27 * <p> 28 * Id for object serialization. 29 * </p> 30 */ 31 private static final long serialVersionUID = 1L; 29 32 30 31 32 33 34 35 36 37 38 39 33 /** 34 * <p> 35 * Constructor. Creates a new {@link GUITARReplayable}. 36 * </p> 37 * 38 * @param eventId 39 */ 40 public GUITARReplayable(String eventId) { 41 this.eventId = eventId; 42 } 40 43 41 /* 42 * (non-Javadoc) 43 * 44 * @see de.ugoe.cs.quest.eventcore.IReplayable#getReplay() 45 */ 46 @Override 47 public String getReplay() { 48 StringBuilder replay = new StringBuilder(); 49 replay.append("<Step>" + StringTools.ENDLINE); 50 replay.append("<EventId>" + eventId + "</EventId>" + StringTools.ENDLINE); 51 replay.append("<ReachingStep>false</ReachingStep>" + StringTools.ENDLINE); 52 replay.append("</Step>" + StringTools.ENDLINE); 53 return replay.toString(); 54 } 44 /* 45 * (non-Javadoc) 46 * 47 * @see de.ugoe.cs.quest.eventcore.IReplayable#getReplay() 48 */ 49 @Override 50 public String getReplay() { 51 StringBuilder replay = new StringBuilder(); 52 replay.append("<Step>" + StringTools.ENDLINE); 53 replay.append("<EventId>" + eventId + "</EventId>" + StringTools.ENDLINE); 54 replay.append("<ReachingStep>false</ReachingStep>" + StringTools.ENDLINE); 55 replay.append("</Step>" + StringTools.ENDLINE); 56 return replay.toString(); 57 } 58 59 /* 60 * (non-Javadoc) 61 * 62 * @see de.ugoe.cs.quest.eventcore.IReplayable#getDecorator() 63 */ 64 @Override 65 public IReplayDecorator getDecorator() { 66 return EFGReplayDecorator.getInstance(); 67 } 55 68 56 69 }
Note: See TracChangeset
for help on using the changeset viewer.