Packageorg.springextensions.actionscript.utils
SVN browsingPropertyPlaceholderResolver.as
FisheyePropertyPlaceholderResolver.as
Classpublic class PropertyPlaceholderResolver

Used for resolving property placeholders.



Public Properties
 PropertyDefined by
  ignoreUnresolvablePlaceholders : Boolean
PropertyPlaceholderResolver
  properties : Properties
PropertyPlaceholderResolver
  regExp : RegExp
PropertyPlaceholderResolver
Public Methods
 MethodDefined by
  
PropertyPlaceholderResolver(regExp:RegExp = null, properties:Properties = null, ignoreUnresolvablePlaceholders:Boolean = false)
Creates a PropertyPlaceholderResolver instance.
PropertyPlaceholderResolver
  
resolvePropertyPlaceholders(value:String, regExp:RegExp = null, properties:Properties = null):String
Resolves the property placeholders in the given value, using the given regular expression.
PropertyPlaceholderResolver
Property detail
ignoreUnresolvablePlaceholdersproperty
ignoreUnresolvablePlaceholders:Boolean  [read-write]Implementation
    public function get ignoreUnresolvablePlaceholders():Boolean
    public function set ignoreUnresolvablePlaceholders(value:Boolean):void
propertiesproperty 
properties:Properties  [read-write]Implementation
    public function get properties():Properties
    public function set properties(value:Properties):void
regExpproperty 
regExp:RegExp  [read-write]Implementation
    public function get regExp():RegExp
    public function set regExp(value:RegExp):void
Constructor detail
PropertyPlaceholderResolver()constructor
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)
Method detail
resolvePropertyPlaceholders()method
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