org.kuali.rice.krad.workflow.attribute
Class KualiXMLBooleanTranslatorSearchableAttributeImpl

java.lang.Object
  extended by org.kuali.rice.kew.docsearch.xml.StandardGenericXMLSearchableAttribute
      extended by org.kuali.rice.krad.workflow.attribute.KualiXmlSearchableAttributeImpl
          extended by org.kuali.rice.krad.workflow.attribute.KualiXMLBooleanTranslatorSearchableAttributeImpl
All Implemented Interfaces:
SearchableAttribute, KualiXmlAttribute

public class KualiXMLBooleanTranslatorSearchableAttributeImpl
extends KualiXmlSearchableAttributeImpl

This is an XML KEW search attribute that can be used where the XML of the attribute has an xpath expression that returns a boolean. This attribute takes that boolean expression and translates it into true and false values based on the getValueForXPathTrueEvaluation() and getValueForXPathFalseEvaluation() method's return variables. NOTE: This will not longer be necessary if the version of xPath being used is every upgrade to 2.x or higher


Field Summary
static String VALUE_FOR_FALSE
           
static String VALUE_FOR_TRUE
           
 
Constructor Summary
KualiXMLBooleanTranslatorSearchableAttributeImpl()
           
 
Method Summary
 Element getConfigXML(ExtensionDefinition extensionDefinition)
          This overriden method does the translation of the given xPath expression from the XML definition of the attribute and translates it into the true and false values based on the getValueForXPathTrueEvaluation() and getValueForXPathFalseEvaluation() method's return variables
 String getValueForXPathFalseEvaluation()
           
 String getValueForXPathTrueEvaluation()
           
 
Methods inherited from class org.kuali.rice.kew.docsearch.xml.StandardGenericXMLSearchableAttribute
extractDocumentAttributes, generateSearchContent, getSearchFields, validateDocumentAttributeCriteria
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE_FOR_TRUE

public static final String VALUE_FOR_TRUE
See Also:
Constant Field Values

VALUE_FOR_FALSE

public static final String VALUE_FOR_FALSE
See Also:
Constant Field Values
Constructor Detail

KualiXMLBooleanTranslatorSearchableAttributeImpl

public KualiXMLBooleanTranslatorSearchableAttributeImpl()
Method Detail

getConfigXML

public Element getConfigXML(ExtensionDefinition extensionDefinition)
This overriden method does the translation of the given xPath expression from the XML definition of the attribute and translates it into the true and false values based on the getValueForXPathTrueEvaluation() and getValueForXPathFalseEvaluation() method's return variables

Specified by:
getConfigXML in interface KualiXmlAttribute
Overrides:
getConfigXML in class KualiXmlSearchableAttributeImpl

getValueForXPathTrueEvaluation

public String getValueForXPathTrueEvaluation()

getValueForXPathFalseEvaluation

public String getValueForXPathFalseEvaluation()


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