src/Model/Product.java
// Alert message text for Product field value data type exceptions
Alert message text for Product field value data type exceptions
Alert message text for Product field value data type exceptions
public static String prodDataTypeExceptions(String prodPrice, String prodStockLevel, String prodMaxStockLevel, String prodMinStockLevel, String productDataTypeException) {
        if (productPriceDataTypeException(prodPrice) == false) {
            productDataTypeException = productDataTypeException + "\nPart Price must be a number in the format XX.XX";
        }
        if (stockLevelDataTypeException(prodStockLevel) == false) {
            productDataTypeException = productDataTypeException + "\nPart Inventory Level must be a whole number greater than 0.";
        }
        if (maxLevelDataTypeException(prodMaxStockLevel) == false) {
            productDataTypeException = productDataTypeException + "\nPart Maximum Inventory Level must be a whole number.";
        }
        if (minLevelDataTypeException(prodMinStockLevel) == false) {
            productDataTypeException = productDataTypeException + "\nPart Minimum Inventory Level must be a whole number.";
        }
        return productDataTypeException;
    }
public static String prodDataTypeExceptions ( String prodPrice , String prodStockLevel , String prodMaxStockLevel , String prodMinStockLevel , String productDataTypeException ) { if ( productPriceDataTypeException ( prodPrice ) == false ) { productDataTypeException = productDataTypeException + "\nPart Price must be a number in the format XX.XX" ; } if ( stockLevelDataTypeException ( prodStockLevel ) == false ) { productDataTypeException = productDataTypeException + "\nPart Inventory Level must be a whole number greater than 0." ; } if ( maxLevelDataTypeException ( prodMaxStockLevel ) == false ) { productDataTypeException = productDataTypeException + "\nPart Maximum Inventory Level must be a whole number." ; } if ( minLevelDataTypeException ( prodMinStockLevel ) == false ) { productDataTypeException = productDataTypeException + "\nPart Minimum Inventory Level must be a whole number." ; } return productDataTypeException ; }
Alert message text for Product field value data type exceptions
Alert message text for Product field value data type exceptions