KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > java > plugin > tools > mocks > MockPluginElement


1 /*****************************************************************************
2  * Java Plug-in Framework (JPF)
3  * Copyright (C) 2006 Dmitry Olshansky
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *****************************************************************************/

19 package org.java.plugin.tools.mocks;
20
21 import org.java.plugin.registry.Documentation;
22 import org.java.plugin.registry.PluginDescriptor;
23 import org.java.plugin.registry.PluginElement;
24 import org.java.plugin.registry.PluginFragment;
25
26 /**
27  * @version $Id: MockPluginElement.java,v 1.2 2006/09/14 18:10:39 ddimon Exp $
28  */

29 public abstract class MockPluginElement extends MockIdentity implements
30         PluginElement {
31     private PluginDescriptor declaringPluginDescriptor;
32     private PluginFragment declaringPluginFragment;
33     private String JavaDoc docsPath;
34     private Documentation documentation;
35
36     /**
37      * @see org.java.plugin.registry.PluginElement#getDeclaringPluginDescriptor()
38      */

39     public PluginDescriptor getDeclaringPluginDescriptor() {
40         return declaringPluginDescriptor;
41     }
42     
43     /**
44      * @param value the declaring plug-in descriptor to set
45      * @return this instance
46      */

47     public MockPluginElement setDeclaringPluginDescriptor(
48             final PluginDescriptor value) {
49         declaringPluginDescriptor = value;
50         return this;
51     }
52
53     /**
54      * @see org.java.plugin.registry.PluginElement#getDeclaringPluginFragment()
55      */

56     public PluginFragment getDeclaringPluginFragment() {
57         return declaringPluginFragment;
58     }
59     
60     /**
61      * @param value the declaring plug-in fragment to set
62      * @return this instance
63      */

64     public MockPluginElement setDeclaringPluginFragment(
65             final PluginFragment value) {
66         declaringPluginFragment = value;
67         return this;
68     }
69
70     /**
71      * @see org.java.plugin.registry.Documentable#getDocsPath()
72      */

73     public String JavaDoc getDocsPath() {
74         return docsPath;
75     }
76     
77     /**
78      * @param value the docs path to set
79      * @return this instance
80      */

81     public MockPluginElement setDocsPath(final String JavaDoc value) {
82         docsPath = value;
83         return this;
84     }
85
86     /**
87      * @see org.java.plugin.registry.Documentable#getDocumentation()
88      */

89     public Documentation getDocumentation() {
90         return documentation;
91     }
92
93     /**
94      * @param value the documentation to set
95      * @return this instance
96      */

97     public MockPluginElement setDocumentation(final Documentation value) {
98         documentation = value;
99         return this;
100     }
101 }
102
Popular Tags