Packageurlkit.rules
Classpublic class UrlRuleSet
InheritanceUrlRuleSet Inheritance UrlRuleContainer Inheritance UrlBaseRule Inheritance flash.events.EventDispatcher

UrlRuleSet is a general container for a set of rules that act in parallel (although not necessarily at the same time). It computes a URL by concatenating the URLs provided by each of its active children, ignoring inactive rules. It parses a URL by letting each child interpret the URL as it sees fit.

There are three types of UrlRuleSet behavior, distinguished by the setting of the type property:

A top-level rule element is usually a UrlRuleSet, but UrlRuleSets can also be used in the interior of a rule tree.



Public Properties
 PropertyDefined by
 Inheritedactive : Boolean
UrlBaseRule
 InheritedcontainerUrl : String
Set the URL for this rule based on some or all of a URL passed in from the containing browser.
UrlBaseRule
 InheriteddoesMatchUrl : Boolean
UrlBaseRule
 Inheritedenabled : Boolean
Get the value of the enabled flag, gating whether this rule is ever capable of reflecting or contributing state in the application .
UrlBaseRule
 InheritedmatchUrlBeginning : Boolean
UrlBaseRule
 Inheritedparent : IUrlRule
Set the parent rule of this rule.
UrlBaseRule
 Inheritedready : Boolean
Get a flag indicating whether this rule is sufficiently initialized to propagate its browser-determined state to the application.
UrlBaseRule
 Inheritedtitle : String
Get the title component string associated with this rule, to be used in determining the overall application window title.
UrlBaseRule
  type : String = "all"
UrlRuleSet
 Inheritedurl : String
Get the URL component associated with this rule, representing its encoding of the current application state.
UrlBaseRule
 InheritedurlFormat : String
A string that determines the URL generated by this rule.
UrlBaseRule
 InheritedurlPattern : String
A regular expression that will restrict this rule to only be active for a URL that matches it.
UrlBaseRule
 InheritedurlPatternRegEx : RegExp
UrlBaseRule
 Inherited_urlRules : Array
UrlRuleContainer
 InheritedurlRules : Array
UrlRuleContainer
Protected Properties
 PropertyDefined by
 Inherited_document : UIComponent
Document as passed in via IMXMLObject.initialize()
UrlBaseRule
 Inherited_title : String
Storage property for title.
UrlBaseRule
 Inheritedvalid : Boolean
Get a flag indicating
UrlBaseRule
Public Methods
 MethodDefined by
  
UrlRuleSet
 Inherited
addChild(rule:IUrlRule):void
UrlRuleContainer
 Inherited
defaultPatternFromFormat(f:String):String
[static]
UrlBaseRule
 Inherited
exec(url:String):Array
UrlBaseRule
 Inherited
initialized(document:Object, id:String):void
Notify this rule that it has been completely initialized by its owning document.
UrlBaseRule
 Inherited
Invalidate the application state of this rule, which ultimately requests the browser to update its location bar from the top-level rule's URL.
UrlBaseRule
 Inherited
matchUrlPrefix(url:String):String
Determine whether this rule is able to consume and interpret all or some prefix of a given URL as a valid application state.
UrlBaseRule
Protected Methods
 MethodDefined by
 Inherited
applyUrlFormat(stringValue:String):String
UrlBaseRule
 Inherited
checkReadiness(e:Event):void
Check this rule to determine whether it's ready, setting the ready property to reflect this.
UrlBaseRule
  
Commit a browser-supplied URL to this rule set.
UrlRuleSet
  
Refresh the rule set's URL based on the application state.
UrlRuleSet
 Inherited
Validate this rule such that its URL and title correspond to the application state, as determined by whatever URL/state mapping this rule defines.
UrlBaseRule
Events
 EventSummaryDefined by
 Inherited  UrlRuleContainer
 Inherited This event is dispatched when the URL component for this value changes.UrlBaseRule
Public Constants
 ConstantDefined by
  ALL : String = "all"
[static]
UrlRuleSet
  ANY : String = "any"
[static]
UrlRuleSet
  ONE : String = "one"
[static]
UrlRuleSet
 InheritedSTATE_CHANGE : String = "stateChange"
[static]
UrlBaseRule
Property detail
typeproperty
public var type:String = "all"

This property can be used as the source for data binding.

Constructor detail
UrlRuleSet()constructor
public function UrlRuleSet()
Method detail
commitBrowserChange()method
protected override function commitBrowserChange():void

Commit a browser-supplied URL to this rule set. Overridden to implement rule-set-specific policies.

computeApplicationState()method 
protected override function computeApplicationState():void

Refresh the rule set's URL based on the application state. Overridden to apply ALL, ANY and ONE policies.

Constant detail
ALLconstant
public static const ALL:String = "all"
ANYconstant 
public static const ANY:String = "any"
ONEconstant 
public static const ONE:String = "one"