public class StoreGeoCodeContextImpl extends AbstractContextImpl implements StoreGeoCodeContext
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
SER_VALUE_SEP
CENTER_LATITUDE, CENTER_LONGITUDE, CONTEXT_NAME, NORTHWEST_LATITUDE, NORTHWEST_LONGITUDE, SOUTHEAST_LATITUDE, SOUTHEAST_LONGITUDE
Constructor and Description |
---|
StoreGeoCodeContextImpl()
Default Constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
clearContext()
This method resets the attributes specific to this context.
|
void |
copyContext(Context ctx)
This method copies the content of a given context to this context.
|
java.math.BigDecimal |
getCenterLatitude()
Get the latitude of the center point.
|
java.math.BigDecimal |
getCenterLongitude()
Get the longitude of the center point.
|
java.lang.Object[] |
getContextAttributes()
This method gets the attributes to include in the string representation of this context.
|
java.lang.String |
getContextName()
This method gets the name of this context.
|
java.math.BigDecimal |
getNorthWestLatitude()
Get the latitude of the north west corner point.
|
java.math.BigDecimal |
getNorthWestLongitude()
Get the longitude of the north west corner point.
|
java.math.BigDecimal |
getSouthEastLatitude()
Get the latitude of the south east corner point.
|
java.math.BigDecimal |
getSouthEastLongitude()
Gets the longitude of the south east corner point.
|
void |
preInvokeContext(com.ibm.commerce.component.contextservice.ActivityData sessionData)
This method performs context-specific tasks before request execution.
|
void |
setCenterLatitude(java.math.BigDecimal acenterLatitude)
Sets the latitude of the center point.
|
void |
setCenterLongitude(java.math.BigDecimal acenterLongitude)
Sets the longitude of the center point.
|
void |
setContextAttributes(java.lang.String[] ctxAttrs)
This method populates this context from a given array of context attributes.
|
void |
setNorthWestLatitude(java.math.BigDecimal anorthWestLatitude)
Sets the latitude of the north west corner point.
|
void |
setNorthWestLongitude(java.math.BigDecimal anorthWestLongitude)
Sets the longitude of the north west corner point.
|
void |
setSouthEastLatitude(java.math.BigDecimal asouthEastLatitude)
Sets the latitude of the south east corner point.
|
void |
setSouthEastLongitude(java.math.BigDecimal asouthEastLongitude)
Sets the longitude of the south east corner point.
|
boolean |
validate()
This method checks whether this context's attributes are valid.
|
clear, getActivityToken, getContextSerializedString, initialize, initialize, initializeContext, initializeContext, isDirty, postInvoke, postInvokeContext, preInvoke, recalibrate, recalibrateContext, reset, resetContext, setContextSerializedString, setDirty, toString
public static final java.lang.String COPYRIGHT
public StoreGeoCodeContextImpl()
public void preInvokeContext(com.ibm.commerce.component.contextservice.ActivityData sessionData) throws BusinessContextException
AbstractContextImpl
preInvokeContext
in class AbstractContextImpl
sessionData
- the map of name-value pairs for the parameters that are passed in the requestBusinessContextException
- on any error encounteredAbstractContextImpl.preInvoke(ActivityData)
public java.lang.Object[] getContextAttributes() throws BusinessContextException
AbstractContextImpl
getContextAttributes
in class AbstractContextImpl
BusinessContextException
- on any error encounteredAbstractContextImpl.getContextSerializedString()
public void setContextAttributes(java.lang.String[] ctxAttrs) throws BusinessContextException
AbstractContextImpl
setContextAttributes
in class AbstractContextImpl
ctxAttrs
- given array of context attributesBusinessContextException
- on any error encounteredpublic void clearContext()
AbstractContextImpl
clearContext
in class AbstractContextImpl
AbstractContextImpl.clear()
public java.lang.String getContextName()
Context
getContextName
in interface Context
public boolean validate() throws BusinessContextException
Context
validate
in interface Context
true
if all the attributes are validBusinessContextException
- if any one of the attributes is not validpublic void copyContext(Context ctx)
Context
copyContext
in interface Context
ctx
- the context to copy frompublic java.math.BigDecimal getCenterLatitude()
getCenterLatitude
in interface StoreGeoCodeContext
public java.math.BigDecimal getCenterLongitude()
getCenterLongitude
in interface StoreGeoCodeContext
public java.math.BigDecimal getNorthWestLatitude()
getNorthWestLatitude
in interface StoreGeoCodeContext
public java.math.BigDecimal getNorthWestLongitude()
getNorthWestLongitude
in interface StoreGeoCodeContext
public java.math.BigDecimal getSouthEastLatitude()
getSouthEastLatitude
in interface StoreGeoCodeContext
public java.math.BigDecimal getSouthEastLongitude()
getSouthEastLongitude
in interface StoreGeoCodeContext
public void setCenterLatitude(java.math.BigDecimal acenterLatitude)
setCenterLatitude
in interface StoreGeoCodeContext
acenterLatitude
- the latitude of the center point.public void setCenterLongitude(java.math.BigDecimal acenterLongitude)
setCenterLongitude
in interface StoreGeoCodeContext
acenterLongitude
- the longitude of the center point.public void setNorthWestLatitude(java.math.BigDecimal anorthWestLatitude)
setNorthWestLatitude
in interface StoreGeoCodeContext
anorthWestLatitude
- the latitude of the north west corner point.public void setNorthWestLongitude(java.math.BigDecimal anorthWestLongitude)
setNorthWestLongitude
in interface StoreGeoCodeContext
anorthWestLongitude
- the longitude of the north west corner point.public void setSouthEastLatitude(java.math.BigDecimal asouthEastLatitude)
setSouthEastLatitude
in interface StoreGeoCodeContext
asouthEastLatitude
- the latitude of the south east corner point.public void setSouthEastLongitude(java.math.BigDecimal asouthEastLongitude)
setSouthEastLongitude
in interface StoreGeoCodeContext
asouthEastLongitude
- the longitude of the south east corner point.