/**
 * Generated by Apache Royale Compiler from org\apache\royale\routing\EscapedFragmentBead.as
 * org.apache.royale.routing.EscapedFragmentBead
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.royale.routing.EscapedFragmentBead');

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.routing.URLParameterBead');



/**
 *  constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9
 * @constructor
 * @extends {org.apache.royale.routing.URLParameterBead}
 */
org.apache.royale.routing.EscapedFragmentBead = function() {
  org.apache.royale.routing.EscapedFragmentBead.base(this, 'constructor');
};
goog.inherits(org.apache.royale.routing.EscapedFragmentBead, org.apache.royale.routing.URLParameterBead);


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.royale.routing.EscapedFragmentBead', org.apache.royale.routing.EscapedFragmentBead);


/**
 * @private
 * @const
 * @type {string}
 */
org.apache.royale.routing.EscapedFragmentBead.org_apache_royale_routing_EscapedFragmentBead_token = "?_escaped_fragment_=";


org.apache.royale.routing.EscapedFragmentBead.prototype.set__strand = function(value) {
  this._strand = value;
  if (location.search.indexOf(org.apache.royale.routing.EscapedFragmentBead.org_apache_royale_routing_EscapedFragmentBead_token) != -1)
    this.dispatchEvent(new org.apache.royale.events.Event("ready"));
  
};


org.apache.royale.routing.EscapedFragmentBead.prototype.get__urlParameters = function() {
  var /** @type {string} */ s = location.search;
  var /** @type {number} */ c = s.indexOf(org.apache.royale.routing.EscapedFragmentBead.org_apache_royale_routing_EscapedFragmentBead_token);
  if (c != -1)
    s = s.substring(c + org.apache.royale.routing.EscapedFragmentBead.org_apache_royale_routing_EscapedFragmentBead_token.length);
  return s;
  
};


Object.defineProperties(org.apache.royale.routing.EscapedFragmentBead.prototype, /** @lends {org.apache.royale.routing.EscapedFragmentBead.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.routing.EscapedFragmentBead.prototype.set__strand},
/**
  * @export
  * @type {string} */
urlParameters: {
get: org.apache.royale.routing.EscapedFragmentBead.prototype.get__urlParameters}}
);


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.royale.routing.EscapedFragmentBead.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'EscapedFragmentBead', qName: 'org.apache.royale.routing.EscapedFragmentBead', kind: 'class' }] };



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.routing.EscapedFragmentBead.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'strand': { type: 'org.apache.royale.core.IStrand', access: 'writeonly', declaredBy: 'org.apache.royale.routing.EscapedFragmentBead'},
        'urlParameters': { type: 'String', access: 'readonly', declaredBy: 'org.apache.royale.routing.EscapedFragmentBead'}
      };
    },
    methods: function () {
      return {
        'EscapedFragmentBead': { type: '', declaredBy: 'org.apache.royale.routing.EscapedFragmentBead'}
      };
    }
  };
};