Package org.apache.isis.application

Examples of org.apache.isis.application.ApplicationException


     * Create a Time object for storing a time with the time set to the current time.
     */
    public Time(final BusinessObject parent) {
        super(parent);
        if (clock == null) {
            throw new ApplicationException("Clock not set up");
        }
        setValue(new java.util.Date(clock.getTime()));
    }
View Full Code Here


     */
    public void today() {
        Calendar cal = Calendar.getInstance();

        if (clock == null) {
            throw new ApplicationException("Clock not set up");
        }
        long time = clock.getTime();
        java.util.Date d = new java.util.Date(time);
        cal.setTime(d);

View Full Code Here

        ensureAtLeastPartResolved();
        return String.valueOf(id);
    }

    public void copyObject(final BusinessValueHolder object) {
        throw new ApplicationException();
    }
View Full Code Here

    /**
     * Copies the content of the specified object into this object.
     */
    public void copyObject(final BusinessValueHolder other) {
        if (!(other instanceof RtfValue)) {
            throw new ApplicationException("only support copying from other RTF values");
        }
        copyObject((RtfValue) other);
    }
View Full Code Here

            return null;
        }
        try {
            return utf8Encoded.getBytes("UTF-8");
        } catch (java.io.UnsupportedEncodingException ex) {
            throw new ApplicationException(ex);
        }
    }
View Full Code Here

     * Create a Time object for storing a timeStamp set to the current time.
     */
    public TimeStamp(final BusinessObject parent) {
        super(parent);
        if (clock == null) {
            throw new ApplicationException("Clock not set up");
        }
        reset();
    }
View Full Code Here

     * Create a Time object for storing a timeStamp set to the current time.
     */
    public DateTime(final BusinessObject parent) {
        super(parent);
        if (clock == null) {
            throw new ApplicationException("Clock not set up");
        }
        setValue(new java.util.Date(clock.getTime()));
        isNull = false;
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.application.ApplicationException

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.