com.atlassian.jira.issue.search.parameters.lucene
Class StringParameter
java.lang.Object
com.atlassian.jira.issue.search.parameters.AbstractSearchParameter
com.atlassian.jira.issue.search.parameters.LuceneParameter
com.atlassian.jira.issue.search.parameters.lucene.SingleFieldSingleValueLuceneParameter
com.atlassian.jira.issue.search.parameters.lucene.StringParameter
- All Implemented Interfaces:
- SearchParameter
- Direct Known Subclasses:
- UserParameter
- public class StringParameter
- extends SingleFieldSingleValueLuceneParameter
Method Summary |
protected java.lang.String |
getQueryStringPrefix()
Note that implementations of this method should ensure that the values that they return are URLEncoded,
perhaps using the URLEncoder#encode(String) method. |
protected java.lang.String |
getXmlElementName()
For some parameters, the parameter name may not be a valid XML element name (eg, if it contains a ':' in the case
of custom fields. |
void |
setXml(electric.xml.Element el)
Initialise this search parameter using an XML element. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
StringParameter
public StringParameter()
StringParameter
public StringParameter(java.lang.String name,
java.lang.String value)
StringParameter
public StringParameter(java.lang.String name,
java.lang.String elementName,
java.lang.String value)
setXml
public void setXml(electric.xml.Element el)
- Description copied from interface:
SearchParameter
- Initialise this search parameter using an XML element.
Usual process is:
SearchParameter param = new MySearchParameter();
param.setXml(element);
- Specified by:
setXml
in interface SearchParameter
- Overrides:
setXml
in class AbstractSearchParameter
getQueryStringPrefix
protected java.lang.String getQueryStringPrefix()
- Description copied from class:
AbstractSearchParameter
- Note that implementations of this method should ensure that the values that they return are URLEncoded,
perhaps using the
URLEncoder.encode(String)
method.
- Overrides:
getQueryStringPrefix
in class AbstractSearchParameter
- Returns:
getXmlElementName
protected java.lang.String getXmlElementName()
- Description copied from class:
SingleFieldSingleValueLuceneParameter
- For some parameters, the parameter name may not be a valid XML element name (eg, if it contains a ':' in the case
of custom fields. For those parameters, you can override the element name here).
- Overrides:
getXmlElementName
in class SingleFieldSingleValueLuceneParameter
- Returns:
- The element name to describe this parameter. By default, it returns the same as
AbstractSearchParameter.getName()
Copyright © 2002-2005 Atlassian. All Rights Reserved.