<commit_before>/*
 * Copyright (C) 2003-2007 
 * <NAME> <<EMAIL>>
 * <NAME> <<EMAIL>>
 * <NAME> <<EMAIL>>
 * <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
 *
 */
	 
package org.jivesoftware.xiff.events
{
	import flash.events.Event;
	
	import org.jivesoftware.xiff.data.Message;

	public class RoomEvent extends Event
	{
		public static const SUBJECT_CHANGE:String = "subjectChange";
		public static const GROUP_MESSAGE:String = "groupMessage";
		public static const PRIVATE_MESSAGE:String = "privateMessage";
		public static const ROOM_JOIN:String = "roomJoin";
		public static const ROOM_LEAVE:String = "roomLeave";
		public static const ROOM_DESTROYED:String = "roomDestroyed";
		public static const AFFILIATIONS:String = "affiliations";
		public static const ADMIN_ERROR:String = "adminError";
		public static const PASSWORD_ERROR:String = "passwordError";
		public static const REGISTRATION_REQ_ERROR:String = "registrationReqError";
		public static const BANNED_ERROR:String = "bannedError";
		public static const MAX_USERS_ERROR:String = "maxUsersError";
		public static const LOCKED_ERROR:String = "lockedError";
		public static const USER_JOIN:String = "userJoin";
		public static const USER_DEPARTURE:String = "userDeparture";
		public static const USER_KICKED:String = "userKicked";
		public static const USER_BANNED:String = "userBanned";
		public static const NICK_CONFLICT:String = "nickConflict";
		public static const CONFIGURE_ROOM:String = "configureForm";
		public static const DECLINED:String = "declined";
		
		private var _subject:String;
		private var _data:*;
		private var _errorCondition:String;
		private var _errorMessage:String;
		private var _errorType:String;
		private var _errorCode:Number;
		private var _nickname:String;
		private var _from:String;
		private var _reason:String;
		
		public function RoomEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		public function set subject(s:String) : void
		{
			_subject = s;
		}
		public function get subject() : String
		{
			return _subject;
		}
		public function set data(s:*) : void
		{
			_data = s;
		}
		public function get data() : *
		{
			return _data;
		}
		public function set errorCondition(s:String) : void
		{
			_errorCondition = s;
		}
		public function get errorCondition() : String
		{
			return _errorCondition;
		}
		public function set errorMessage(s:String) : void
		{
			_errorMessage = s;
		}
		public function get errorMessage() : String
		{
			return _errorMessage;
		}
		public function set errorType(s:String) : void
		{
			_errorType = s;
		}
		public function get errorType() : String
		{
			return _errorType;
		}
		public function set errorCode(s:Number) : void
		{
			_errorCode = s;
		}
		public function get errorCode() : Number
		{
			return _errorCode;
		}
		public function set nickname(s:String) : void
		{
			_nickname = s;
		}
		public function get nickname() : String
		{
			return _nickname;
		}
		public function set from(s:String) : void
		{
			_from = s;
		}
		public function get from() : String
		{
			return _from;
		}
		public function set reason(s:String) : void
		{
			_reason = s;
		}
		public function get reason() : String
		{
			return _reason;
		}<commit_msg>XIFF-40: Added clone functionality to RoomEvent.<commit_after>/*
 * Copyright (C) 2003-2007 
 * <NAME> <<EMAIL>>
 * <NAME> <<EMAIL>>
 * <NAME> <<EMAIL>>
 * <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
 *
 */
	 
package org.jivesoftware.xiff.events
{
	import flash.events.Event;

	public class RoomEvent extends Event
	{
		public static const SUBJECT_CHANGE:String = "subjectChange";
		public static const GROUP_MESSAGE:String = "groupMessage";
		public static const PRIVATE_MESSAGE:String = "privateMessage";
		public static const ROOM_JOIN:String = "roomJoin";
		public static const ROOM_LEAVE:String = "roomLeave";
		public static const ROOM_DESTROYED:String = "roomDestroyed";
		public static const AFFILIATIONS:String = "affiliations";
		public static const ADMIN_ERROR:String = "adminError";
		public static const PASSWORD_ERROR:String = "passwordError";
		public static const REGISTRATION_REQ_ERROR:String = "registrationReqError";
		public static const BANNED_ERROR:String = "bannedError";
		public static const MAX_USERS_ERROR:String = "maxUsersError";
		public static const LOCKED_ERROR:String = "lockedError";
		public static const USER_JOIN:String = "userJoin";
		public static const USER_DEPARTURE:String = "userDeparture";
		public static const USER_KICKED:String = "userKicked";
		public static const USER_BANNED:String = "userBanned";
		public static const NICK_CONFLICT:String = "nickConflict";
		public static const CONFIGURE_ROOM:String = "configureForm";
		public static const DECLINED:String = "declined";
		
		private var _subject:String;
		private var _data:*;
		private var _errorCondition:String;
		private var _errorMessage:String;
		private var _errorType:String;
		private var _errorCode:Number;
		private var _nickname:String;
		private var _from:String;
		private var _reason:String;
		
		public function RoomEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		public function set subject(s:String) : void
		{
			_subject = s;
		}
		public function get subject() : String
		{
			return _subject;
		}
		public function set data(s:*) : void
		{
			_data = s;
		}
		public function get data() : *
		{
			return _data;
		}
		public function set errorCondition(s:String) : void
		{
			_errorCondition = s;
		}
		public function get errorCondition() : String
		{
			return _errorCondition;
		}
		public function set errorMessage(s:String) : void
		{
			_errorMessage = s;
		}
		public function get errorMessage() : String
		{
			return _errorMessage;
		}
		public function set errorType(s:String) : void
		{
			_errorType = s;
		}
		public function get errorType() : String
		{
			return _errorType;
		}
		public function set errorCode(s:Number) : void
		{
			_errorCode = s;
		}
		public function get errorCode() : Number
		{
			return _errorCode;
		}
		public function set nickname(s:String) : void
		{
			_nickname = s;
		}
		public function get nickname() : String
		{
			return _nickname;
		}
		public function set from(s:String) : void
		{
			_from = s;
		}
		public function get from() : String
		{
			return _from;
		}
		public function set reason(s:String) : void
		{
			_reason = s;
		}
		public function get reason() : String
		{
			return _reason;
		}
		
		public override function clone():Event
		{
			var event:RoomEvent = new RoomEvent(this.type, this.bubbles, this.cancelable);
			event._subject = this._subject;
			event._data = this._data;
			event._errorCondition = this._errorCondition;
			event._errorMessage = this._errorMessage;
			event._errorType = this._errorType;
			event._errorCode = this._errorCode;
			event._nickname = this._nickname;
			event._from = this._from;
			event._reason = this._reason;
			
			return event;
		} 
{'fraction_non_alphanumeric': 0.08922638822971049, 'fraction_numerical': 0.005932605600379687, 'mean_word_length': 3.9379027533684825, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3098120', 'n_tokens_mistral': 2922, 'n_tokens_neox': 2546, 'n_words': 831}