this.encodeAmqpType = function()

in shims/rhea-js/amqp_types_test/Sender.js [109:137]


    this.encodeAmqpType = function(amqpType, testValue) {
        switch(amqpType) {
        case "null": return this.encodeNull(testValue);
        case "boolean": return this.encodeBoolean(testValue);
        case "ubyte": return this.encodeUbyte(testValue);
        case "ushort": return this.encodeUshort(testValue);
        case "uint": return this.encodeUint(testValue);
        case "ulong": return this.encodeUlong(testValue);
        case "byte": return this.encodeByte(testValue);
        case "short": return this.encodeShort(testValue);
        case "int": return this.encodeInt(testValue);
        case "long": return this.encodeLong(testValue);
        case "float": return this.encodeFloat(testValue);
        case "double": return this.encodeDouble(testValue);
        case "decimal32": return this.encodeDecimal32(testValue);
        case "decimal64": return this.encodeDecimal64(testValue);
        case "decimal128": return this.encodeDecimal128(testValue);
        case "char": return this.encodeChar(testValue);
        case "timestamp": return this.encodeTimestamp(testValue);
        case "uuid": return this.encodeUuid(testValue);
        case "binary": return this.encodeBinary(testValue);
        case "string": return this.encodeString(testValue);
        case "symbol": return this.encodeSymbol(testValue);
        case "list":
        case "map":
        case "array": throw "Unsupported complex AMQP type: \"" + this.amqpType + "\"";
        default: throw "Unknown AMQP type: \"" + this.amqpType + "\"";
        }
    };