Class RuleXmlParser

java.lang.Object
org.kuali.rice.kew.xml.RuleXmlParser

public class RuleXmlParser extends Object
Parses rules from XML.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • RuleXmlParser

      public RuleXmlParser()
  • Method Details

    • parseRuleDelegations

      public List<RuleDelegationBo> parseRuleDelegations(InputStream input) throws IOException, org.kuali.rice.core.api.util.xml.XmlException
      Throws:
      IOException
      org.kuali.rice.core.api.util.xml.XmlException
    • parseRules

      public List<RuleBaseValues> parseRules(InputStream input) throws IOException, org.kuali.rice.core.api.util.xml.XmlException
      Throws:
      IOException
      org.kuali.rice.core.api.util.xml.XmlException
    • parseRules

      public List<RuleBaseValues> parseRules(org.jdom2.Element element) throws org.kuali.rice.core.api.util.xml.XmlException
      Parses and saves rules
      Parameters:
      element - top-level 'data' element which should contain a <rules> child element
      Throws:
      org.kuali.rice.core.api.util.xml.XmlException
    • parseRuleDelegations

      public List<RuleDelegationBo> parseRuleDelegations(org.jdom2.Element element) throws org.kuali.rice.core.api.util.xml.XmlException
      Parses and saves rule delegations
      Parameters:
      element - top-level 'data' element which should contain a <rules> child element
      Throws:
      org.kuali.rice.core.api.util.xml.XmlException
    • parseResponsibility

      public RuleResponsibilityBo parseResponsibility(org.jdom2.Element element, RuleBaseValues rule) throws org.kuali.rice.core.api.util.xml.XmlException
      Throws:
      org.kuali.rice.core.api.util.xml.XmlException
    • formatDate

      public Timestamp formatDate(String dateLabel, String dateString) throws org.kuali.rice.core.api.util.xml.XmlException
      Throws:
      org.kuali.rice.core.api.util.xml.XmlException