01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.cocoon.portal.factory.impl;
18:
19: import org.apache.cocoon.portal.aspect.impl.AbstractAspectalizableDescription;
20: import org.apache.cocoon.portal.factory.ProducibleDescription;
21:
22: /**
23: * This is a description of a {@link org.apache.cocoon.portal.factory.Producible} object.
24: *
25: * @author <a href="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
26: *
27: * @version CVS $Id: AbstractProducibleDescription.java 433543 2006-08-22 06:22:54Z crossley $
28: */
29: public abstract class AbstractProducibleDescription extends
30: AbstractAspectalizableDescription implements
31: ProducibleDescription {
32:
33: protected String className;
34:
35: protected String name;
36:
37: protected boolean createId = true;
38:
39: /**
40: * @return The class name
41: */
42: public String getClassName() {
43: return className;
44: }
45:
46: /**
47: * @return The configured name
48: */
49: public String getName() {
50: return name;
51: }
52:
53: /**
54: * @param string
55: */
56: public void setClassName(String string) {
57: className = string;
58: }
59:
60: /**
61: * @param string
62: */
63: public void setName(String string) {
64: name = string;
65: }
66:
67: /**
68: * Create a unique id for objects of this type
69: */
70: public boolean createId() {
71: return this .createId;
72: }
73:
74: public void setCreateId(boolean value) {
75: this.createId = value;
76: }
77: }
|