Examples of BELDataMissingPropertyException


Examples of org.openbel.framework.core.df.beldata.BELDataMissingPropertyException

        String version = null;
        String createdDateTime = null;

        keyword = blockProperties.getProperty("Keyword");
        if (StringUtils.isBlank(keyword)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, "Keyword");
        }

        type = blockProperties.getProperty("TypeString");
        if (StringUtils.isBlank(type)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, "TypeString");
        }
        if (LIST_TYPE.equalsIgnoreCase(type)) {
            annotationType = AnnotationType.ENUMERATION;
        } else if (PATTERN_TYPE.equalsIgnoreCase(type)) {
            annotationType = AnnotationType.REGULAR_EXPRESSION;
        } else {
            throw new BELDataInvalidPropertyException(resourceLocation,
                    BLOCK_NAME, "TypeString", TYPE_STRING_VALUES);
        }

        description = blockProperties.getProperty("DescriptionString");
        if (StringUtils.isBlank(description)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, "DescriptionString");
        }

        usage = blockProperties.getProperty("UsageString");
        if (StringUtils.isBlank(usage)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, "UsageString");
        }

        createdDateTime = blockProperties.getProperty("CreatedDateTime");
        if (StringUtils.isBlank(createdDateTime)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, "CreatedDateTime");
        }

        version = blockProperties.getProperty("VersionString");
        description = blockProperties.getProperty("DescriptionString");
View Full Code Here

Examples of org.openbel.framework.core.df.beldata.BELDataMissingPropertyException

        String description = null;
        String version = null;

        name = blockProperties.getProperty("NameString");
        if (StringUtils.isBlank(name)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, "NameString");
        }

        createdDateTime = blockProperties.getProperty("CreatedDateTime");
        if (StringUtils.isBlank(createdDateTime)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, "CreatedDateTime");
        }

        description = blockProperties.getProperty("DescriptionString");
        if (StringUtils.isBlank(description)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, "DescriptionString");
        }

        version = blockProperties.getProperty("VersionString");
        if (StringUtils.isBlank(version)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, "VersionString");
        }

        return new EquivalenceBlock(typeConvert(resourceLocation, "NameString",
                name,
View Full Code Here

Examples of org.openbel.framework.core.df.beldata.BELDataMissingPropertyException

        String name = null;
        String version = null;

        name = blockProperties.getProperty("NameString");
        if (StringUtils.isBlank(name)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, "NameString");
        }

        version = blockProperties.getProperty("VersionString");
        if (StringUtils.isBlank(version)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, "VersionString");
        }

        return new NamespaceReferenceBlock(typeConvert(resourceLocation,
                "NameString", name, String.class), typeConvert(
View Full Code Here

Examples of org.openbel.framework.core.df.beldata.BELDataMissingPropertyException

        }

        // handle blank keyword
        String keyword = blockProperties.getProperty(PROPERTY_KEYWORD);
        if (StringUtils.isBlank(keyword)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, PROPERTY_KEYWORD);
        }

        // handle blank name
        String name = blockProperties.getProperty(PROPERTY_NAME);
        if (StringUtils.isBlank(name)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, PROPERTY_NAME);
        }

        // handle blank domain
        String domain = blockProperties.getProperty(PROPERTY_DOMAIN);
        if (StringUtils.isBlank(domain)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, PROPERTY_DOMAIN);
        }

        // handle blank created date time
        String createdDateTime =
                blockProperties.getProperty(PROPERTY_CREATED_DATE_TIME);
        if (StringUtils.isBlank(createdDateTime)) {
            throw new BELDataMissingPropertyException(resourceLocation,
                    BLOCK_NAME, PROPERTY_CREATED_DATE_TIME);
        }

        // retrieve optional properties
        String species = blockProperties.getProperty(PROPERTY_SPECIES);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.