1 package org.exolab.castor.xml.schema;
2
3 import java.util.List;
4
5 import org.castor.core.nature.BaseNature;
6
7 public class AppInfoJpaNature extends BaseNature {
8
9
10
11
12 private static final String CONTENT_KEY = "content";
13
14
15
16
17
18 public AppInfoJpaNature(final AppInfo appInfo) {
19 super(appInfo);
20 }
21
22
23
24
25
26
27
28
29 public String getId() {
30 return getClass().getName();
31 }
32
33
34
35
36
37
38
39 @SuppressWarnings("unchecked")
40 public void addContent(final Object contentValue) {
41 List<Object> content = getPropertyAsList(CONTENT_KEY);
42 content.add(contentValue);
43 }
44
45
46
47
48
49
50 @SuppressWarnings("unchecked")
51 public List<Object> getContent() {
52 return this.getPropertyAsList(CONTENT_KEY);
53 }
54
55 }