1   package com.atlassian.bonnie.search;
2   
3   import com.atlassian.bonnie.Searchable;
4   
5   import java.util.List;
6   import java.util.Collection;
7   import java.util.Collections;
8   
9   public class MockLuceneIndexableObject implements Searchable
10  {
11  	private long handleAttr;
12  	private int textAttr;
13  	private String keywordAttr;
14  	private double unIndexedAttr;
15  	private float unStoredAttr;
16      private int[] intArrayAttr;
17      private List listAttr;
18      private Object[] objArrayAttr;
19  
20      public long getId()
21      {
22          return -1;
23      }
24  
25      public long getHandleAttr()
26  	{
27  		return handleAttr;
28  	}
29  
30  	public void setHandleAttr( long handleAttr )
31  	{
32  		this.handleAttr = handleAttr;
33  	}
34  
35  	public int getTextAttr()
36  	{
37  		return textAttr;
38  	}
39  
40  	public void setTextAttr( int textAttr )
41  	{
42  		this.textAttr = textAttr;
43  	}
44  
45  	public String getKeywordAttr()
46  	{
47  		return keywordAttr;
48  	}
49  
50  	public void setKeywordAttr( String keywordAttr )
51  	{
52  		this.keywordAttr = keywordAttr;
53  	}
54  
55  	public double getUnIndexedAttr()
56  	{
57  		return unIndexedAttr;
58  	}
59  
60  	public void setUnIndexedAttr( double unIndexedAttr )
61  	{
62  		this.unIndexedAttr = unIndexedAttr;
63  	}
64  
65  	public float getUnStoredAttr()
66  	{
67  		return unStoredAttr;
68  	}
69  
70  	public void setUnStoredAttr( float unStoredAttr )
71  	{
72  		this.unStoredAttr = unStoredAttr;
73  	}
74  
75      public int[] getIntArrayAttr()
76      {
77          return intArrayAttr;
78      }
79  
80      public void setIntArrayAttr(int[] intArrayAttr)
81      {
82          this.intArrayAttr = intArrayAttr;
83      }
84  
85      public List getListAttr()
86      {
87          return listAttr;
88      }
89  
90      public void setListAttr(List listAttr)
91      {
92          this.listAttr = listAttr;
93      }
94  
95      public Object[] getObjArrayAttr()
96      {
97          return objArrayAttr;
98      }
99  
100     public void setObjArrayAttr(Object[] objArrayAttr)
101     {
102         this.objArrayAttr = objArrayAttr;
103     }
104 
105     public Collection getSearchableDependants()
106     {
107         return Collections.EMPTY_LIST;
108     }
109 
110     public boolean isIndexable()
111     {
112         return true;
113     }
114 }