public class StoreGeoCodeContextImpl extends AbstractContextImpl implements StoreGeoCodeContext
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
SER_VALUE_SEPCENTER_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, toStringpublic static final java.lang.String COPYRIGHT
public StoreGeoCodeContextImpl()
public void preInvokeContext(com.ibm.commerce.component.contextservice.ActivityData sessionData)
throws BusinessContextException
AbstractContextImplpreInvokeContext in class AbstractContextImplsessionData - 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
AbstractContextImplgetContextAttributes in class AbstractContextImplBusinessContextException - on any error encounteredAbstractContextImpl.getContextSerializedString()public void setContextAttributes(java.lang.String[] ctxAttrs)
throws BusinessContextException
AbstractContextImplsetContextAttributes in class AbstractContextImplctxAttrs - given array of context attributesBusinessContextException - on any error encounteredpublic void clearContext()
AbstractContextImplclearContext in class AbstractContextImplAbstractContextImpl.clear()public java.lang.String getContextName()
ContextgetContextName in interface Contextpublic boolean validate()
throws BusinessContextException
Contextvalidate in interface Contexttrue if all the attributes are validBusinessContextException - if any one of the attributes is not validpublic void copyContext(Context ctx)
ContextcopyContext in interface Contextctx - the context to copy frompublic java.math.BigDecimal getCenterLatitude()
getCenterLatitude in interface StoreGeoCodeContextpublic java.math.BigDecimal getCenterLongitude()
getCenterLongitude in interface StoreGeoCodeContextpublic java.math.BigDecimal getNorthWestLatitude()
getNorthWestLatitude in interface StoreGeoCodeContextpublic java.math.BigDecimal getNorthWestLongitude()
getNorthWestLongitude in interface StoreGeoCodeContextpublic java.math.BigDecimal getSouthEastLatitude()
getSouthEastLatitude in interface StoreGeoCodeContextpublic java.math.BigDecimal getSouthEastLongitude()
getSouthEastLongitude in interface StoreGeoCodeContextpublic void setCenterLatitude(java.math.BigDecimal acenterLatitude)
setCenterLatitude in interface StoreGeoCodeContextacenterLatitude - the latitude of the center point.public void setCenterLongitude(java.math.BigDecimal acenterLongitude)
setCenterLongitude in interface StoreGeoCodeContextacenterLongitude - the longitude of the center point.public void setNorthWestLatitude(java.math.BigDecimal anorthWestLatitude)
setNorthWestLatitude in interface StoreGeoCodeContextanorthWestLatitude - the latitude of the north west corner point.public void setNorthWestLongitude(java.math.BigDecimal anorthWestLongitude)
setNorthWestLongitude in interface StoreGeoCodeContextanorthWestLongitude - the longitude of the north west corner point.public void setSouthEastLatitude(java.math.BigDecimal asouthEastLatitude)
setSouthEastLatitude in interface StoreGeoCodeContextasouthEastLatitude - the latitude of the south east corner point.public void setSouthEastLongitude(java.math.BigDecimal asouthEastLongitude)
setSouthEastLongitude in interface StoreGeoCodeContextasouthEastLongitude - the longitude of the south east corner point.