public class QueryTag extends Object
QueryCompiler.| Constructor and Description |
|---|
QueryTag(String type,
String color,
String value,
String label)
Creates a new tag.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getColor()
Returns the color or CSS class used to render this tag.
|
String |
getLabel()
Returns the label shown to the user.
|
String |
getType()
The type of the tag, used to identify the
QueryTagHandler to use. |
String |
getValue()
Returns the filter value passed to the
QueryTagHandler. |
static QueryTag |
parse(String tag)
Parses the tag from a given search query.
|
String |
toString() |
public QueryTag(String type, String color, String value, String label)
type - the type of the tag, used to identify the QueryTagHandler to usecolor - the color used to render the tag in the search boxvalue - the value passed to the QueryTagHandlerlabel - the value shown to the userpublic static QueryTag parse(String tag)
tag - the tag to parse, see toString()public String getType()
QueryTagHandler to use.public String getValue()
QueryTagHandler.public String getLabel()
public String getColor()
Copyright © 2018. All rights reserved.