
            /**
            IMPORTANT !!!
       
            DO NOT EDIT THIS FILE. IT IS GENERATED FROM approriate xml file in xmlresources/gbinfomessages BY
            THE JavaClassesGenerator.xslt. MODIFY THESE FILES INSTEAD OF THIS ONE.
       
            IMPORTANT END !!!
            */
            package
            cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages;
	    		import java.util.*;    
    import javax.vecmath.*;    
    import cz.cuni.amis.pogamut.base.communication.messages.*;    
    import cz.cuni.amis.pogamut.base.agent.worldview.*;    
    import cz.cuni.amis.pogamut.base.agent.worldview.objects.*;    
    import cz.cuni.amis.pogamut.base.communication.translator.*;    
    import cz.cuni.amis.pogamut.ut2004.communication.translator.itemdescriptor.*;    
    import cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category;    
    import cz.cuni.amis.pogamut.base.exceptions.*;    
    import cz.cuni.amis.pogamut.base3d.worldview.objects.*;    
    import cz.cuni.amis.pogamut.ut2004.communication.messages.*;    
    import cz.cuni.amis.pogamut.ut2004.agent.worldview.objects.*;    
                
            
            /**
              
		Asynchronous message. Message with data from dialog.
	
                          Corresponding GameBots message is 
                          DLGCMD.
                      
             */
            
            public class
            DialogCommand
                    extends GBEvent
                
	            	implements IWorldEvent
                        
            {
            
            
            
    	/** Example how the message looks like - used during parser tests. */
    	public static final String PROTOTYPE = 
    		"DLGCMD {Id text} {SourceId text} {Command text} {Data text}";
    
            
            /////// Properties BEGIN
            
        /**
        Id of the dialog for with which is this command related to. */
        protected
         String Id = 
        	null;
        
        
        /**
        Id of the dialog for with which is this command related to. */
        public
        String getId() {
            return
         Id;
        }
        

        
        /**
        Id of the component from where the command originates. */
        protected
         String SourceId = 
        	null;
        
        
        /**
        Id of the component from where the command originates. */
        public
        String getSourceId() {
            return
         SourceId;
        }
        

        
        /**
        Type of the command. SUBMIT and CANCEL carry the data. */
        protected
         String Command = 
        	null;
        
        
        /**
        Type of the command. SUBMIT and CANCEL carry the data. */
        public
        String getCommand() {
            return
         Command;
        }
        

        
        /**
        Data carried in the message, usually in form "param1=value1&param2=value2&...&paramN=valueN", equals, ampersands and backslashes are escaped by backslash. */
        protected
         String Data = 
        	null;
        
        
        /**
        Data carried in the message, usually in form "param1=value1&param2=value2&...&paramN=valueN", equals, ampersands and backslashes are escaped by backslash. */
        public
        String getData() {
            return
         Data;
        }
        

        
            /////// Properties END
            
            /////// Extra Java code BEGIN
                        	
            	/////// Additional code from xslt BEGIN            	 
            			
            		
            		
            	/////// Additional code from xslt END            
				                    
	            /////// Extra Java from XML BEGIN
            		
            	/////// Extra Java from XML END
            	    
            /////// Extra Java code END
            
            
            
            /**
              * Cloning constructor.
              */
             public DialogCommand(DialogCommand original) {
                
                     this.Id=original.Id;
                
                     this.SourceId=original.SourceId;
                
                     this.Command=original.Command;
                
                     this.Data=original.Data;
                
             }   
             
             
                 /**
                  * Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
                  */
	             public DialogCommand() {
	             }
             
                
                 
            public String toString() {
                return
                
                		super.toString() + " | " +
                		
				               "Id = " + 
				               String.valueOf(Id) + " | " +
				            
				               "SourceId = " + 
				               String.valueOf(SourceId) + " | " +
				            
				               "Command = " + 
				               String.valueOf(Command) + " | " +
				            
				               "Data = " + 
				               String.valueOf(Data) + " | " +
				             "";
                	 
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Id</b> : " + 
            String.valueOf(Id) + 
            " <br/> " +
             
            "<b>SourceId</b> : " + 
            String.valueOf(SourceId) + 
            " <br/> " +
             
            "<b>Command</b> : " + 
            String.valueOf(Command) + 
            " <br/> " +
             
            "<b>Data</b> : " + 
            String.valueOf(Data) + 
            " <br/> " +
             "";
             }            
             
             
             
             }
                         
        