|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.patterncoder.pattern.PatternClass
public class PatternClass
PatternClass is used to create a model object of a class which is to be implemented as part of design pattern.
Constructor Summary | |
---|---|
PatternClass()
Creates a new instance of PatternClass |
|
PatternClass(java.lang.String id,
java.lang.String compType,
java.lang.String template,
java.lang.String description,
java.lang.String name)
Creates a new instance of PatternClass |
Method Summary | |
---|---|
void |
addDependancy(java.lang.String depId)
The PatternClass object maintains a List of other components within the pattern that it must know about during its implementation. |
java.lang.String |
getCompType()
Returns the component type. |
java.util.List<java.lang.String> |
getDependants()
Returns the List of dependants for this component. |
java.lang.String |
getDescription()
Returns a string description of the current component. |
int |
getId()
Returns the id of the component. |
java.lang.String |
getName()
Returns the name of the component object. |
java.lang.String |
getTemplate()
Gets the template file(.TMPL), which is the basis of the class implementation. |
void |
setClassName(java.lang.String name)
Sets the name of the class. |
void |
setCompType(java.lang.String type)
Sets the Component type i.e class. |
void |
setDescription(java.lang.String description)
Adds a description of the class to the object. |
void |
setId(java.lang.String id)
Sets an ID value to the class. |
void |
setTemplate(java.lang.String template)
Sets the template file(.TMPL), which is the basis of the class implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatternClass()
public PatternClass(java.lang.String id, java.lang.String compType, java.lang.String template, java.lang.String description, java.lang.String name)
id
- The ID number of the component.template
- The path to the template file used to generate the component.description
- Component description.name
- The name of the component.Method Detail |
---|
public void setTemplate(java.lang.String template)
template
- The name of the template.public java.lang.String getTemplate()
public void setDescription(java.lang.String description)
description
- description The description of the classes purpose.public java.lang.String getDescription()
public void setClassName(java.lang.String name)
This will automatically be set to the defaultName value supplied in the Pattern source file. If unchanged before complete implementation, the class will be implemented with this default name.
name
- The name of the class.public java.lang.String getName()
public int getId()
public void setId(java.lang.String id)
An id value is required so that any associations between any other classes in the pattern can be made.
id
- An integer value represening the classes id.public void addDependancy(java.lang.String depId)
This method adds an id value of one of these components to that list.
depId
- The id of the component to be added to the list of dependants.public java.util.List<java.lang.String> getDependants()
public void setCompType(java.lang.String type)
type
- A string representation of the component type.public java.lang.String getCompType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |