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");