|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.xml.RuleTemplateXmlParser
public class RuleTemplateXmlParser
Parses RuleTemplate
s from XML.
RuleTemplate
Field Summary |
---|
Constructor Summary | |
---|---|
RuleTemplateXmlParser()
|
Method Summary | |
---|---|
java.sql.Timestamp |
formatDate(java.lang.String dateLabel,
java.lang.String dateString)
|
java.util.List<RuleTemplate> |
parseRuleTemplates(org.jdom.Element element)
|
java.util.List<RuleTemplate> |
parseRuleTemplates(java.io.InputStream input)
|
protected void |
updateDelegationTemplate(org.jdom.Element ruleTemplateElement,
RuleTemplate updatedRuleTemplate,
java.util.List<RuleTemplate> parsedRuleTemplates)
Updates the rule template delegation template with the one specified in the XML (if any) |
protected void |
updateOrDeleteRuleTemplateOption(RuleTemplate updatedRuleTemplate,
java.lang.String key,
java.lang.Object value)
Updates or deletes a specified rule template option on the rule template |
protected boolean |
updateRuleDefaults(org.jdom.Element defaultsElement,
RuleTemplate updatedRuleTemplate)
Updates the default/template rule options with those in the defaults element |
protected void |
updateRuleTemplateAttributes(org.jdom.Element ruleTemplateElement,
RuleTemplate updatedRuleTemplate)
Updates the attributes set on the RuleTemplate |
protected void |
updateRuleTemplateDefaultOptions(org.jdom.Element ruleTemplateElement,
RuleTemplate updatedRuleTemplate)
Updates the rule template default options. |
protected void |
updateRuleTemplateOptions(org.jdom.Element defaultsElement,
RuleTemplate updatedRuleTemplate,
boolean isDelegation)
Updates the rule template defaults options with those in the defaults element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleTemplateXmlParser()
Method Detail |
---|
public java.util.List<RuleTemplate> parseRuleTemplates(java.io.InputStream input) throws java.io.IOException, org.kuali.rice.kew.exception.InvalidXmlException
java.io.IOException
org.kuali.rice.kew.exception.InvalidXmlException
public java.util.List<RuleTemplate> parseRuleTemplates(org.jdom.Element element) throws org.kuali.rice.kew.exception.InvalidXmlException
org.kuali.rice.kew.exception.InvalidXmlException
protected void updateRuleTemplateDefaultOptions(org.jdom.Element ruleTemplateElement, RuleTemplate updatedRuleTemplate) throws org.kuali.rice.kew.exception.InvalidXmlException
ruleTemplateElement
- the rule template XML elementupdatedRuleTemplate
- the RuleTemplate being updated
org.kuali.rice.kew.exception.InvalidXmlException
protected void updateRuleTemplateOptions(org.jdom.Element defaultsElement, RuleTemplate updatedRuleTemplate, boolean isDelegation) throws org.kuali.rice.kew.exception.InvalidXmlException
defaultsElement
- the ruleDefaults elementupdatedRuleTemplate
- the Rule Template being updated
org.kuali.rice.kew.exception.InvalidXmlException
protected boolean updateRuleDefaults(org.jdom.Element defaultsElement, RuleTemplate updatedRuleTemplate) throws org.kuali.rice.kew.exception.InvalidXmlException
defaultsElement
- the ruleDefaults elementupdatedRuleTemplate
- the Rule Template being updated
org.kuali.rice.kew.exception.InvalidXmlException
protected void updateOrDeleteRuleTemplateOption(RuleTemplate updatedRuleTemplate, java.lang.String key, java.lang.Object value)
updatedRuleTemplate
- the RuleTemplate being updatedkey
- the option keyvalue
- the option valueprotected void updateDelegationTemplate(org.jdom.Element ruleTemplateElement, RuleTemplate updatedRuleTemplate, java.util.List<RuleTemplate> parsedRuleTemplates) throws org.kuali.rice.kew.exception.InvalidXmlException
ruleTemplateElement
- the XML ruleTemplate elementupdatedRuleTemplate
- the rule template to updateparsedRuleTemplates
- the rule templates parsed in this parsing run
org.kuali.rice.kew.exception.InvalidXmlException
- if a delegation template was specified but could not be foundprotected void updateRuleTemplateAttributes(org.jdom.Element ruleTemplateElement, RuleTemplate updatedRuleTemplate) throws org.kuali.rice.kew.exception.InvalidXmlException
ruleTemplateElement
- the XML ruleTemplate elementupdatedRuleTemplate
- the RuleTemplate being updated
org.kuali.rice.kew.exception.InvalidXmlException
- if there was a problem parsing the rule template attributespublic java.sql.Timestamp formatDate(java.lang.String dateLabel, java.lang.String dateString) throws org.kuali.rice.kew.exception.InvalidXmlException
org.kuali.rice.kew.exception.InvalidXmlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |