org.kuali.rice.kew.xml
Class RuleXmlParser

java.lang.Object
  extended by 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:
RuleBaseValues

Constructor Summary
RuleXmlParser()
           
 
Method Summary
 Timestamp formatDate(String dateLabel, String dateString)
           
 RuleResponsibilityBo parseResponsibility(org.jdom.Element element, RuleBaseValues rule)
           
 RuleResponsibilityBo parseResponsibilityNameAndType(org.jdom.Element element)
           
 List<RuleDelegationBo> parseRuleDelegations(org.jdom.Element element)
          Parses and saves rule delegations
 List<RuleDelegationBo> parseRuleDelegations(InputStream input)
           
 List<RuleBaseValues> parseRules(org.jdom.Element element)
          Parses and saves rules
 List<RuleBaseValues> parseRules(InputStream input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleXmlParser

public RuleXmlParser()
Method Detail

parseRuleDelegations

public List<RuleDelegationBo> parseRuleDelegations(InputStream input)
                                            throws IOException,
                                                   XmlException
Throws:
IOException
XmlException

parseRules

public List<RuleBaseValues> parseRules(InputStream input)
                                throws IOException,
                                       XmlException
Throws:
IOException
XmlException

parseRules

public List<RuleBaseValues> parseRules(org.jdom.Element element)
                                throws XmlException
Parses and saves rules

Parameters:
element - top-level 'data' element which should contain a child element
Throws:
XmlException

parseRuleDelegations

public List<RuleDelegationBo> parseRuleDelegations(org.jdom.Element element)
                                            throws XmlException
Parses and saves rule delegations

Parameters:
element - top-level 'data' element which should contain a child element
Throws:
XmlException

parseResponsibility

public RuleResponsibilityBo parseResponsibility(org.jdom.Element element,
                                                RuleBaseValues rule)
                                         throws XmlException
Throws:
XmlException

parseResponsibilityNameAndType

public RuleResponsibilityBo parseResponsibilityNameAndType(org.jdom.Element element)
                                                    throws XmlException
Throws:
XmlException

formatDate

public Timestamp formatDate(String dateLabel,
                            String dateString)
                     throws XmlException
Throws:
XmlException


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.