@ThreadSafe public final class DefaultClauseInformation extends Object implements ClauseInformation
Constructor and Description |
---|
DefaultClauseInformation(String indexField,
ClauseNames names,
String fieldId,
Set<Operator> supportedOperators,
JiraDataType supportedType) |
DefaultClauseInformation(String indexField,
String jqlClauseName,
String fieldId,
Set<Operator> supportedOperators,
JiraDataType supportedType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
JiraDataType |
getDataType()
Provides the
JiraDataType that this clause handles and searches on. |
String |
getFieldId() |
String |
getIndexField() |
ClauseNames |
getJqlClauseNames() |
Set<Operator> |
getSupportedOperators()
Provides a set of the supported
Operator 's that this custom field searcher
can handle for its searching. |
int |
hashCode() |
public DefaultClauseInformation(String indexField, ClauseNames names, String fieldId, Set<Operator> supportedOperators, JiraDataType supportedType)
public String getIndexField()
getIndexField
in interface ClauseInformation
public ClauseNames getJqlClauseNames()
getJqlClauseNames
in interface ClauseInformation
public String getFieldId()
getFieldId
in interface ClauseInformation
public Set<Operator> getSupportedOperators()
ClauseInformation
Operator
's that this custom field searcher
can handle for its searching.getSupportedOperators
in interface ClauseInformation
public JiraDataType getDataType()
ClauseInformation
JiraDataType
that this clause handles and searches on. This allows us
to infer some information about how the search will behave and how it will interact with other elements in
the system.
For example, if this returns JiraDataTypes.DATE
then we know that we could provide
users with a date picker for an input field, and we know that this clause should only be used by functions
that also specify dates.
getDataType
in interface ClauseInformation
JiraDataTypes
Copyright © 2002-2019 Atlassian. All Rights Reserved.