An interface used for namespace resolutions (such as
ns:MyClass).
public function getNamespaceValue(prefix:String):String
Returns the package name bound to a given prefix.
Parameters
| prefix:String — prefix to look for.
|
Returns
| String — the package name bound to the prefix, or null
if the prefix wasn't registered.
|
public function registerNamespace(prefix:String, packageName:String):String
Register a namespace prefix bound to a given package name.
Parameters
| prefix:String — the prefix to be registered.
|
| |
| packageName:String — the package name bound to the prefix.
|
Returns
| String — the previous package name bound to the prefix, or
null if the prefix wasn't registered.
|
public function resolve(className:String):String
Returns a fully qualified class name, resolving namespace
prefix (such as ns:MyClass resolved to
path.to.MyClass).
Parameters
| className:String — class name to be resolved.
|
Returns
| String — the resolved class name.
|
See also
public function unregisterNamespace(prefix:String):String
Unregister a namespace prefix.
Parameters
| prefix:String — prefix to be unregistered.
|
Returns
| String — the package name bound to the prefix, or null
if the prefix wasn't registered.
|