KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > factory > impl > AbstractProducibleDescription


1 /*
2  * Copyright 1999-2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.portal.factory.impl;
17
18 import org.apache.cocoon.portal.aspect.impl.AbstractAspectalizableDescription;
19 import org.apache.cocoon.portal.factory.ProducibleDescription;
20
21 /**
22  * This is a description of a {@link org.apache.cocoon.portal.factory.Producible} object.
23  *
24  * @author <a HREF="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
25  *
26  * @version CVS $Id: AbstractProducibleDescription.java 30932 2004-07-29 17:35:38Z vgritsenko $
27  */

28 public abstract class AbstractProducibleDescription
29     extends AbstractAspectalizableDescription
30     implements ProducibleDescription {
31
32     protected String JavaDoc className;
33     
34     protected String JavaDoc name;
35
36     protected boolean createId = true;
37     
38     /**
39      * @return The class name
40      */

41     public String JavaDoc getClassName() {
42         return className;
43     }
44
45     /**
46      * @return The configured name
47      */

48     public String JavaDoc getName() {
49         return name;
50     }
51
52     /**
53      * @param string
54      */

55     public void setClassName(String JavaDoc string) {
56         className = string;
57     }
58
59     /**
60      * @param string
61      */

62     public void setName(String JavaDoc string) {
63         name = string;
64     }
65
66     /**
67      * Create a unique id for objects of this type
68      */

69     public boolean createId() {
70         return this.createId;
71     }
72
73     public void setCreateId(boolean value) {
74         this.createId = value;
75     }
76 }
77
Popular Tags