Package com.serotonin.json.type

Examples of com.serotonin.json.type.JsonValue


    @Override
    public void jsonRead(JsonReader reader, JsonObject jsonObject) throws JsonException {
        super.jsonRead(reader, jsonObject);

        JsonValue jsonImageId = jsonObject.get("dynamicImage");
        if (jsonImageId != null) {
            String id = jsonImageId.toString();
            dynamicImage = Common.getDynamicImage(id);
            if (dynamicImage == null)
                throw new TranslatableJsonException("emport.error.component.unknownDynamicImage", id,
                        Common.getDynamicImageIds());
        }
View Full Code Here


    @Override
    public void jsonRead(JsonReader reader, JsonObject jsonObject) throws JsonException {
        super.jsonRead(reader, jsonObject);

        JsonValue jsonImageId = jsonObject.get("imageSet");
        if (jsonImageId != null) {
            String id = jsonImageId.toString();
            imageSet = Common.getImageSet(id);
            if (imageSet == null)
                throw new TranslatableJsonException("emport.error.component.unknownImageSet", id,
                        Common.getImageSetIds());
        }
View Full Code Here

TOP

Related Classes of com.serotonin.json.type.JsonValue

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.