org.oddjob.designer.elements.schedule
Class ScheduleFactory

java.lang.Object
  extended byorg.oddjob.designer.elements.schedule.ScheduleFactory

public class ScheduleFactory
extends java.lang.Object

A factory which can create DesignComponents and DesignElements.


Field Summary
static org.apache.log4j.Logger logger
           
 
Constructor Summary
ScheduleFactory()
           
 
Method Summary
static java.lang.String[] allTypes()
           
static SimpleHierarchy childActions(java.lang.Object subject, java.lang.String element)
          Returns a hierarchy of ComponentAction objects which can be used in a hierarchical menu structure for creating and adding components.
static ObjectFactory componentFactory()
          Creates a ObjectFactory which creates components.
static DesignComponent createComponent(java.lang.String name)
          Create a component for the given name.
static DesignElementType createType(java.lang.String name)
          Creat a type for the given type name.
static java.lang.String[] supportedTypes(java.lang.Class type)
          Return supported child type for a given type.
static ObjectFactory valueFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.apache.log4j.Logger logger
Constructor Detail

ScheduleFactory

public ScheduleFactory()
Method Detail

childActions

public static SimpleHierarchy childActions(java.lang.Object subject,
                                           java.lang.String element)
Returns a hierarchy of ComponentAction objects which can be used in a hierarchical menu structure for creating and adding components.

Parameters:
subject - The object the new component will be added to.
element - The element name the child appears under.
Returns:
A SimpleHierarchy of ComponentAction objects.

createComponent

public static DesignComponent createComponent(java.lang.String name)
                                       throws ArooaException
Create a component for the given name.

Parameters:
name - The name of the tag identifiying the component.
Returns:
A created component. Never null.
Throws:
ArooaException - If the component can't be created.

componentFactory

public static ObjectFactory componentFactory()
Creates a ObjectFactory which creates components.

Returns:
An ObjectFactory.

supportedTypes

public static java.lang.String[] supportedTypes(java.lang.Class type)
Return supported child type for a given type.

Parameters:
type - The type.
Returns:
A list of supported types.

allTypes

public static java.lang.String[] allTypes()

createType

public static DesignElementType createType(java.lang.String name)
                                    throws ArooaException
Creat a type for the given type name.

Parameters:
name - The type name.
Returns:
The created type.
Throws:
ArooaException - If the type can't be created.

valueFactory

public static ObjectFactory valueFactory()