lib/enhance/encoding/adapters/index.js
function(typeCode) {
        switch (typeCode) {
          case this.types.undefined:
            return this.Undefined;
          case this.types.string:
            return this.String;
          case this.types.integer:
            return this.Integer;
          case this.types.double:
            return this.Double;
          case this.types.boolean:
            return this.Boolean;
          case this.types["null"]:
            return this.Null;
          case this.types.datetime:
            return this.DateTime;
          case this.types.array:
            return this.Array;
          case this.types.object:
            return this.Object;
          case this.types["function"]:
            return this.Function;
          default:
            throw new Error("Unknown typeCode \"" + typeCode + "\".");
        }
      }
function(typeCode) {
        switch (typeCode) {
          case this.types.undefined:
            return this.Undefined;
          case this.types.string:
            return this.String;
          case this.types.integer:
            return this.Integer;
          case this.types.double:
            return this.Double;
          case this.types.boolean:
            return this.Boolean;
          case this.types["null"]:
            return this.Null;
          case this.types.datetime:
            return this.DateTime;
          case this.types.array:
            return this.Array;
          case this.types.object:
            return this.Object;
          case this.types["function"]:
            return this.Function;
          default:
            throw new Error("Unknown typeCode \"" + typeCode + "\".");
        }
      }
function ( typeCode ) { switch ( typeCode ) { case this . types . undefined : return this . Undefined ; case this . types . string : return this . String ; case this . types . integer : return this . Integer ; case this . types . double : return this . Double ; case this . types . boolean : return this . Boolean ; case this . types [ "null" ] : return this . Null ; case this . types . datetime : return this . DateTime ; case this . types . array : return this . Array ; case this . types . object : return this . Object ; case this . types [ "function" ] : return this . Function ; default : throw new Error ( "Unknown typeCode \"" + typeCode + "\"." ) ; } }
Get an Adapter for typeCode
@method
@param {integer} typeCode Type code.
@return {AbstractAdapter} AbstractAdapter extension
Get an Adapter for typeCode