166
|
1 package app.bbs.thinks;
|
|
2
|
|
3
|
|
4
|
|
5 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.bbs.BoardMessage;
|
|
6 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Node;
|
|
7
|
|
8 public class getAttributeImp
|
|
9 {
|
|
10 private final Node node;
|
|
11
|
|
12 public getAttributeImp(Node _node)
|
|
13 {
|
|
14 node = _node;
|
|
15 }
|
|
16
|
|
17 public String getUUID(int num) {
|
|
18 // TODO Auto-generated method stub
|
|
19 return String.valueOf(num);
|
|
20 }
|
|
21
|
|
22 public String getAuthor(int num) {
|
|
23 // TODO Auto-generated method stub
|
|
24 return new String(node.getAttributes().get("author" + String.valueOf(num)).array());
|
|
25 }
|
|
26
|
|
27 public String getMessage(int num) {
|
|
28 // TODO Auto-generated method stub
|
|
29 return new String(node.getAttributes().get("mes" + String.valueOf(num)).array());
|
|
30 }
|
|
31
|
|
32 }
|
|
33
|