Examples of UPInvalidParameterException


Examples of com.uplibrary.upexception.UPInvalidParameterException

     * @return a reference to enable cascade calls.
     * @throws UPInvalidParameterException if the name is invalid.
     */
    protected final UPOutput setOutputName(final String outputName) throws UPInvalidParameterException {
        if (outputName==null || outputName.isEmpty()) {
            throw new UPInvalidParameterException("Output name can not be null or an empty string");
        }
        this.outputName = outputName;
        return this;
    }
View Full Code Here

Examples of com.uplibrary.upexception.UPInvalidParameterException

     * @return a reference to enable cascade calls.
     * @throws UPInvalidParameterException if the description is invalid.
     */
    protected final UPOutput setOutputDescription(final String outputDescription) throws UPInvalidParameterException {
        if (outputDescription==null) {
            throw new UPInvalidParameterException("Output description can not be null");
        } else if (outputDescription.isEmpty()) {
            this.outputDescription = "No description supplied";
        } else {
            this.outputDescription = outputDescription;
        }
View Full Code Here

Examples of com.uplibrary.upexception.UPInvalidParameterException

     * @return a reference to UPPlace class to enable cascade calls
     * @throws UPInvalidParameterException when name is an empty string or a null value
     */
    public final UPPlace setName(final String name) throws UPInvalidParameterException {
        if (name==null || name.isEmpty()) {
            throw new UPInvalidParameterException("Name can not be null or an empty string");
        }
        this.name = name;
        return this;
    }
View Full Code Here

Examples of com.uplibrary.upexception.UPInvalidParameterException

     * @return a reference to UPPlace class to enable cascade calls
     * @throws UPInvalidParameterException when identifier is an empty string or a null value
     */
    public final UPPlace setIdentifier(final String identifier) throws UPInvalidParameterException {
        if (identifier==null || identifier.isEmpty()) {
            throw new UPInvalidParameterException("Identifier can not be null or an empty string");
        }
        this.identifier = identifier;
        return this;
    }
View Full Code Here

Examples of com.uplibrary.upexception.UPInvalidParameterException

     * @return a reference to UPPlace class to enable cascade calls
     * @throws UPInvalidParameterException when formattedAddress is an empty string or a null value
     */
    public final UPPlace setFormattedAddress(final String formattedAddress) throws UPInvalidParameterException {
        if (formattedAddress==null || formattedAddress.isEmpty()) {
            throw new UPInvalidParameterException("Formatted address can not be null or an empty string");
        }
        this.formattedAddress = formattedAddress;
        return this;
    }
View Full Code Here

Examples of com.uplibrary.upexception.UPInvalidParameterException

     * @return a reference to enable cascade calls
     * @throws UPInvalidParameterException if year is null or less then the current year
     */
    public final UPDateTime setYear(final Integer year) throws UPInvalidParameterException {
        if (year==null) {
            throw new UPInvalidParameterException("Year can not be a null value");
        } else if (year<this.year) {
            throw new UPInvalidParameterException("Year cannot be less then the current year");
        }
        this.year = year;
        return this;
    }
View Full Code Here

Examples of com.uplibrary.upexception.UPInvalidParameterException

     * @return a reference to enable cascade calls
     * @throws UPInvalidParameterException if month is null or is less then the current month
     */
    public final UPDateTime setMonth(final Integer month) throws UPInvalidParameterException {
        if (month==null) {
            throw new UPInvalidParameterException("Month can not be a null value");
        } else if (month<Integer.valueOf(this.month)) {
            throw new UPInvalidParameterException("Month cannot be less then the current month");
        }
        this.month = String.valueOf(month);
        return this;
    }
View Full Code Here

Examples of com.uplibrary.upexception.UPInvalidParameterException

     * @return a reference to enable cascade calls
     * @throws UPInvalidParameterException if month is null
     */
    public final UPDateTime setMonth(String month) throws UPInvalidParameterException {
        if (month == null) {
            throw new UPInvalidParameterException("Month can not be a null value");
        } else if (month.length() == 1) {
            this.month = "0" + month;
        } else {
            this.setMonth(Integer.valueOf(month));
        }
View Full Code Here

Examples of com.uplibrary.upexception.UPInvalidParameterException

     * @return a reference to enable cascade calls
     * @throws UPInvalidParameterException if day is null or is less then the current day
     */
    public final UPDateTime setDay(final Integer day) throws UPInvalidParameterException {
        if (day == null) {
            throw new UPInvalidParameterException("Day can not be a null value");
        } else if (day<Integer.valueOf(this.day)) {
            throw new UPInvalidParameterException("Day cannot be less then the current day");
        }
        this.day = String.valueOf(day);
        return this;
    }
View Full Code Here

Examples of com.uplibrary.upexception.UPInvalidParameterException

     * @return a reference to enable cascade calls
     * @throws UPInvalidParameterException if day is null
     */
    public final UPDateTime setDay(String day) throws UPInvalidParameterException {
        if (day==null) {
            throw new UPInvalidParameterException("Day can not be a null value");
        } else if (day.length()==1) {
            this.day = "0" + day;
        } else {
            this.setDay(Integer.valueOf(day));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.