Package prefuse.data

Examples of prefuse.data.DataTypeException


     */
    public void setFloat(float val, int row) throws DataTypeException {
        if ( canSetFloat() ) {
            set(new Float(val), row);
        } else {
            throw new DataTypeException(float.class);
        }
    }
View Full Code Here


     */
    public double getDouble(int row) throws DataTypeException {
        if ( canGetDouble() ) {
            return ((Double)get(row)).doubleValue();
        } else {
            throw new DataTypeException(double.class);
        }
    }
View Full Code Here

     */
    public void setDouble(double val, int row) throws DataTypeException {
        if ( canSetDouble() ) {
            set(new Double(val), row);
        } else {
            throw new DataTypeException(double.class);
        }
    }
View Full Code Here

     */
    public boolean getBoolean(int row) throws DataTypeException {
        if ( canGetBoolean() ) {
            return ((Boolean)get(row)).booleanValue();
        } else {
            throw new DataTypeException(boolean.class);
        }
    }
View Full Code Here

     */
    public void setBoolean(boolean val, int row) throws DataTypeException {
        if ( canSetBoolean() ) {
            set(new Boolean(val), row);
        } else {
            throw new DataTypeException(boolean.class);
        }
    }
View Full Code Here

     */
    public String getString(int row) throws DataTypeException {
        if ( canGetString() ) {
            return m_parser.format(get(row));
        } else {
            throw new DataTypeException(String.class);
        }
    }
View Full Code Here

     */
    public void setString(String val, int row) throws DataTypeException {
        try {
            set(m_parser.parse(val), row);
        } catch (DataParseException e) {
            throw new DataTypeException(e);
        }
    }
View Full Code Here

     */
    public Date getDate(int row) throws DataTypeException {
        if ( canGetDate() ) {
            return (Date)get(row);
        } else {
            throw new DataTypeException(Date.class);
        }
    }
View Full Code Here

            if ( val instanceof Number ) {
                setInt(((Number)val).intValue(), row);
            } else if ( val instanceof String ) {
                setString((String)val, row);
            } else {
                throw new DataTypeException(val.getClass());
            }
        } else {
            throw new DataTypeException("Column does not accept null values");
        }
    }
View Full Code Here

TOP

Related Classes of prefuse.data.DataTypeException

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.