public class SeoNavStateFormatter extends Object implements NavStateFormatter
NavStateFormatter that formats an UrlState in SEO Optimized format,
formatting each of the the Navigation state's DimLocations with SeoNavStateFormatters.
NavStateFormatter is aggregated by the SeoUrlFormatter class.
| Property Summary | ||
|---|---|---|
| Property | Type | Default Value |
useDimensionNameAsKey |
boolean |
false |
separator |
char |
/ |
dimLocationFormatters |
|
empty |
| Constructor and Description |
|---|
SeoNavStateFormatter() |
| Modifier and Type | Method and Description |
|---|---|
SeoNavStateFormatter |
clone()
Makes a shallow copy of the
SeoNavStateFormatter. |
String |
formatNavState(UrlState pUrlState,
com.endeca.navigation.DimLocationList pNavState) |
DimLocationFormatter[] |
getDimLocationFormatters()
The list of DimLocationFormatters that will be used to format the UrlState.
|
char |
getSeparator()
The separator character that is used to separate fully formatted
DimLocation objects. |
boolean |
getUseDimensionNameAsKey()
Indicates whether
DimLocationFormatter objects should be associated
to this formatter by dimension name or id. |
void |
setDimLocationFormatters(DimLocationFormatter[] pDimLocationFormatters)
Specifies a list of DimLocationFormatters that will be used to format the UrlState.
|
void |
setSeparator(char pSeparator)
Specifies the separator character that is used to separate fully formatted
DimLocation objects. |
void |
setUseDimensionNameAsKey(boolean pUseDimensionNameAsKey)
Specifies whether
DimLocationFormatter objects should be associated
to this formatter by dimension name or id. |
public boolean getUseDimensionNameAsKey()
DimLocationFormatter objects should be associated
to this formatter by dimension name or id.public void setUseDimensionNameAsKey(boolean pUseDimensionNameAsKey)
DimLocationFormatter objects should be associated
to this formatter by dimension name or id.pUseDimensionNameAsKey - flag indicating whether dimension name should be used.SeoDimLocationFormatter.getKey(),
setDimLocationFormatters(DimLocationFormatter[])public char getSeparator()
DimLocation objects.public void setSeparator(char pSeparator)
DimLocation objects.
In the following example, '+' is the separator character:
http://wines.endeca.com/browse/New-Zealand+Wine-Type-White-Sauvignon-Blanc+Cloudy-Bay/_/N-1z141hbZ66sZ1z1413q
pSeparator - the separator character to use.public DimLocationFormatter[] getDimLocationFormatters()
public void setDimLocationFormatters(DimLocationFormatter[] pDimLocationFormatters)
pDimLocationFormatters - Array of DimLocationFormatter objects used to format the UrlState.public String formatNavState(UrlState pUrlState, com.endeca.navigation.DimLocationList pNavState) throws UrlFormatException
formatNavState in interface NavStateFormatterUrlFormatExceptionpublic SeoNavStateFormatter clone()
SeoNavStateFormatter.Copyright © 2019, Oracle and/or its affiliates. All rights reserved.