| java.lang.Object org.kuali.workflow.tools.xml.XmlGen
XmlGen | public class XmlGen (Code) | | A utility class to generate Workgroup and Rule XML from an Excel spreadsheet.
author: ewestfal |
Constructor Summary | |
public | XmlGen() |
Method Summary | |
protected void | addExtension(int attributeIndex, Rule rule, String value) | protected void | addResponsibility(Rule rule, String workgroupName, List<String> users, String actionRequestedCode) | protected Element | createDataElement(Document document) | protected String | generateRuleDescription(Rule rule) | protected void | generateRules(File inputDirectory, File outputDirectory) | protected String | getAttributeValue(Element parentElement, String attributeName, boolean required) | public Map<String, Attribute> | getAttributes() | protected String | getChildNodeTextValue(Element parentElement, String childElementName, boolean required) | public Map<String, DocumentType> | getDocumentTypes() | public String | getInputDirectoryPath() | protected int | getNumberOfExtensionValues(Template template) | public SpreadsheetOutput | getOutput() | public String | getOutputDirectoryPath() | public Map<String, Template> | getTemplates() | protected String | getTextContent(Element element) | protected String | getXmlContent(Node node) | public XmlGenHelper | getXmlGenHelper() | protected void | indexAttribute(Element attributeElem) | protected void | indexDocumentType(Element docTypeElem) | protected void | indexInput(File inputDirectory) | protected void | indexTemplate(Element templateElem) | protected void | indexWorkflowXmlFile(InputStream inputStream) | public static boolean | isBlank(String string) | public static boolean | isEmpty(NodeList nodes) | public static void | main(String[] args) | protected String | processActionRequestedCode(String columnValue) | protected void | processSpreadsheetXmlFile(InputStream is) | protected void | processWorksheet(Element worksheetElem) | protected void | removeEmptyRows(List<List<String>> dataRows) | protected boolean | ruleExtensionHasValues(RuleExtension ruleExtension) | public void | run() | public void | setInputDirectoryPath(String inputDirectory) | public void | setOutputDirectoryPath(String outputDirectory) | public void | setXmlGenHelper(XmlGenHelper xmlGenHelper) | public static void | usage() | protected void | validateWorkgroups(SpreadsheetOutput output) | protected void | writeRuleXmlOutput(SpreadsheetOutput output, File outputDirectory) | protected void | writeWorkgroupXmlOutput(SpreadsheetOutput output, File outputDirectory) | protected void | writeXmlOutput(SpreadsheetOutput output, File outputDirectory) |
addExtension | protected void addExtension(int attributeIndex, Rule rule, String value)(Code) | | |
generateRuleDescription | protected String generateRuleDescription(Rule rule)(Code) | | |
getChildNodeTextValue | protected String getChildNodeTextValue(Element parentElement, String childElementName, boolean required)(Code) | | |
getInputDirectoryPath | public String getInputDirectoryPath()(Code) | | |
getNumberOfExtensionValues | protected int getNumberOfExtensionValues(Template template)(Code) | | |
getOutputDirectoryPath | public String getOutputDirectoryPath()(Code) | | |
processActionRequestedCode | protected String processActionRequestedCode(String columnValue)(Code) | | |
ruleExtensionHasValues | protected boolean ruleExtensionHasValues(RuleExtension ruleExtension)(Code) | | |
setInputDirectoryPath | public void setInputDirectoryPath(String inputDirectory)(Code) | | |
setOutputDirectoryPath | public void setOutputDirectoryPath(String outputDirectory)(Code) | | |
usage | public static void usage()(Code) | | |
|
|