public function setType($barcodeType)
    {
        switch (strtolower($barcodeType)) {
        case 'upc':
        case 'upc-a':
            $className = 'UpcA';
            break;
        case 'ean13':
        case 'ean-13':
            $className = 'Ean13';
            break;
        default:
            include_once 'Zend/Validate/Exception.php';
            throw new Zend_Validate_Exception("Barcode type '$barcodeType' is not supported'");
                break;
        }

        include_once 'Zend/Validate/Barcode/' . $className . '.php';

        $class = 'Zend_Validate_Barcode_' . $className;
        $this->_barcodeValidator = new $class;
    }