org.apache.cocoon.portal.factory.impl
Class AbstractProducible

java.lang.Object
  extended by org.apache.cocoon.portal.aspect.impl.AbstractAspectalizable
      extended by org.apache.cocoon.portal.factory.impl.AbstractProducible
All Implemented Interfaces:
Cloneable, Aspectalizable, Producible
Direct Known Subclasses:
AbstractLayout, CopletData, CopletInstanceData

public abstract class AbstractProducible
extends AbstractAspectalizable
implements Producible

This interface marks an object that can be created by a factory.

Version:
CVS $Id: AbstractProducible.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
protected  ProducibleDescription description
           
protected  String id
           
protected  String name
           
 
Fields inherited from class org.apache.cocoon.portal.aspect.impl.AbstractAspectalizable
aspectDataHandler, persistentDatas
 
Constructor Summary
AbstractProducible()
           
 
Method Summary
protected  Object clone()
           
 String getId()
          Get the unique id of this object
 String getName()
          The name given from the factory
 void initialize(String name, String id)
          Initialize the object.
 void setDescription(ProducibleDescription description)
          Set the layout description
 void setId(String id)
          Set the unique id of this object
 void setName(String string)
           
 
Methods inherited from class org.apache.cocoon.portal.aspect.impl.AbstractAspectalizable
addPersistentAspectData, getAspectData, getAspectDatas, getPersistentAspectData, isAspectSupported, setAspectData, setAspectDataHandler
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.portal.aspect.Aspectalizable
addPersistentAspectData, getAspectData, getAspectDatas, getPersistentAspectData, isAspectSupported, setAspectData, setAspectDataHandler
 

Field Detail

name

protected String name

id

protected String id

description

protected transient ProducibleDescription description
Constructor Detail

AbstractProducible

public AbstractProducible()
Method Detail

getName

public String getName()
Description copied from interface: Producible
The name given from the factory

Specified by:
getName in interface Producible
Returns:
The configured name

setName

public void setName(String string)
Parameters:
string -

setDescription

public void setDescription(ProducibleDescription description)
Set the layout description

Specified by:
setDescription in interface Producible

getId

public String getId()
Get the unique id of this object

Specified by:
getId in interface Producible
Returns:
String Unique id

setId

public void setId(String id)
Set the unique id of this object


initialize

public void initialize(String name,
                       String id)
Initialize the object. This should only be called once directly after the creation

Specified by:
initialize in interface Producible

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class AbstractAspectalizable
Throws:
CloneNotSupportedException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.