org.broadleafcommerce.openadmin.client.translation.grouping
Class GroupingTranslator

java.lang.Object
  extended by org.broadleafcommerce.openadmin.client.translation.grouping.GroupingTranslator

public class GroupingTranslator
extends Object

Author:
jfischer

Field Summary
static String GROUPENDCHAR
           
static String GROUPSTARTCHAR
           
static String SPACECHAR
           
static String STATEMENTENDCHAR
           
 
Constructor Summary
GroupingTranslator()
           
 
Method Summary
protected  void compilePhrases(String segment, Group myGroup, boolean isNegation)
           
 Group createGroups(String mvel)
           
protected  int findGroupEnd(String segment, int subgroupStartIndex)
           
protected  int findGroupStart(String segment, int startPos)
           
protected  void parseGroups(Group myGroup, String segment)
           
protected  void setGroupOperator(String segment, Group myGroup, boolean isAnd, boolean isOr, boolean isNot)
           
protected  String stripWhiteSpace(String mvel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUPSTARTCHAR

public static final String GROUPSTARTCHAR
See Also:
Constant Field Values

GROUPENDCHAR

public static final String GROUPENDCHAR
See Also:
Constant Field Values

STATEMENTENDCHAR

public static final String STATEMENTENDCHAR
See Also:
Constant Field Values

SPACECHAR

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

GroupingTranslator

public GroupingTranslator()
Method Detail

createGroups

public Group createGroups(String mvel)
                   throws IncompatibleMVELTranslationException
Throws:
IncompatibleMVELTranslationException

findGroupStart

protected int findGroupStart(String segment,
                             int startPos)

findGroupEnd

protected int findGroupEnd(String segment,
                           int subgroupStartIndex)
                    throws IncompatibleMVELTranslationException
Throws:
IncompatibleMVELTranslationException

stripWhiteSpace

protected String stripWhiteSpace(String mvel)

parseGroups

protected void parseGroups(Group myGroup,
                           String segment)
                    throws IncompatibleMVELTranslationException
Throws:
IncompatibleMVELTranslationException

compilePhrases

protected void compilePhrases(String segment,
                              Group myGroup,
                              boolean isNegation)
                       throws IncompatibleMVELTranslationException
Throws:
IncompatibleMVELTranslationException

setGroupOperator

protected void setGroupOperator(String segment,
                                Group myGroup,
                                boolean isAnd,
                                boolean isOr,
                                boolean isNot)
                         throws IncompatibleMVELTranslationException
Throws:
IncompatibleMVELTranslationException


Copyright © 2013. All Rights Reserved.