annotate src/main/java/app/bbs/thinks/getAttributeImp.java @ 166:564f683b7aef

Matrix Date type insert ok but bad source
author tatsuki
date Mon, 28 Jul 2014 17:02:31 +0900
parents
children 91f6dd655a01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
166
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
1 package app.bbs.thinks;
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
2
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
3
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
4
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
5 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.bbs.BoardMessage;
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
6 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Node;
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
7
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
8 public class getAttributeImp
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
9 {
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
10 private final Node node;
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
11
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
12 public getAttributeImp(Node _node)
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
13 {
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
14 node = _node;
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
15 }
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
16
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
17 public String getUUID(int num) {
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
18 // TODO Auto-generated method stub
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
19 return String.valueOf(num);
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
20 }
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
21
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
22 public String getAuthor(int num) {
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
23 // TODO Auto-generated method stub
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
24 return new String(node.getAttributes().get("author" + String.valueOf(num)).array());
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
25 }
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
26
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
27 public String getMessage(int num) {
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
28 // TODO Auto-generated method stub
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
29 return new String(node.getAttributes().get("mes" + String.valueOf(num)).array());
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
30 }
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
31
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
32 }
564f683b7aef Matrix Date type insert ok
tatsuki
parents:
diff changeset
33