public static TechnologyTag withName(String tagName) { return new TechnologyTag(tagName); }
@Override public TechnologyTag processElement(ParserContext handlerManager, Element element) throws ConfigurationException { String tag = element.getTextContent(); if (StringUtils.isNotBlank(tag)) { tag = tag.trim(); } else { throw new WindupException("Error, '" + TechnologyTagHandler.TECHNOLOGY_TAG + "' element must have non-empty content"); } TechnologyTagLevel issueCategory = TechnologyTagLevel.INFORMATIONAL; String category = element.getAttribute(TechnologyTagHandler.LEVEL); if (StringUtils.isNotBlank(category)) { issueCategory = TechnologyTagLevel.valueOf(category); } return TechnologyTag.withName(tag).withTechnologyTagLevel(issueCategory); } }
@Override public FileModel resolvePayload(GraphRewrite event, EvaluationContext context, WindupVertexFrame payload) { checkVariableName(event, context); if (payload instanceof FileReferenceModel) { return ((FileReferenceModel) payload).getFile(); } if (payload instanceof FileModel) { return (FileModel) payload; } return null; }
@Override public TechnologyTag processElement(ParserContext handlerManager, Element element) throws ConfigurationException { String tag = element.getTextContent(); if (StringUtils.isNotBlank(tag)) { tag = tag.trim(); } else { throw new WindupException("Error, '" + TechnologyTagHandler.TECHNOLOGY_TAG + "' element must have non-empty content"); } TechnologyTagLevel issueCategory = TechnologyTagLevel.INFORMATIONAL; String category = element.getAttribute(TechnologyTagHandler.LEVEL); if (StringUtils.isNotBlank(category)) { issueCategory = TechnologyTagLevel.valueOf(category); } return TechnologyTag.withName(tag).withTechnologyTagLevel(issueCategory); } }
@Override public FileModel resolvePayload(GraphRewrite event, EvaluationContext context, WindupVertexFrame payload) { checkVariableName(event, context); if (payload instanceof FileReferenceModel) { return ((FileReferenceModel) payload).getFile(); } if (payload instanceof FileModel) { return (FileModel) payload; } return null; }
public static TechnologyTag withName(String tagName) { return new TechnologyTag(tagName); }