Package com.nexirius.util.simpletype

Examples of com.nexirius.util.simpletype.SimpleType_int


        }

        if (text.length() == 0) {
            setFlag(ModelFlag.EMPTY, true);
        } else {
            SimpleType_int new_value = new SimpleType_int(text);

            if (!isValid(new_value.getInt())) {
                throw new Exception("Value out of bound: " + new_value + " [" + lowLimit + "..." + highLimit + "]");
            }

            setValue(new_value);
            setFlag(ModelFlag.EMPTY, false);
View Full Code Here


     * Creates a new instance and initializes its value
     *
     * @param value The initial value
     */
    public IntModel(int value) {
        super(new SimpleType_int(value));
    }
View Full Code Here

     *
     * @param value     The initial value
     * @param fieldName The initial field name
     */
    public IntModel(int value, String fieldName) {
        super(new SimpleType_int(value), fieldName);
    }
View Full Code Here

     *
     * @param i The new value
     */
    public void setInt(int i) {
        setFlag(ModelFlag.EMPTY, false);
        setValue(new SimpleType_int(i));
    }
View Full Code Here

            throws Exception {
        if (text == null || text.length() == 0) {
            setInt(0);
            setFlag(ModelFlag.EMPTY, true);
        } else {
            setValue(new SimpleType_int(text));
            setFlag(ModelFlag.EMPTY, false);
        }
    }
View Full Code Here

TOP

Related Classes of com.nexirius.util.simpletype.SimpleType_int

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.