Used for resolving property placeholders.
ignoreUnresolvablePlaceholders:Boolean [read-write]Implementation
public function get ignoreUnresolvablePlaceholders():Boolean
public function set ignoreUnresolvablePlaceholders(value:Boolean):void
properties:Properties [read-write]
Implementation
public function get properties():Properties
public function set properties(value:Properties):void
regExp:RegExp [read-write]Implementation
public function get regExp():RegExp
public function set regExp(value:RegExp):void
public function PropertyPlaceholderResolver(regExp:RegExp = null, properties:Properties = null, ignoreUnresolvablePlaceholders:Boolean = false)
Creates a PropertyPlaceholderResolver instance.
Parameters
| regExp:RegExp (default = null) — the regular expression used for searching for property placeholders
|
| |
| properties:Properties (default = null) — the properties
|
| |
| ignoreUnresolvablePlaceholders:Boolean (default = false) — whether or not to ignore (fail silent) unresolvable properties or not (throw error)
|
public function resolvePropertyPlaceholders(value:String, regExp:RegExp = null, properties:Properties = null):String
Resolves the property placeholders in the given value, using the given regular expression. Property
replacement happens recursively to make sure that property placeholders that are replaced by other
property placeholders also get replaced.
Parameters
| value:String — the string value for which to replace its placeholders
|
| |
| regExp:RegExp (default = null) — the regular expression used to search for property placeholders
|
| |
| properties:Properties (default = null) |
Returns
| String — the value with its property placeholders resolved
|
Copyright 2007-2010 Spring Actionscript.