1 package org.exolab.castor.xml.schema;
2
3 import org.castor.core.nature.BaseNature;
4
5 public class AppInfoSolrjNature extends BaseNature {
6
7 /**
8 * Property key of content.
9 */
10 private static final String CONTENT_KEY = "content";
11
12 /**
13 * @param appInfo
14 * the appInfo in focus.
15 */
16 public AppInfoSolrjNature(final AppInfo appInfo) {
17 super(appInfo);
18 }
19
20 /**
21 * Returns the id of the Nature. Implementation returns the fully qualified
22 * class name.
23 *
24 * @return the id.
25 * @see org.exolab.castor.builder.info.nature.Nature#getId()
26 */
27 public String getId() {
28 return getClass().getName();
29 }
30
31 /**
32 * Adds a content value to the content.
33 *
34 * @param contentValue
35 * content value
36 */
37 public void setContent(final Object content) {
38 setProperty(CONTENT_KEY, content);
39 }
40
41 /**
42 * Returns a list of JDO content values.
43 *
44 * @return the JDO content values.
45 */
46 public Object getContent() {
47 return this.getProperty(CONTENT_KEY);
48 }
49
50 }