Debian Codegraph @

test/rpc/IF3SOAPImpl.java

raw
1
2 package test.rpc;
3
4 import java.util.Calendar;
5 import java.util.GregorianCalendar;
6
7 //import org.jdom.Document;
8 //import org.jdom.output.XMLOutputter;
9
10 public final class IF3SOAPImpl implements IF3SOAP
11 {
12 private Bean[] m_beans;
13 private String[] m_categories;
14
15 public IF3SOAPImpl()
16 {
17 Bean bean1 = new Bean();
18 bean1.setId("42042042042");
19 bean1.setTitle("Test Bean");
20 bean1.setCategory("Test");
21 Calendar date = new GregorianCalendar();
22 bean1.setDate(date);
23 Bean bean2 = new Bean();
24 bean2.setId("11011011011");
25 bean2.setTitle("Test Bean 2");
26 bean2.setCategory("Test 2");
27 bean2.setDate(date);
28 m_beans = new Bean[2];
29 m_beans[0] = bean1;
30 m_beans[1] = bean2;
31 m_categories = new String[2];
32 m_categories[0] = "Test";
33 m_categories[1] = "Std";
34 }
35
36 public IF1 getBeanById(String id)
37 throws Exception
38 {
39 return m_beans[0];
40 }
41
42 public IF1[] getAllBeans()
43 throws Exception
44 {
45 return m_beans;
46 }
47
48 public IF1[] getAllBeans(String[] filter)
49 throws Exception
50 {
51 return m_beans;
52 }
53
54 public String[] getAllCategories()
55 throws Exception
56 {
57 return m_categories;
58 }
59
60 public IF1[] getBeansByCategory(String category)
61 throws Exception
62 {
63 return m_beans;
64 }
65
66 public IF1[] getBeansByCategory(String category, String[] filter)
67 throws Exception
68 {
69 return m_beans;
70 }
71
72 public IF1[] getBeansByDate(Calendar[] dates)
73 throws Exception
74 {
75 return m_beans;
76 }
77
78 public IF1[] getBeansByDate(Calendar[] dates, String[] filter)
79 throws Exception
80 {
81 return m_beans;
82 }
83
84 public IF1[] getBeansByExpression(int expType, String expression)
85 throws Exception
86 {
87 return m_beans;
88 }
89
90 public IF1[] getBeansByExpression(int expType, String expression, String[] filter)
91 throws Exception
92 {
93 return m_beans;
94 }
95
96 public String getXMLForBean(IF1 bean)
97 throws Exception
98 {
99 return "<bean>\n</bean>";
100 }
101
102 public IF1[] getBeansByCategory(String ifId, String category)
103 throws Exception
104 {
105 return m_beans;
106 }
107
108 public IF1[] getBeansByCategory(String ifId, String category, String[] filter)
109 throws Exception
110 {
111 return m_beans;
112 }
113
114 public IF1[] getBeansByDate(String ifId, Calendar[] dates)
115 throws Exception
116 {
117 return m_beans;
118 }
119
120 public IF1[] getBeansByDate(String ifId, Calendar[] dates, String[] filter)
121 throws Exception
122 {
123 return m_beans;
124 }
125
126 public IF1[] getBeansByExpression(String ifId, int expType, String expression)
127 throws Exception
128 {
129 return m_beans;
130 }
131
132 public IF1[] getBeansByExpression(String ifId, int expType, String expression, String[] filter)
133 throws Exception
134 {
135 return m_beans;
136 }
137 }
138