com.endeca.mobile.tags.util
Class DynamicNavStateItemParseUtil

java.lang.Object
  extended by com.endeca.mobile.tags.util.DynamicNavStateItemParseUtil

public class DynamicNavStateItemParseUtil
extends java.lang.Object


Field Summary
static java.util.regex.Pattern DIM_VAL_PROP_TOKEN_PATTERN
           
static java.util.regex.Pattern RECORD_TOKEN_PATTERN
           
 
Constructor Summary
DynamicNavStateItemParseUtil()
           
 
Method Summary
static boolean allRefinementsAreLeafs(com.endeca.navigation.DimValList refinements)
           
static com.endeca.navigation.FieldList getFields(java.lang.String imageURLPattern, java.util.regex.Pattern tokenPattern)
           
static java.lang.String getImageURL(java.lang.String imageURLPattern, com.endeca.navigation.ERec rec, com.endeca.navigation.DimVal dimVal)
          Filters through the properties on the given ERec and DimVal, replacing name tokens for the values in the ERec and DimVal PropertyMap objects.
static java.lang.String getImageURL(java.lang.String imageURLPattern, com.endeca.navigation.PropertyMap props, java.util.regex.Pattern tokenPattern)
          Filters through the given imageURLPatthern, replacing name tokens for the values in the given PropertyMap.
static java.lang.String getPropValue(com.endeca.navigation.PropertyMap props, java.lang.String propName)
           
static com.endeca.navigation.DimVal getRefinementParent(com.endeca.navigation.Dimension dim)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECORD_TOKEN_PATTERN

public static final java.util.regex.Pattern RECORD_TOKEN_PATTERN

DIM_VAL_PROP_TOKEN_PATTERN

public static final java.util.regex.Pattern DIM_VAL_PROP_TOKEN_PATTERN
Constructor Detail

DynamicNavStateItemParseUtil

public DynamicNavStateItemParseUtil()
Method Detail

allRefinementsAreLeafs

public static boolean allRefinementsAreLeafs(com.endeca.navigation.DimValList refinements)

getImageURL

public static java.lang.String getImageURL(java.lang.String imageURLPattern,
                                           com.endeca.navigation.ERec rec,
                                           com.endeca.navigation.DimVal dimVal)
Filters through the properties on the given ERec and DimVal, replacing name tokens for the values in the ERec and DimVal PropertyMap objects. ERec and DimVal can be null. If both are null, the imageURLPattern is returned unmodified.

Parameters:
imageURLPattern -
rec -
dimVal -
Returns:

getImageURL

public static java.lang.String getImageURL(java.lang.String imageURLPattern,
                                           com.endeca.navigation.PropertyMap props,
                                           java.util.regex.Pattern tokenPattern)
Filters through the given imageURLPatthern, replacing name tokens for the values in the given PropertyMap. If a value cannot be found for a given name token, the token is left untouched. If props or tokenPattern is null, imageURLPattern is returned untouched.

Parameters:
imageURLPattern -
props -
Returns:

getFields

public static com.endeca.navigation.FieldList getFields(java.lang.String imageURLPattern,
                                                        java.util.regex.Pattern tokenPattern)

getRefinementParent

public static com.endeca.navigation.DimVal getRefinementParent(com.endeca.navigation.Dimension dim)

getPropValue

public static java.lang.String getPropValue(com.endeca.navigation.PropertyMap props,
                                            java.lang.String propName)