1 package com.xtremelabs.robolectric.shadows;
2 
3 import android.content.Context;
4 import android.net.Uri;
5 import android.support.v4.content.CursorLoader;
6 
7 import com.xtremelabs.robolectric.internal.Implementation;
8 import com.xtremelabs.robolectric.internal.Implements;
9 
10 @Implements(CursorLoader.class)
11 public class ShadowCursorLoader {
12     private Context context;
13     private Uri uri;
14     private String[] projection;
15     private String selection;
16     private String[] selectionArgs;
17     private String sortOrder;
18 
__constructor__(Context context)19     public void __constructor__(Context context) {
20         this.context = context;
21     }
22 
__constructor__(Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)23     public void __constructor__(Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
24         this.context = context;
25         this.uri = uri;
26         this.projection = projection;
27         this.selection = selection;
28         this.selectionArgs = selectionArgs;
29         this.sortOrder = sortOrder;
30     }
31 
32     @Implementation
getUri()33     public Uri getUri() {
34         return uri;
35     }
36 
37     @Implementation
setUri(Uri uri)38     public void setUri(Uri uri) {
39         this.uri = uri;
40     }
41 
42     @Implementation
getProjection()43     public String[] getProjection() {
44         return projection;
45     }
46 
47     @Implementation
setProjection(String[] projection)48     public void setProjection(String[] projection) {
49         this.projection = projection;
50     }
51 
52     @Implementation
getSelection()53     public String getSelection() {
54         return selection;
55     }
56 
57     @Implementation
setSelection(String selection)58     public void setSelection(String selection) {
59         this.selection = selection;
60     }
61 
62     @Implementation
getSelectionArgs()63     public String[] getSelectionArgs() {
64         return selectionArgs;
65     }
66 
67     @Implementation
setSelectionArgs(String[] selectionArgs)68     public void setSelectionArgs(String[] selectionArgs) {
69         this.selectionArgs = selectionArgs;
70     }
71 
72     @Implementation
getSortOrder()73     public String getSortOrder() {
74         return sortOrder;
75     }
76 
77     @Implementation
setSortOrder(String sortOrder)78     public void setSortOrder(String sortOrder) {
79         this.sortOrder = sortOrder;
80     }
81 }
82