
            /**
            IMPORTANT !!!
       
            DO NOT EDIT THIS FILE. IT IS GENERATED FROM approriate xml file in xmlresources/gbcommands BY
            THE JavaClassesGenerator.xslt. MODIFY THESE FILES INSTEAD OF THIS ONE.
       
            IMPORTANT END !!!
            */
            package
            cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands;
	    		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.*;    
                
            
            /**
              
		Begins a batch of DialogItem commands.
	
                          Corresponding GameBots command is 
                          DLGBEGIN.
                      
             */
            
            public class
            DialogBegin extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command DialogBegin.
              
		Begins a batch of DialogItem commands.
	Corresponding GameBots message for this command is 
              DLGBEGIN.
                  @param Player Name of the player on who's HUD should be the dialog shown.
                  @param Id Id of this dialog. This should be an unique alphanumeric sequence without spaces.
              */
             public DialogBegin(
                String Player,  String Id) {
                    
                    this.Player = Player;
                
                    this.Id = Id;
                
                }
               
            
            		/**
		             Creates new instance of command DialogBegin.
		             
		Begins a batch of DialogItem commands.
	Corresponding GameBots message for this command is 
		             DLGBEGIN.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  DialogBegin() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        Name of the player on who's HUD should be the dialog shown. */
        protected
         String Player = 
        	null;
        
        
        /**
        Name of the player on who's HUD should be the dialog shown. */
        public
        String getPlayer() {
            return
         Player;
        }
        

        
            /**         
        Name of the player on who's HUD should be the dialog shown. */
        public DialogBegin setPlayer(String Player) {
            this.Player = Player;
            return this;
            }
       
        /**
        Id of this dialog. This should be an unique alphanumeric sequence without spaces. */
        protected
         String Id = 
        	null;
        
        
        /**
        Id of this dialog. This should be an unique alphanumeric sequence without spaces. */
        public
        String getId() {
            return
         Id;
        }
        

        
            /**         
        Id of this dialog. This should be an unique alphanumeric sequence without spaces. */
        public DialogBegin setId(String Id) {
            this.Id = Id;
            return this;
            }
       
            /////// 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 DialogBegin(DialogBegin original) {
                
                     this.Player=original.Player;
                
                     this.Id=original.Id;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Player</b> : " + 
            String.valueOf(Player) + 
            " <br/> " +
             
            "<b>Id</b> : " + 
            String.valueOf(Id) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("DLGBEGIN");
              		
		    					if (Player != null) {
		    						buf.append(" {Player " + Player + "}");
		    					}
		    				
		    					if (Id != null) {
		    						buf.append(" {Id " + Id + "}");
		    					}
		    				            
            		return buf.toString();
            }
             
             }
                         
        