View Javadoc
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 the appInfo in focus.
14     */
15    public AppInfoSolrjNature(final AppInfo appInfo) {
16      super(appInfo);
17    }
18  
19    /**
20     * Returns the id of the Nature. Implementation returns the fully qualified class name.
21     * 
22     * @return the id.
23     * @see org.exolab.castor.builder.info.nature.Nature#getId()
24     */
25    public String getId() {
26      return getClass().getName();
27    }
28  
29    /**
30     * Adds a content value to the content.
31     * 
32     * @param contentValue content value
33     */
34    public void setContent(final Object content) {
35      setProperty(CONTENT_KEY, content);
36    }
37  
38    /**
39     * Returns a list of JDO content values.
40     * 
41     * @return the JDO content values.
42     */
43    public Object getContent() {
44      return this.getProperty(CONTENT_KEY);
45    }
46  
47  }