public abstract class GenericWorkflowAttribute extends AbstractWorkflowAttribute
Control flow (for isMatch):
The default matching algorithm will match:if any single attribute's properties are a match for all rule extension valuesThis implementation does not (yet!) implement a generic internal map of properties, so it is up to subclasses to expose specific named getters/setters to set data on an attribute of this ancestry.
| Modifier and Type | Field and Description | 
|---|---|
| protected String | attributeName | 
| protected GenericAttributeContent | content | 
| protected org.apache.log4j.Logger | log | 
required| Constructor and Description | 
|---|
| GenericWorkflowAttribute() | 
| GenericWorkflowAttribute(String uniqueName) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDocContent()Simply defers to GenericAttributeContent to generate suitable XML content in a standard fashion | 
| abstract Map<String,String> | getProperties()Template method for subclasses to override to expose attribute state | 
| List<RuleExtensionValue> | getRuleExtensionValues()I think the job of this method is to marshal the current state of the attribute into a representative list of rule extension
 values. | 
| boolean | isMatch(DocumentContent docContent,
              List<RuleExtension> ruleExtensions)Returns true if this Attribute finds a match in the given DocContent. | 
| protected boolean | isMatch(List<Map<String,String>> propertiesList,
              List<RuleExtension> ruleExtensions)Returns true if any single incoming attribute's properties are a match for all rule extension values | 
| protected boolean | isMatch(Map<String,String> properties,
              List<RuleExtension> ruleExtensions)Returns true if all key/value pairs defined by the specified rule extensions are present in the incoming attribute's
 properties | 
| List | validateRoutingData(Map paramMap)These guys should probably be implemented to set the parameters on an internal member property map this attribute
 should use to contain all properties set on it, like StandardGenericXmlAttribute. | 
| List | validateRuleData(Map paramMap)Validates ruleExtension values in the incoming map. | 
getIdFieldName, getLockFieldName, getRoutingDataRows, getRuleRows, isRequired, setRequiredprotected final org.apache.log4j.Logger log
protected final String attributeName
protected final GenericAttributeContent content
public GenericWorkflowAttribute()
public GenericWorkflowAttribute(String uniqueName)
public abstract Map<String,String> getProperties()
public String getDocContent()
getDocContent in interface WorkflowRuleAttributegetDocContent in class AbstractWorkflowAttributepublic boolean isMatch(DocumentContent docContent, List<RuleExtension> ruleExtensions)
WorkflowRuleAttributeprotected boolean isMatch(List<Map<String,String>> propertiesList, List<RuleExtension> ruleExtensions)
propertiesList - the list of incoming attributes' propertiesruleExtensions - the rule extensionsprotected boolean isMatch(Map<String,String> properties, List<RuleExtension> ruleExtensions)
properties - incoming attribute's propertiesruleExtensions - list of rule extensionspublic List validateRoutingData(Map paramMap)
validateRoutingData in interface WorkflowRuleAttributevalidateRoutingData in class AbstractWorkflowAttributeparamMap - Map containing the names and values of the routing data for this AttributeTODO: implement me!public List validateRuleData(Map paramMap)
WorkflowRuleAttributevalidateRuleData in interface WorkflowRuleAttributevalidateRuleData in class AbstractWorkflowAttributeparamMap - Map containing the names and values of the rule extensions for this Attributepublic List<RuleExtensionValue> getRuleExtensionValues()
getRuleExtensionValues in interface WorkflowRuleAttributegetRuleExtensionValues in class AbstractWorkflowAttributeCopyright © 2005–2016 The Kuali Foundation. All rights reserved.