org.apache.cocoon.portal.aspect.impl
Class DefaultAspectDescription

java.lang.Object
  extended by org.apache.cocoon.portal.aspect.impl.DefaultAspectDescription
All Implemented Interfaces:
AspectDescription

public class DefaultAspectDescription
extends Object
implements AspectDescription

A configured aspect

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

Field Summary
protected  boolean autoCreate
           
protected  String className
           
protected  String defaultValue
           
protected  String name
           
protected  String persistence
           
 
Constructor Summary
DefaultAspectDescription()
           
 
Method Summary
 String getClassName()
           
 String getDefaultValue()
          Default value
 String getName()
           
 String getStoreName()
           
 boolean isAutoCreate()
          If the data is not available, create it automatically (or not)
static AspectDescription newInstance(Configuration conf)
          Create a new description from a Configuration object.
 void setAutoCreate(boolean b)
          Set auto create
 void setClassName(String string)
           
 void setDefaultValue(String value)
           
 void setName(String string)
           
 void setPersistence(String string)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

className

protected String className

persistence

protected String persistence

autoCreate

protected boolean autoCreate

defaultValue

protected String defaultValue
Constructor Detail

DefaultAspectDescription

public DefaultAspectDescription()
Method Detail

newInstance

public static AspectDescription newInstance(Configuration conf)
                                     throws ConfigurationException
Create a new description from a Configuration object. All values must be stored as attributes

Throws:
ConfigurationException

getClassName

public String getClassName()
Specified by:
getClassName in interface AspectDescription
Returns:
The class name

getName

public String getName()
Specified by:
getName in interface AspectDescription
Returns:
The configred name

setClassName

public void setClassName(String string)
Parameters:
string -

setName

public void setName(String string)
Parameters:
string -

getStoreName

public String getStoreName()
Specified by:
getStoreName in interface AspectDescription
Returns:
The role of the store

setPersistence

public void setPersistence(String string)
Parameters:
string -

isAutoCreate

public boolean isAutoCreate()
If the data is not available, create it automatically (or not)

Specified by:
isAutoCreate in interface AspectDescription

setAutoCreate

public void setAutoCreate(boolean b)
Set auto create


getDefaultValue

public String getDefaultValue()
Default value

Specified by:
getDefaultValue in interface AspectDescription

setDefaultValue

public void setDefaultValue(String value)

toString

public String toString()
Overrides:
toString in class Object


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