1 16 package org.apache.cocoon.portal.factory.impl; 17 18 import org.apache.cocoon.portal.aspect.impl.AbstractAspectalizable; 19 import org.apache.cocoon.portal.factory.Producible; 20 import org.apache.cocoon.portal.factory.ProducibleDescription; 21 22 23 24 31 public abstract class AbstractProducible 32 extends AbstractAspectalizable 33 implements Producible { 34 35 protected String name; 36 37 protected String id; 38 39 transient protected ProducibleDescription description; 40 41 44 public String getName() { 45 return name; 46 } 47 48 51 public void setName(String string) { 52 name = string; 53 } 54 55 58 public void setDescription(ProducibleDescription description) { 59 this.description = description; 60 } 61 62 66 public String getId() { 67 return this.id; 68 } 69 70 73 public void setId(String id) { 74 this.id = id; 75 } 76 77 81 public void initialize(String name, String id) { 82 this.name = name; 83 this.id = id; 84 } 85 86 89 protected Object clone() throws CloneNotSupportedException { 90 AbstractProducible clone = (AbstractProducible)super.clone(); 91 92 clone.name = this.name; 93 clone.id = this.id; 94 clone.description = this.description; 95 96 return clone; 97 } 98 99 } 100 | Popular Tags |