| Package | org.springextensions.actionscript.ioc.config.property.impl |
| Class | public class Properties |
| Inheritance | Properties Object |
| Implements | IPropertiesProvider |
Properties class represents a collection of properties
in the form of key-value pairs. All keys and values are of type
String
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
addPropertyName(key:String):void | Properties | ||
initProperties():void | Properties | ||
| content | property |
content:Object [read-only] The content of the Properties instance as an object.
public function get content():Object| length | property |
length:uint [read-only] public function get length():uint| propertyNames | property |
propertyNames:Vector.<String> [read-only] Returns an array with the keys of all properties. If no properties were found, an empty array is returned.
public function get propertyNames():Vector.<String>| Properties | () | Constructor |
public function Properties()
Creates a new Properties object.
| addPropertyName | () | method |
protected function addPropertyName(key:String):voidParameters
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
|
* |
| hasProperty | () | method |
public function hasProperty(key:String):BooleanParameters
key:String |
Boolean |
| initProperties | () | method |
protected function initProperties():void| merge | () | method |
public function merge(properties:IPropertiesProvider, overrideProperty:Boolean = false):voidAdds all conIPropertiese given properties object to this Properties.
Parameters
properties:IPropertiesProvider | |
overrideProperty:Boolean (default = false) |
| setProperty | () | method |
public function setProperty(key:String, value:String):voidSets 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
|