Package org.omg.CORBA.DynAnyPackage

Examples of org.omg.CORBA.DynAnyPackage.InvalidValue


    public final void setWeeklySalary(Integer weeklySalary) throws InvalidValue {
        if (weeklySalary>0)
            this.weeklySalary = weeklySalary;
        else
            throw new InvalidValue("Weekly Salary cannot be negative");
    }
View Full Code Here


    public final void setPricePerItem(Double pricePerItem) throws InvalidValue {
        if (pricePerItem > 0)
            this.pricePerItem = pricePerItem;
        else
            throw new InvalidValue("Price cannot be negaitive");
    }
View Full Code Here

    public final void setQuantity(Integer quantity) throws InvalidValue {
        if (quantity > 0)
            this.quantity = quantity;
        else
            throw new InvalidValue("Quantity cannot be negative");
    }
View Full Code Here

    public void setBasicSalary(Integer basicSalary) throws InvalidValue {
        if (basicSalary>0)
            this.basicSalary = basicSalary;
        else
            throw new InvalidValue("Salary cannot be a negative value");
    }
View Full Code Here

    public void setCommissionRate(Double commissionRate) throws InvalidValue {
        if (commissionRate>0 && commissionRate<1)
            this.commissionRate = commissionRate;
        else
            throw new InvalidValue("Commision Rate must be in range [0..1]");
    }
View Full Code Here

    public void setGrossSales(int grossSales) throws InvalidValue {
        if (grossSales>=0)
            this.grossSales = grossSales;
        else
            throw new InvalidValue("Gross Sales cannot be less than 0");
    }
View Full Code Here

TOP

Related Classes of org.omg.CORBA.DynAnyPackage.InvalidValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.