Packageorg.spicefactory.parsley.core.scope
Classpublic class ScopeDefinition
InheritanceScopeDefinition Inheritance Object

The definition for a single scope.



Public Properties
 PropertyDefined By
  inherited : Boolean
[read-only] Indicates whether this scope will be inherited by child Contexts.
ScopeDefinition
  name : String
[read-only] The name of the scope.
ScopeDefinition
  uuid : String
[read-only] The unique id of this scope.
ScopeDefinition
Public Methods
 MethodDefined By
  
ScopeDefinition(name:String, inherited:Boolean, uuid:String)
Creates a new instance.
ScopeDefinition
Property Detail
inheritedproperty
inherited:Boolean  [read-only]

Indicates whether this scope will be inherited by child Contexts.


Implementation
    public function get inherited():Boolean
nameproperty 
name:String  [read-only]

The name of the scope.


Implementation
    public function get name():String
uuidproperty 
uuid:String  [read-only]

The unique id of this scope. In small or mid-size projects an id is often not needed, the framework will autogenerate the id in these cases and it can simply be ignored. In a big modular application there may be the need to address one particular scope within the system and the scheme of ids assigned to the scopes is often application-specific. The uid may be used to identify persistent published values or to explicitly route messages.


Implementation
    public function get uuid():String
Constructor Detail
ScopeDefinition()Constructor
public function ScopeDefinition(name:String, inherited:Boolean, uuid:String)

Creates a new instance.

Parameters
name:String — the name of the scope
 
inherited:Boolean — whether this scope will be inherited by child Contexts
 
uuid:String — the globally unique id of this scope