BEA Systems, Inc.

com.beasys.commerce.reasoning.rules.editor.jspbeans
Class ThenPhraseBean

java.lang.Object
  |
  +--com.beasys.commerce.reasoning.rules.editor.jspbeans.ThenPhraseBean

public class ThenPhraseBean
extends java.lang.Object

Jsp Bean to help with creating then phrases


Field Summary
static java.lang.String COMPARATOR_PREFIX
           
static java.lang.String CONSTANT_PREFIX
           
static java.lang.String PROPERTY_PREFIX
           
 
Constructor Summary
ThenPhraseBean()
           
 
Method Summary
 void clear()
          Clear.
 void commitConstantThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Add a new then phrase using a constant.
 void commitDateThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Create a then phrase using a date.
 void commitMultiplePartConstantThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule, java.lang.String propertySet)
          Add a new then phrase with multiple parts
 void commitMultiplePartPropertyThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule, com.beasys.commerce.axiom.reasoning.rules.RuleSheet rs, java.lang.String propertySet)
          Create a multiple part then phrase using a property
 void commitPropertyThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule, com.beasys.commerce.axiom.reasoning.rules.RuleSheet rs)
          Create a then phrase using a property.
 java.lang.String deleteMethod(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Delete method.
 java.lang.String deleteMethods(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Delete methods
protected  com.beasys.commerce.axiom.reasoning.rules.Method findMethod(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Find the method named in the field methodName.
protected  java.util.List findMethods(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Find the sequence of methods that begins with the method named by the field methodName
 java.lang.String[] getComparatorList(java.util.Map propertyMap)
          Get comparator list.
 java.lang.String getConstantValue()
          Get constant value.
 java.util.List getConstantValues()
          Get constantValues
 java.util.Map getContentPropertyMap(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Get content property map.
 java.lang.String getMethodEditor(com.beasys.commerce.axiom.reasoning.rules.Method m)
          Get method editor.
 java.lang.String getMethodName()
          Get method name.
 int getNextOrNum()
          Get nextOrNum
 java.util.List getPropertiesToCompare()
          Get propertiesToCompare
 java.lang.String[] getPropertyList(java.util.Map propertyMap)
          Get property list.
 java.lang.String getPropertyToCompare()
          Get property to compare.
 java.lang.String getSelectedComparator()
          Get selected comparator.
 java.util.List getSelectedComparators()
          Get selectedComparators
 java.lang.String getSelectedOperator()
          Get selected operator.
 java.util.List getSelectedOperators()
          Get selectedOperators
 java.lang.String getSelectedProperty()
          Get selected property.
 PropertyMetaData getSelectedPropertyMetaData(java.util.Map propertyMetaDataMap)
          Get selected property meta data.
 PropertyMetaData getSelectedPropertyMetaData(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Get selected property meta data.
 java.util.List getThenPhraseLists(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Get then phrase lists
 com.beasys.commerce.axiom.reasoning.rules.Method[] getThenPhrases(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Get then phrases.
 java.lang.String[] getUserPropertyList(java.util.Map userPropertyMap, java.util.Map contentPropertyMap)
          Get a list of properties from the userPropertyMap that are of the same type as the entry in contentPropertyMap witht the key that was selected and passed in from a form
 java.util.Map getUserPropertyMap(com.beasys.commerce.axiom.reasoning.rules.RuleSheet rs)
          Get user property map.
 java.util.Map getUserPropertyMap(com.beasys.commerce.axiom.reasoning.rules.RuleSheet rs, java.lang.String propertySet)
          Get user property map.
 void incrementNextOrNum()
          Increment nextOrNum
 void initFromMethod(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Init from method.
 void initFromMethods(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Init from methods.
 void setConstantValue(java.lang.String s)
          Set constant value.
 void setConstantValues(java.util.List constantValues)
          Sets constantValues
 void setMethodName(java.lang.String s)
          Set method name.
 void setPropertiesToCompare(java.util.List propertiesToCompare)
          Sets propertiesToCompare
 void setPropertyToCompare(java.lang.String s)
          Set property to compare.
 void setSelectedComparator(java.lang.String s)
          Set selected comparator.
 void setSelectedComparators(java.util.List selectedComparators)
          Sets selectedComparators
 void setSelectedOperator(java.lang.String s)
          Set selected operator.
 void setSelectedOperators(java.util.List selectedOperators)
          Sets selectedOperators
 void setSelectedProperty(java.lang.String s)
          Set selected property.
 void updateConstantThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Update constant then phrase.
 void updateDateThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
          Update a then phrase using a date.
 void updateMultiplePartConstantThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule, java.lang.String propertySet)
          Update multiple part constant then phrase.
 void updateMultiplePartPropertyThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule, com.beasys.commerce.axiom.reasoning.rules.RuleSheet rs, java.lang.String propertySet)
          Update multiple part property then phrase.
 void updatePropertyThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule, com.beasys.commerce.axiom.reasoning.rules.RuleSheet rs)
          Update a then phrase using a property.
 java.lang.String validateConstantValue()
          Validate constant value.
 java.lang.String validatePropertyToCompare()
          Validate property to compare.
 java.lang.String validateSelectedProperty()
          Validate selected property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPARATOR_PREFIX

public static final java.lang.String COMPARATOR_PREFIX

CONSTANT_PREFIX

public static final java.lang.String CONSTANT_PREFIX

PROPERTY_PREFIX

public static final java.lang.String PROPERTY_PREFIX
Constructor Detail

ThenPhraseBean

public ThenPhraseBean()
Method Detail

setPropertiesToCompare

public void setPropertiesToCompare(java.util.List propertiesToCompare)
Sets propertiesToCompare
Parameters:
propertiesToCompare -  

setSelectedComparators

public void setSelectedComparators(java.util.List selectedComparators)
Sets selectedComparators
Parameters:
selectedComparators -  

setSelectedOperators

public void setSelectedOperators(java.util.List selectedOperators)
Sets selectedOperators
Parameters:
selectedOperators -  

setConstantValues

public void setConstantValues(java.util.List constantValues)
Sets constantValues
Parameters:
constantValues -  

getNextOrNum

public int getNextOrNum()
Get nextOrNum
Returns:
int

incrementNextOrNum

public void incrementNextOrNum()
Increment nextOrNum

clear

public void clear()
Clear.

getPropertiesToCompare

public java.util.List getPropertiesToCompare()
Get propertiesToCompare
Returns:
List

getSelectedComparators

public java.util.List getSelectedComparators()
Get selectedComparators
Returns:
List

getSelectedOperators

public java.util.List getSelectedOperators()
Get selectedOperators
Returns:
List

getConstantValues

public java.util.List getConstantValues()
Get constantValues
Returns:
List

validateSelectedProperty

public java.lang.String validateSelectedProperty()
Validate selected property.
Returns:
String

validatePropertyToCompare

public java.lang.String validatePropertyToCompare()
Validate property to compare.
Returns:
String

validateConstantValue

public java.lang.String validateConstantValue()
Validate constant value.
Returns:
String

deleteMethod

public java.lang.String deleteMethod(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Delete method.
Parameters:
aRule -  
Returns:
String

deleteMethods

public java.lang.String deleteMethods(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Delete methods
Parameters:
aRule -  
Returns:
String

findMethod

protected com.beasys.commerce.axiom.reasoning.rules.Method findMethod(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Find the method named in the field methodName.
Parameters:
aRule -  
Returns:
Method

findMethods

protected java.util.List findMethods(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Find the sequence of methods that begins with the method named by the field methodName
Parameters:
aRule -  
Returns:
List

initFromMethod

public void initFromMethod(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Init from method.
Parameters:
aRule -  

initFromMethods

public void initFromMethods(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Init from methods.
Parameters:
aRule -  

getThenPhrases

public com.beasys.commerce.axiom.reasoning.rules.Method[] getThenPhrases(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Get then phrases.
Parameters:
aRule -  
Returns:
Method[]

getThenPhraseLists

public java.util.List getThenPhraseLists(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Get then phrase lists
Parameters:
aRule -  
Returns:
List

getSelectedPropertyMetaData

public PropertyMetaData getSelectedPropertyMetaData(java.util.Map propertyMetaDataMap)
Get selected property meta data.
Parameters:
propertyMetaDataMap -  
Returns:
PropertyMetaData

getSelectedPropertyMetaData

public PropertyMetaData getSelectedPropertyMetaData(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Get selected property meta data.
Parameters:
aRule -  
Returns:
PropertyMetaData

updateConstantThenPhrase

public void updateConstantThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Update constant then phrase.
Parameters:
aRule -  

updateMultiplePartConstantThenPhrase

public void updateMultiplePartConstantThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule,
                                                 java.lang.String propertySet)
Update multiple part constant then phrase.
Parameters:
aRule -  
propertySet -  

commitConstantThenPhrase

public void commitConstantThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Add a new then phrase using a constant.
Parameters:
aRule -  

commitMultiplePartConstantThenPhrase

public void commitMultiplePartConstantThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule,
                                                 java.lang.String propertySet)
Add a new then phrase with multiple parts
Parameters:
aRule -  
propertySet -  

updatePropertyThenPhrase

public void updatePropertyThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule,
                                     com.beasys.commerce.axiom.reasoning.rules.RuleSheet rs)
Update a then phrase using a property.
Parameters:
aRule -  
rs -  

updateMultiplePartPropertyThenPhrase

public void updateMultiplePartPropertyThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule,
                                                 com.beasys.commerce.axiom.reasoning.rules.RuleSheet rs,
                                                 java.lang.String propertySet)
Update multiple part property then phrase.
Parameters:
aRule -  
propertySet -  

commitPropertyThenPhrase

public void commitPropertyThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule,
                                     com.beasys.commerce.axiom.reasoning.rules.RuleSheet rs)
Create a then phrase using a property.
Parameters:
aRule -  
rs -  

commitMultiplePartPropertyThenPhrase

public void commitMultiplePartPropertyThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule,
                                                 com.beasys.commerce.axiom.reasoning.rules.RuleSheet rs,
                                                 java.lang.String propertySet)
Create a multiple part then phrase using a property
Parameters:
aRule -  
rs -  
propertySet -  

updateDateThenPhrase

public void updateDateThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Update a then phrase using a date.
Parameters:
aRule -  

commitDateThenPhrase

public void commitDateThenPhrase(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Create a then phrase using a date.
Parameters:
aRule -  

getMethodEditor

public java.lang.String getMethodEditor(com.beasys.commerce.axiom.reasoning.rules.Method m)
Get method editor.
Parameters:
m -  
Returns:
String

getComparatorList

public java.lang.String[] getComparatorList(java.util.Map propertyMap)
Get comparator list.
Parameters:
propertyMap -  
Returns:
String[]

getUserPropertyList

public java.lang.String[] getUserPropertyList(java.util.Map userPropertyMap,
                                              java.util.Map contentPropertyMap)
Get a list of properties from the userPropertyMap that are of the same type as the entry in contentPropertyMap witht the key that was selected and passed in from a form
Parameters:
userPropertyMap -  
contentPropertyMap -  
Returns:
String[]

getPropertyList

public java.lang.String[] getPropertyList(java.util.Map propertyMap)
Get property list.
Parameters:
propertyMap -  
Returns:
String[]

getUserPropertyMap

public java.util.Map getUserPropertyMap(com.beasys.commerce.axiom.reasoning.rules.RuleSheet rs)
Get user property map.
Parameters:
rs -  
Returns:
Map

getUserPropertyMap

public java.util.Map getUserPropertyMap(com.beasys.commerce.axiom.reasoning.rules.RuleSheet rs,
                                        java.lang.String propertySet)
Get user property map.
Parameters:
rs -  
Returns:
Map

getContentPropertyMap

public java.util.Map getContentPropertyMap(com.beasys.commerce.axiom.reasoning.rules.Rule aRule)
Get content property map.
Parameters:
aRule -  
Returns:
Map

setSelectedProperty

public void setSelectedProperty(java.lang.String s)
Set selected property.
Parameters:
s -  

getSelectedProperty

public java.lang.String getSelectedProperty()
Get selected property.
Returns:
String

setPropertyToCompare

public void setPropertyToCompare(java.lang.String s)
Set property to compare.
Parameters:
s -  

getPropertyToCompare

public java.lang.String getPropertyToCompare()
Get property to compare.
Returns:
String

setSelectedComparator

public void setSelectedComparator(java.lang.String s)
Set selected comparator.
Parameters:
s -  

getSelectedComparator

public java.lang.String getSelectedComparator()
Get selected comparator.
Returns:
String

setSelectedOperator

public void setSelectedOperator(java.lang.String s)
Set selected operator.
Parameters:
s -  

getSelectedOperator

public java.lang.String getSelectedOperator()
Get selected operator.
Returns:
String

setConstantValue

public void setConstantValue(java.lang.String s)
Set constant value.
Parameters:
s -  

getConstantValue

public java.lang.String getConstantValue()
Get constant value.
Returns:
String

setMethodName

public void setMethodName(java.lang.String s)
Set method name.
Parameters:
s -  

getMethodName

public java.lang.String getMethodName()
Get method name.
Returns:
String

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved