Package com.microstrategy.web.app.maps
Class GeoRequestBase
- java.lang.Object
-
- com.microstrategy.web.app.maps.GeoRequestBase
-
- Direct Known Subclasses:
LookupRequest
,QueryRequest
public abstract class GeoRequestBase extends java.lang.Object
Request object contains all the parsed query parameters, including query target type, query fields, and basic utility functions.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HIERARCHY_SEPERATOR
static java.lang.String
ITEM_SPLITTER
protected java.lang.String
lookupKey
static java.lang.String
QUERY_BY_ALIAS
static java.lang.String
QUERY_BY_ID
static java.lang.String
QUERY_BY_NAME
protected java.lang.String
queryField
protected java.lang.String
targetType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLookupKey()
java.lang.String
getQueryField()
java.lang.String
getTargetType()
static boolean
matchesQueryField(java.lang.String queryField, java.lang.String expectingField)
Find out the whether the given query field string matches an expected field.java.util.List<java.lang.String>
queryFieldHierarchy()
protected static java.util.List<java.lang.Integer>
splitString2IntegerArray(java.lang.String str)
protected static java.util.List<java.lang.String>
splitString2StringArray(java.lang.String str)
The function splits the query field hierarchy string into a list of integers.
-
-
-
Field Detail
-
QUERY_BY_ID
public static final java.lang.String QUERY_BY_ID
- See Also:
- Constant Field Values
-
QUERY_BY_NAME
public static final java.lang.String QUERY_BY_NAME
- See Also:
- Constant Field Values
-
QUERY_BY_ALIAS
public static final java.lang.String QUERY_BY_ALIAS
- See Also:
- Constant Field Values
-
ITEM_SPLITTER
public static final java.lang.String ITEM_SPLITTER
- See Also:
- Constant Field Values
-
HIERARCHY_SEPERATOR
public static final java.lang.String HIERARCHY_SEPERATOR
- See Also:
- Constant Field Values
-
lookupKey
protected java.lang.String lookupKey
-
targetType
protected java.lang.String targetType
-
queryField
protected java.lang.String queryField
-
-
Method Detail
-
getLookupKey
public java.lang.String getLookupKey()
-
getTargetType
public java.lang.String getTargetType()
-
getQueryField
public java.lang.String getQueryField()
-
queryFieldHierarchy
public java.util.List<java.lang.String> queryFieldHierarchy()
-
matchesQueryField
public static boolean matchesQueryField(java.lang.String queryField, java.lang.String expectingField)
Find out the whether the given query field string matches an expected field.- Parameters:
queryField
- A given query field in string formatexpectingField
- The expecting query field. The value can beQUERY_BY_ID
,QUERY_BY_NAME
, orQUERY_BY_ALIAS
- Returns:
- true if the string matches the expected query field. Otherwise, it returns false.
-
splitString2StringArray
protected static java.util.List<java.lang.String> splitString2StringArray(java.lang.String str)
The function splits the query field hierarchy string into a list of integers. The string tokens should be connected with the separator ':'.- Parameters:
str
- The query field hierarchy string that contains the ':' separator.- Returns:
- A list of Integer represents the query field values in hierarchy.
-
splitString2IntegerArray
protected static java.util.List<java.lang.Integer> splitString2IntegerArray(java.lang.String str)
-
-