com.adobe.icc.editors.model.config

# XMLConfigProvider - AS3 Asset Composer

Package | com.adobe.icc.editors.model.config
Class | public class XMLConfigProvider
Inheritance | XMLConfigProvider Object
Implements | IConfigProvider

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Class to load xml config for the editor

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | XMLConfigProvider(config:XML) Constructor. | XMLConfigProvider
|  | getDefaultDateFormat():String Fetches the default date format from the xml config | XMLConfigProvider
|  | getDefaultFont():String Fetches the default font from the xml config. | XMLConfigProvider
|  | getDefaultFontSize():String Fetches the default font size from the xml config. | XMLConfigProvider
|  | getDefaultLetterSpacing():String Fetches the default Letter spacing from the xml config. | XMLConfigProvider
|  | getDefaultLineHeight():String Fetches the default Line height from the xml config. | XMLConfigProvider
|  | getFonts():Array Fetch array of fonts from the xml config. | XMLConfigProvider
|  | getFontSizes():Array Fetch array of font sizes from the xml config. | XMLConfigProvider
|  | getLetterSpacings():Array Fetches the array of Letter spacings from the xml config. | XMLConfigProvider
|  | getLineHeights():Array Fetches the array of Line heights from the xml config. | XMLConfigProvider
|  | getNewLineXmlData():String The content of TBX's TBXXML for generating new line | XMLConfigProvider
|  | getProperty(name:String):String Fetches the value of the property from the xml config by specifying its name. | XMLConfigProvider
|  | getPropertyArray(name:String):Array Fetches the array of value from the xml config by specifying its property name. | XMLConfigProvider
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the CML config. | XMLConfigProvider
|  | valueOf():Object Returns the primitive value of the specified object. | Object
|  | xmlToArray(xml:XMLList):Array [static] Returns array from the provided XML | XMLConfigProvider

Constructor Detail

### XMLConfigProvider

()
Constructor

`public function XMLConfigProvider(config:XML)`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10.0

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Constructor.

Parameters

| `config:XML` — The XML being loaded.

Method Detail

### getDefaultDateFormat

()
method

`public function getDefaultDateFormat():String`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Fetches the default date format from the xml config

Returns

| `String` — the default date format

### getDefaultFont

()
method

`public function getDefaultFont():String`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Fetches the default font from the xml config.

Returns

| `String` — the default font

### getDefaultFontSize

()
method

`public function getDefaultFontSize():String`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Fetches the default font size from the xml config.

Returns

| `String` — the default font size

### getDefaultLetterSpacing

()
method

`public function getDefaultLetterSpacing():String`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Fetches the default Letter spacing from the xml config.

Returns

| `String` — the default Letter spacing.

### getDefaultLineHeight

()
method

`public function getDefaultLineHeight():String`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Fetches the default Line height from the xml config.

Returns

| `String` — the default Line height

### getFonts

()
method

`public function getFonts():Array`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Fetch array of fonts from the xml config.

Returns

| `Array` — array of fonts

### getFontSizes

()
method

`public function getFontSizes():Array`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Fetch array of font sizes from the xml config.

Returns

| `Array` — array of font size.

### getLetterSpacings

()
method

`public function getLetterSpacings():Array`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Fetches the array of Letter spacings from the xml config.

Returns

| `Array` — the array of Letter spacings

### getLineHeights

()
method

`public function getLineHeights():Array`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Fetches the array of Line heights from the xml config.

Returns

| `Array` — the array of Line heights

### getNewLineXmlData

()
method

`public function getNewLineXmlData():String`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

The content of TBX's TBXXML for generating new line

Returns

| `String` —

### getProperty

()
method

`public function getProperty(name:String):String`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Fetches the value of the property from the xml config by specifying its name.

Parameters

| `name:String` — Name of the property to be fetched.

Returns

| `String` — value of the property from the xml config by specifying its name.

### getPropertyArray

()
method

`public function getPropertyArray(name:String):Array`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Fetches the array of value from the xml config by specifying its property name.

Parameters

| `name:String` — Name of the property to be fetched.

Returns

| `Array` — array of value from the xml config by specifying its property name.

### toString

()
method

`public function toString():String`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Returns the string representation of the CML config.

Returns

| `String` —

### xmlToArray

()
method

`public static function xmlToArray(xml:XMLList):Array`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Returns array from the provided XML

Parameters

| `xml:XMLList` — The XML

Returns

| `Array` — array from the provided XML

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00