BooleanDataAdapter

Module: TSUI.Data
Extends: DataAdapter
Implements: None
Exported: Yes

Associated source files:

Description

Boolean Data Adapter converts a raw input string to a boolean or vice-versa.

Public Methods

I2O(input: string): boolean
Converts raw data to JavaScript object data.Note: This implementation does not check for a valid boolean with the exception that it does handle null and undefined.Note: This implementation tests for equality with "true", "1", "yes", "on" (case-insensitive).
  • input: string - The raw string data.
  • Returns: boolean - The boolean data or null or undefined.
O2I(output: boolean): string
Converts JavaScript object data to raw data.Note: This implementation does handle null and undefined.
  • output: boolean -
  • Returns: string - The raw string data.


Last edited Aug 29, 2013 at 10:09 PM by EdwardNutting, version 1

Comments

No comments yet.