|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.designwizard.design.Design
public class Design
Field Summary |
---|
Fields inherited from interface org.designwizard.design.DesignIF |
---|
FIELD_IDENTIFIER, METHOD_IDENTIFIER, STATIC_IDENTIFIER |
Constructor Summary | |
---|---|
Design()
Constructs a new Design. |
Method Summary | |
---|---|
void |
addClassExtractedFromCode(java.lang.String className)
Adds a class that was extracted from code. |
void |
addRelation(Relation.TypesOfRelation typeOfRelation,
java.lang.String callerName,
java.lang.String calledName)
Adds a new relation in the design. |
boolean |
containsEntity(java.lang.String entityName)
Verifies if this design has a entity with the parameter entityName. |
java.util.Set<ClassNode> |
getAllClasses()
Returns a Set of ClassNode objects representing all classes extracted. |
java.util.Set<ClassNode> |
getAllClassesFromCode()
Returns all the classes from the application's code |
java.util.Set<MethodNode> |
getAllMethods()
|
java.util.Set<PackageNode> |
getAllPackagesFromCode()
|
ClassNode |
getClass(java.lang.String className)
Returns a ClassEntity represented by the specified className. |
Entity |
getEntity(java.lang.String entityName)
Method that return the entity with the specified name. |
FieldNode |
getField(java.lang.String fieldName)
Returns a Field with the specified name. |
MethodNode |
getMethod(java.lang.String methodName)
Returns a Method with the specified name. |
PackageNode |
getPackage(java.lang.String fullyQualifiedNamePackage)
|
void |
packageExtracted(java.lang.String entity)
|
void |
resolveDependences()
Resolve all dependences between entities after extraction. |
void |
setParameters(java.lang.String method,
java.lang.String parameters)
|
void |
setReturnType(java.lang.String method,
java.lang.String returnType)
Put the retunrType value on return type of the specified method. |
void |
setVisibility(java.lang.String entityName,
Modifier visibility)
Returns a set containing all classes extracted. |
java.lang.String |
toString()
A String representation for this Design. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Design()
Method Detail |
---|
public void addClassExtractedFromCode(java.lang.String className)
addClassExtractedFromCode
in interface DesignIF
className
- the name of the class extracted.public void packageExtracted(java.lang.String entity)
packageExtracted
in interface DesignIF
public void addRelation(Relation.TypesOfRelation typeOfRelation, java.lang.String callerName, java.lang.String calledName)
addRelation
in interface DesignIF
relation
- the relation to be added.
pattern:
- Methods: M:Class.method(int,double,...)
- Fields: F:Class.fieldName
- Class: package.subpackage.ClassName
ps1.: Varargs must be describe as an array.
ps2.: It is not necessary to describe generics.
ps3.: put S: for static methods. Example: S:M:Main.main(String[])public void resolveDependences()
DesignIF
resolveDependences
in interface DesignIF
public boolean containsEntity(java.lang.String entityName)
containsEntity
in interface DesignIF
entityName
- the name of the entity.
Design
or false if not.public void setVisibility(java.lang.String entityName, Modifier visibility) throws InexistentEntityException
setVisibility
in interface DesignIF
InexistentEntityException
public void setReturnType(java.lang.String method, java.lang.String returnType) throws InexistentEntityException
DesignIF
setReturnType
in interface DesignIF
InexistentEntityException
public void setParameters(java.lang.String method, java.lang.String parameters) throws InexistentEntityException
setParameters
in interface DesignIF
InexistentEntityException
public Entity getEntity(java.lang.String entityName) throws InexistentEntityException
getEntity
in interface DesignIF
entityName
- the name of the entity to be looked for.
InexistentEntityException
public ClassNode getClass(java.lang.String className) throws InexistentEntityException
getClass
in interface DesignIF
className
- - the name of the class.
InexistentEntityException
public MethodNode getMethod(java.lang.String methodName) throws InexistentEntityException
getMethod
in interface DesignIF
methodName
- the name of the method.
InexistentEntityException
public FieldNode getField(java.lang.String fieldName) throws InexistentEntityException
getField
in interface DesignIF
fieldName
- the name of the field.
InexistentEntityException
public java.util.Set<ClassNode> getAllClassesFromCode()
getAllClassesFromCode
in interface DesignIF
public java.util.Set<ClassNode> getAllClasses()
Set
of ClassNode
objects representing all classes extracted. This includes those
classes from java and libraries used by the code extracted. Realize that classes from java are not entirely extracted.
If you need only the classes from your source code, you must call the designwizard.design.Design#getAllClassesFromCode()
.
Set
of ClassNode
objects representing all the classes extracted.public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<PackageNode> getAllPackagesFromCode()
getAllPackagesFromCode
in interface DesignIF
public PackageNode getPackage(java.lang.String fullyQualifiedNamePackage) throws InexistentEntityException
getPackage
in interface DesignIF
InexistentEntityException
public java.util.Set<MethodNode> getAllMethods()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |