Packageorg.springextensions.actionscript.ioc.config.property.impl
Classpublic class Properties
InheritanceProperties Inheritance Object
Implements IPropertiesProvider

The Properties class represents a collection of properties in the form of key-value pairs. All keys and values are of type String



Public Properties
 PropertyDefined By
  content : Object
[read-only] The content of the Properties instance as an object.
Properties
  length : uint
[read-only]
Properties
  propertyNames : Vector.<String>
[read-only] Returns an array with the keys of all properties.
Properties
Public Methods
 MethodDefined By
  
Creates a new Properties object.
Properties
  
getProperty(key:String):*
Gets the value of property that corresponds to the given key.
Properties
  
hasProperty(key:String):Boolean
Properties
  
merge(properties:IPropertiesProvider, overrideProperty:Boolean = false):void
Adds all conIPropertiese given properties object to this Properties.
Properties
  
setProperty(key:String, value:String):void
Sets a property.
Properties
Protected Methods
 MethodDefined By
  
addPropertyName(key:String):void
Properties
  
Properties
Property Detail
contentproperty
content:Object  [read-only]

The content of the Properties instance as an object.


Implementation
    public function get content():Object
lengthproperty 
length:uint  [read-only]


Implementation
    public function get length():uint
propertyNamesproperty 
propertyNames:Vector.<String>  [read-only]

Returns an array with the keys of all properties. If no properties were found, an empty array is returned.


Implementation
    public function get propertyNames():Vector.<String>
Constructor Detail
Properties()Constructor
public function Properties()

Creates a new Properties object.

Method Detail
addPropertyName()method
protected function addPropertyName(key:String):void

Parameters

key:String

getProperty()method 
public function getProperty(key:String):*

Gets the value of property that corresponds to the given key. If no property was found, null is returned.

Parameters

key:String — the name of the property to get

Returns
*
hasProperty()method 
public function hasProperty(key:String):Boolean

Parameters

key:String

Returns
Boolean
initProperties()method 
protected function initProperties():void

merge()method 
public function merge(properties:IPropertiesProvider, overrideProperty:Boolean = false):void

Adds all conIPropertiese given properties object to this Properties.

Parameters

properties:IPropertiesProvider
 
overrideProperty:Boolean (default = false)

setProperty()method 
public function setProperty(key:String, value:String):void

Sets a property. If the property with the given key already exists, it will be replaced by the new value.

Parameters

key:String — the key of the property to set
 
value:String — the value of the property to set