org.broadleafcommerce.openadmin.web.rulebuilder.statement
Class PhraseTranslator

java.lang.Object
  extended by org.broadleafcommerce.openadmin.web.rulebuilder.statement.PhraseTranslator

public class PhraseTranslator
extends Object

Author:
jfischer, Elbert Bautista (elbertbautista)

Constructor Summary
PhraseTranslator()
           
 
Method Summary
 Expression createExpression(String phrase)
           
protected  String[] extractComponents(String phrase)
           
protected  String[] extractProjection(String[] components)
           
protected  String[] extractSpecialComponents(String[] components, String key)
           
protected  BLCOperator getOperator(String field, String operator, String value, boolean isNegation, boolean isFieldComparison, boolean isIgnoreCase)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhraseTranslator

public PhraseTranslator()
Method Detail

createExpression

public Expression createExpression(String phrase)
                            throws MVELTranslationException
Throws:
MVELTranslationException

extractComponents

protected String[] extractComponents(String phrase)
                              throws MVELTranslationException
Throws:
MVELTranslationException

extractProjection

protected String[] extractProjection(String[] components)

extractSpecialComponents

protected String[] extractSpecialComponents(String[] components,
                                            String key)

getOperator

protected BLCOperator getOperator(String field,
                                  String operator,
                                  String value,
                                  boolean isNegation,
                                  boolean isFieldComparison,
                                  boolean isIgnoreCase)
                           throws MVELTranslationException
Throws:
MVELTranslationException


Copyright © 2013. All Rights Reserved.