|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.commerce.csr.search.SearchAttribute
public class SearchAttribute
Helper class that represents a construct of a search attribute (or property) and its relation to the search. Each attribute has a name, a proposed value, the relationship to that value and a search method.
SearchFormHandler
Field Summary | |
---|---|
static int |
ADVANCED_SEARCH_INT
|
static int |
CASE_INSENSITIVE_INT
|
static int |
CASE_SENSITIVE_INT
|
static java.lang.String |
CLASS_VERSION
Class version string |
static int |
COMPARE_SEARCH_INT
|
static java.lang.String |
DATE_DATATYPE
|
static java.lang.String |
EMAIL_DATATYPE
|
static java.lang.String |
EQUALS_STRING
|
static java.lang.String |
GREATER_STRING
|
static java.lang.String |
GREATERTHANOREQUALS_STRING
|
static int |
KEYWORD_SEARCH_INT
|
static java.lang.String |
LESS_STRING
|
static java.lang.String |
LESSTHANOREQUALS_STRING
|
static int |
LOWER_CASE_INT
|
static java.lang.String |
NOTEQUALS_STRING
|
static java.lang.String |
NUMERIC_DATATYPE
|
static java.lang.String |
STRING_DATATYPE
|
static int |
SUBQUERY_SEARCH_INT
|
static int |
SUBTYPE_SEARCH_INT
|
static int |
TEXT_SEARCH_INT
|
static int |
UPPER_CASE_INT
|
static int |
WILDCARD_SEARCH_INT
|
Constructor Summary | |
---|---|
SearchAttribute()
Constructors |
|
SearchAttribute(java.lang.String pName,
java.lang.String pRelation,
java.lang.String[] pValues,
int pMethod,
int pCaseSensitive,
java.lang.Boolean pIsMultiValues,
char pMultiValueInputSeparator,
java.lang.String pSubtypeName,
java.lang.String pDisplayName,
java.lang.String pDataType)
|
Method Summary | |
---|---|
protected java.lang.Object |
clone()
|
int |
getCaseSensitive()
Returns property mIgnoreCase |
java.lang.String |
getDataType()
Returns mDataType |
java.lang.String |
getDescription()
use displayName attribute to build search query description. |
java.lang.String |
getDisplayName()
Returns Display Name of the Attribute |
java.lang.Boolean |
getIsMultiValues()
Returns property mIsMultiValues |
int |
getMethod()
Returns Search Method for the attribute |
char |
getMultiValueInputSeparator()
Returns property MultiValueInputSeparator |
java.lang.String |
getName()
Returns Name of the Attribute |
int |
getQueryBuilderRelation()
Based on the set mRelation translates it into appropriate format for the QueryBuilder |
java.lang.String |
getRelation()
Returns The Relation of the attributes real values to the proposed value |
java.lang.String |
getSubtypeName()
Returns SubtypeName of the Attribute |
java.lang.String |
getValue()
|
int |
getValueArraySize()
Returns ValueArraySize of the Attribute |
java.lang.String[] |
getValues()
Returns Proposed Value for the attribute |
java.lang.String |
getValues(int pIndex)
Returns Proposed Value for the attribute |
void |
setCaseSensitive(int pCaseSensitive)
Sets property mCaseSensitive |
void |
setDataType(java.lang.String pDataType)
Sets mDataType |
void |
setDisplayName(java.lang.String pName)
Sets Display Name of the Attribute |
void |
setIsMultiValues(java.lang.Boolean pIsMultiValues)
Sets property mIsMultiValues |
void |
setMethod(int pMethod)
Sets Search Method for the attribute |
void |
setMultiValueInputSeparator(char pMultiValueInputSeparator)
Sets property MultiValueInputSeparator |
void |
setName(java.lang.String pName)
Sets Name of the Attribute |
void |
setRelation(java.lang.String pRelation)
Sets The Relation of the attributes real values to the proposed value |
void |
setSubtypeName(java.lang.String pSubtypeName)
Sets SubtypeName of the Attribute |
void |
setValueArraySize(int pValueArraySize)
Sets ValueArraySize of the Attribute |
void |
setValues(int pIndex,
java.lang.String pValue)
Sets Proposed Value for the attribute |
void |
setValues(java.lang.String[] pValues)
Sets Proposed Value for the attribute |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String EQUALS_STRING
public static final java.lang.String NOTEQUALS_STRING
public static final java.lang.String LESS_STRING
public static final java.lang.String GREATER_STRING
public static final java.lang.String LESSTHANOREQUALS_STRING
public static final java.lang.String GREATERTHANOREQUALS_STRING
public static final int CASE_SENSITIVE_INT
public static final int CASE_INSENSITIVE_INT
public static final int UPPER_CASE_INT
public static final int LOWER_CASE_INT
public static final java.lang.String STRING_DATATYPE
public static final java.lang.String EMAIL_DATATYPE
public static final java.lang.String DATE_DATATYPE
public static final java.lang.String NUMERIC_DATATYPE
public static final int COMPARE_SEARCH_INT
public static final int KEYWORD_SEARCH_INT
public static final int ADVANCED_SEARCH_INT
public static final int TEXT_SEARCH_INT
public static final int WILDCARD_SEARCH_INT
public static final int SUBQUERY_SEARCH_INT
public static final int SUBTYPE_SEARCH_INT
Constructor Detail |
---|
public SearchAttribute()
public SearchAttribute(java.lang.String pName, java.lang.String pRelation, java.lang.String[] pValues, int pMethod, int pCaseSensitive, java.lang.Boolean pIsMultiValues, char pMultiValueInputSeparator, java.lang.String pSubtypeName, java.lang.String pDisplayName, java.lang.String pDataType)
Method Detail |
---|
public void setName(java.lang.String pName)
pName
- the Name of the Attributepublic java.lang.String getName()
public void setDisplayName(java.lang.String pName)
pName
- the Display Name of the Attributepublic java.lang.String getDisplayName()
public void setValues(java.lang.String[] pValues)
pValues
- the Proposed Value for the attributepublic java.lang.String[] getValues()
public void setValues(int pIndex, java.lang.String pValue)
public java.lang.String getValues(int pIndex)
public java.lang.String getValue()
public void setRelation(java.lang.String pRelation)
pRelation
- the Relation of the attributes real values to the proposed valuepublic java.lang.String getRelation()
public void setMethod(int pMethod)
pMethod
- the Search Method for the attributepublic int getMethod()
public void setDataType(java.lang.String pDataType)
pDataType
- the data type of the attributepublic java.lang.String getDataType()
public void setMultiValueInputSeparator(char pMultiValueInputSeparator)
pMultiValueInputSeparator
- the property to store what characters to use to separate words in
the SearchInput string.public char getMultiValueInputSeparator()
public void setCaseSensitive(int pCaseSensitive)
pCaseSensitive
- public int getCaseSensitive()
public void setIsMultiValues(java.lang.Boolean pIsMultiValues)
pIsMultiValues
- public java.lang.Boolean getIsMultiValues()
public void setValueArraySize(int pValueArraySize)
pValueArraySize
- the ValueArraySize of the Attributepublic int getValueArraySize()
public void setSubtypeName(java.lang.String pSubtypeName)
pSubtypeName
- the SubtypeName of the Attributepublic java.lang.String getSubtypeName()
public java.lang.String getDescription()
public int getQueryBuilderRelation()
protected java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |