|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.palamedes.gdl.core.model.utils.AbstractFactory
public abstract class AbstractFactory
The AbstractFactory class is the base class for all factories within Palamedes. It provides the management of descriptions for external classes.
Nested Class Summary | |
---|---|
class |
AbstractFactory.FactoryDescription
Container class for descriptions of classes to be used by any factory. |
Field Summary | |
---|---|
protected java.util.List<AbstractFactory.FactoryDescription> |
descriptions
Internal list of all class descriptions |
Constructor Summary | |
---|---|
AbstractFactory()
|
Method Summary | |
---|---|
void |
addDescription(AbstractFactory.FactoryDescription description)
This method adds the given description to the factory. |
void |
addDescription(java.lang.String name,
java.lang.String className,
java.lang.String description)
This method uses the given parameter to create a FactoryDescription object which then will be added to the factory. |
protected java.lang.Object |
createInstance(AbstractFactory.FactoryDescription description)
This method creates an instance of a class based on the given description. |
protected java.lang.Object |
createInstance(java.lang.String className)
This method creates an instance of a class based on the given class name. |
protected AbstractFactory.FactoryDescription |
getDescriptionByName(java.lang.String name)
This method returns the description with name \a name. |
java.util.List<AbstractFactory.FactoryDescription> |
getDescriptions()
This method returns the description list of the factory. |
void |
removeDescription(AbstractFactory.FactoryDescription description)
This method removes the given description from the factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<AbstractFactory.FactoryDescription> descriptions
Constructor Detail |
---|
public AbstractFactory()
Method Detail |
---|
public void addDescription(AbstractFactory.FactoryDescription description)
description
- public void addDescription(java.lang.String name, java.lang.String className, java.lang.String description)
name
- className
- description
- public void removeDescription(AbstractFactory.FactoryDescription description)
description
- public java.util.List<AbstractFactory.FactoryDescription> getDescriptions()
protected java.lang.Object createInstance(AbstractFactory.FactoryDescription description)
description
- protected java.lang.Object createInstance(java.lang.String className)
className
- protected AbstractFactory.FactoryDescription getDescriptionByName(java.lang.String name)
name
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |