Package | org.swizframework.metadata |
Class | public class InjectMetadataTag |
Inheritance | InjectMetadataTag ![]() ![]() |
[Inject]
metadata tags.
Property | Defined By | ||
---|---|---|---|
![]() | args : Array
Array of arguments defined in the tag. | BaseMetadataTag | |
![]() | asTag : String [read-only]
String showing what this tag looks like in code. | BaseMetadataTag | |
bind : Boolean [read-only]
Returns bind attribute of [Inject] tag as a Boolean value. | InjectMetadataTag | ||
![]() | defaultArgName : String
Name that will be assumed/used when a default argument value is provided,
e.g. | BaseMetadataTag | |
destination : String [read-only]
Returns destination attribute of [Inject] tag. | InjectMetadataTag | ||
![]() | host : IMetadataHost
Element (class, method or property) on which the metadata tag is defined. | BaseMetadataTag | |
![]() | name : String
Name of the tag, e.g. | BaseMetadataTag | |
required : Boolean [read-only]
Returns required attribute of [Inject] tag as a Boolean value. | InjectMetadataTag | ||
source : String
Returns source attribute of [Inject] tag. | InjectMetadataTag | ||
twoWay : Boolean [read-only]
Returns twoWay attribute of [Inject] tag as a Boolean value. | InjectMetadataTag |
Property | Defined By | ||
---|---|---|---|
![]() | _args : Array
Backing variable for args property. | BaseMetadataTag | |
_bind : Boolean = false
Backing variable for read-only bind property. | InjectMetadataTag | ||
![]() | _defaultArgName : String
Backing variable for defaultArgName property. | BaseMetadataTag | |
_destination : String
Backing variable for read-only destination property. | InjectMetadataTag | ||
![]() | _host : IMetadataHost
Backing variable for host property. | BaseMetadataTag | |
logger : SwizLogger | InjectMetadataTag | ||
![]() | _name : String
Backing variable for name property. | BaseMetadataTag | |
_required : Boolean = true
Backing variable for read-only required property. | InjectMetadataTag | ||
_source : String
Backing variable for read-only source property. | InjectMetadataTag | ||
_twoWay : Boolean = false
Backing variable for read-only twoWay property. | InjectMetadataTag |
Method | Defined By | ||
---|---|---|---|
Constructor sets defaultArgName. | InjectMetadataTag | ||
copyFrom(metadataTag:IMetadataTag):void [override] | InjectMetadataTag | ||
![]() | getArg(argName:String):MetadataArg | BaseMetadataTag | |
![]() | hasArg(argName:String):Boolean | BaseMetadataTag | |
![]() | toString():String
Utility method useful for development and debugging
that returns string showing what this tag looked like defined in code. | BaseMetadataTag |
_bind | property |
protected var _bind:Boolean = false
Backing variable for read-only bind
property.
_destination | property |
protected var _destination:String
Backing variable for read-only destination
property.
_required | property |
protected var _required:Boolean = true
Backing variable for read-only required
property.
_source | property |
protected var _source:String
Backing variable for read-only source
property.
_twoWay | property |
protected var _twoWay:Boolean = false
Backing variable for read-only twoWay
property.
bind | property |
bind:Boolean
[read-only]
Returns bind attribute of [Inject] tag as a Boolean
value.
If true will cause a binding to be established.
The default value is false
.
public function get bind():Boolean
destination | property |
destination:String
[read-only] Returns destination attribute of [Inject] tag. Refers to the injection target.
public function get destination():String
logger | property |
protected var logger:SwizLogger
required | property |
required:Boolean
[read-only]
Returns required attribute of [Inject] tag as a Boolean
value.
If true Swiz will throw an error if it fails to fill this dependency.
The default value is true
.
public function get required():Boolean
source | property |
source:String
Returns source attribute of [Inject] tag.
Refers to the source to be used for injection.
Is the default attribute, meaning [Inject( "someModel" )]
is
equivalent to [Inject( source="someModel" )]
.
public function get source():String
public function set source(value:String):void
twoWay | property |
twoWay:Boolean
[read-only]
Returns twoWay attribute of [Inject] tag as a Boolean
value.
If true will cause a two way binding to be established.
The default value is false
.
public function get twoWay():Boolean
InjectMetadataTag | () | Constructor |
public function InjectMetadataTag()
Constructor sets defaultArgName
.
copyFrom | () | method |
override public function copyFrom(metadataTag:IMetadataTag):void
Parameters
metadataTag:IMetadataTag |