Package org.haystack

Examples of org.haystack.UnknownNameException


        // lookup
        HOp op = opsByName.get(name);
        if (op != null)
            return op;
        if (checked)
            throw new UnknownNameException(name);
        return null;
    }
View Full Code Here


        // lookup entity
        HDict rec = readById(id);

        // check that entity has "writable" tag
        if (rec.missing("writable"))
            throw new UnknownNameException("Rec missing 'writable' tag: " + rec.dis());

        return onPointWriteArray(rec);
    }
View Full Code Here

        // lookup entity
        HDict rec = readById(id);

        // check that entity has "writable" tag
        if (rec.missing("writable"))
            throw new UnknownNameException("Rec missing 'writable' tag: " + rec.dis());

        onPointWrite(rec, level, val, who, dur);
    }
View Full Code Here

        // lookup entity
        HDict rec = readById(id);

        // check that entity has "his" tag
        if (rec.missing("his"))
            throw new UnknownNameException("Rec missing 'his' tag: " + rec.dis());

        // lookup "tz" on entity
        HTimeZone tz = null;
        if (rec.has("tz"))
            tz = HTimeZone.make(rec.getStr("tz"), false);
        if (tz == null)
            throw new UnknownNameException("Rec missing or invalid 'tz' tag: " + rec.dis());

        // check or parse date range
        HDateTimeRange r = null;
        if (range instanceof HDateTimeRange) {
            r = (HDateTimeRange) range;
View Full Code Here

        // lookup entity
        HDict rec = readById(id);

        // check that entity has "his" tag
        if (rec.missing("his"))
            throw new UnknownNameException("Entity missing 'his' tag: " + rec.dis());

        // lookup "tz" on entity
        HTimeZone tz = null;
        if (rec.has("tz"))
            tz = HTimeZone.make(rec.getStr("tz"), false);
        if (tz == null)
            throw new UnknownNameException("Rec missing or invalid 'tz' tag: " + rec.dis());

        // check tz of items
        if (items.length == 0)
            return;
        for (int i = 0; i < items.length; ++i)
View Full Code Here

TOP

Related Classes of org.haystack.UnknownNameException

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.