Packagepotomac.bundle
Classpublic dynamic class Extension
InheritanceExtension Inheritance Object

Extension describes an instance of a metadata extension declared within a class. Extension is a dynamic class and contains dynamic properties that map to the attributes of the extension. For example, if the extension declaration contains a name property, then the matching Extension instance will contain a dynamic property name. The datatype of the dynamic properties is either boolean, integer, or string as declared by the extension point. For attributes marked as asset types, the property's datatype is either Class (which contains the embeded resource) or, in cases where the bundle wasn't known during compilation, the property will be a string containing the full URL to the resource.



Public Properties
 PropertyDefined By
  bundleID : String
[read-only] The name of the bundle where the extension is declared.
Extension
  className : String
[read-only] The name of the class which declared the extension.
Extension
  constructor : Constructor
[read-only] The constructor where this extension was declared or null if it wasn't declared on a constructor.
Extension
  declaredOn : int
[read-only] Returns one of the DECLAREDON_ constants describing where this extension was declared.
Extension
  DECLAREDON_CLASS : int = 1
[static]
Extension
  DECLAREDON_CONSTRUCTOR : int = 2
[static]
Extension
  DECLAREDON_METHOD : int = 3
[static]
Extension
  DECLAREDON_VARIABLE : int = 4
[static]
Extension
  id : String
[read-only] The id of the extension or null if an id wasn't provided.
Extension
  method : Method
[read-only] The method where this extension was declared or null if it wasn't declared on a method.
Extension
  pointID : String
[read-only] The id of the extension point of the extension.
Extension
  variable : Variable
[read-only] The variable where this extension was declared or null if it wasn't declared on a variable.
Extension
Public Methods
 MethodDefined By
  
Extension(extension:XML, extensionPoint:ExtensionPoint, baseURL:String)
Callers should not construct instances of Extension.
Extension
  
toString():String
Extension
Property Detail
bundleIDproperty
bundleID:String  [read-only]

The name of the bundle where the extension is declared.


Implementation
    public function get bundleID():String
classNameproperty 
className:String  [read-only]

The name of the class which declared the extension.


Implementation
    public function get className():String
constructorproperty 
constructor:Constructor  [read-only]

The constructor where this extension was declared or null if it wasn't declared on a constructor.


Implementation
    public function get constructor():Constructor
declaredOnproperty 
declaredOn:int  [read-only]

Returns one of the DECLAREDON_ constants describing where this extension was declared.


Implementation
    public function get declaredOn():int
DECLAREDON_CLASSproperty 
public static var DECLAREDON_CLASS:int = 1

DECLAREDON_CONSTRUCTORproperty 
public static var DECLAREDON_CONSTRUCTOR:int = 2

DECLAREDON_METHODproperty 
public static var DECLAREDON_METHOD:int = 3

DECLAREDON_VARIABLEproperty 
public static var DECLAREDON_VARIABLE:int = 4

idproperty 
id:String  [read-only]

The id of the extension or null if an id wasn't provided.


Implementation
    public function get id():String
methodproperty 
method:Method  [read-only]

The method where this extension was declared or null if it wasn't declared on a method.


Implementation
    public function get method():Method
pointIDproperty 
pointID:String  [read-only]

The id of the extension point of the extension.


Implementation
    public function get pointID():String
variableproperty 
variable:Variable  [read-only]

The variable where this extension was declared or null if it wasn't declared on a variable.


Implementation
    public function get variable():Variable
Constructor Detail
Extension()Constructor
public function Extension(extension:XML, extensionPoint:ExtensionPoint, baseURL:String)

Callers should not construct instances of Extension. Extensions can be retrieved via BundleService.

Parameters
extension:XML
 
extensionPoint:ExtensionPoint
 
baseURL:String
Method Detail
toString()method
public function toString():String

Returns
String