Package org.omg.CORBA.DynAnyPackage

Examples of org.omg.CORBA.DynAnyPackage.InvalidValue


    {
        this();
        if (hour>-1 && hour<24)
            this.hour = hour;
        else
            throw new InvalidValue("Illegal hour, must be within\"0..23\".");
    }
View Full Code Here


    {
        this(hour);
        if (minute>-1 && minute<60)
            this.minute = minute;
        else
            throw new InvalidValue("Illegal Minute, must be within\"0..59\".");
    }
View Full Code Here

    {
        this(hour, minute);
        if (second>-1 && second<60)
            this.second = second;
        else
            throw new InvalidValue("Illegal Second, must be within\"0..59\".");
    }
View Full Code Here

    public void setHour(Integer hour) throws InvalidValue
    {
        if (hour>-1 && hour<24)
            this.hour = hour;
        else
            throw new InvalidValue("Illegal hour, must be within\"0..23\".");
    }
View Full Code Here

    public void setMinute(Integer minute) throws InvalidValue
    {
        if (minute>-1 && minute<60)
            this.minute = minute;
        else
            throw new InvalidValue("Illegal Minute, must be within\"0..59\".");
    }
View Full Code Here

    public void setSecond(Integer second) throws InvalidValue
    {
        if (second>-1 && minute<60)
            this.second = second;
        else
            throw new InvalidValue("Illegal Second, must be within\"0..59\".");
    }
View Full Code Here

            this.hour = hour;
            this.minute = minute;
            this.second = second;
        }
        else
            throw new InvalidValue("Hour must be within\"0..23\", Minute must be within\"0..59\", Second must be within\"0..59\".");
    }
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 final void setCommissionRate(double commissionRate) throws InvalidValue {
        if (commissionRate>0 && commissionRate<1)
            this.commissionRate = commissionRate;
        else
            throw new InvalidValue("Commission Rate must be within [0..1]");
    }
View Full Code Here

    public final void setGrossSales(Integer grossSales) throws InvalidValue {
        if (grossSales>0)
            this.grossSales = grossSales;
        else
            throw new InvalidValue("Gross Sales cannot be negative");
    }
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.