class com.google.ads.studio.data.Dto
A Data Transfer Object. The Flash authoring environment's XCH object sometimes turns number strings into numeric values. To prevent this, all data transferred between the component UI and the runtime component is transferred using this Dto. Port from AS2 version.
Constants
Name | Value | Description |
---|---|---|
OBJECT | object | An object data type. |
STRING | string | A string data type. |
STRING_PREFIX | #componentgui# | String used to prevent number-string-to-numeric-value coercion in the XCH object for strings like "004250". |
Static Methods
Dto.enforceValueType(value:Object, opt_inplace:Boolean=false)
:
Object
Enforces value type by checking if it is a string and, if so, prefixing it with a known delimiter. Otherwise, returns the value.
Dto.parseValue(value:Object, opt_inplace:Boolean=false)
:
Object
Parses a value. If the value is a string, strips delimiter from the string.