com.atlassian.jira.issue.search
Class SearchSort

java.lang.Object
  extended by com.atlassian.jira.issue.search.SearchSort
All Implemented Interfaces:
Serializable

public class SearchSort
extends Object
implements Serializable

A simple data bean representing the sort order for a particular issue field. Also responsible for marshalling and unmarshalling its XML representation so that search requests can be persisted in the database.

See Also:
Serialized Form

Constructor Summary
SearchSort()
           
SearchSort(String order, String field)
           
 
Method Summary
 boolean equals(Object o)
           
 String getField()
           
 Field getField(String id)
          Deprecated. use FieldManager.getField(id)
 String getOrder()
           
 String getQueryString()
           
 electric.xml.Element getXml()
           
 int hashCode()
           
 boolean isReverse()
           
 void setField(String field)
           
 void setOrder(String order)
           
 void setXml(electric.xml.Element el)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchSort

public SearchSort(String order,
                  String field)

SearchSort

public SearchSort()
Method Detail

getOrder

public String getOrder()

setOrder

public void setOrder(String order)

getField

public String getField()

setField

public void setField(String field)

isReverse

public boolean isReverse()

getXml

public electric.xml.Element getXml()

setXml

public void setXml(electric.xml.Element el)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getField

public Field getField(String id)
Deprecated. use FieldManager.getField(id)

Parameters:
id -
Returns:

getQueryString

public String getQueryString()


Copyright © 2002-2008 Atlassian. All Rights Reserved.