|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModelEditor
ModelEditor is a interface to edit AnalyzeModel. Edition is made trough it to make it possible to implement undo/redo in the future.
Method Summary | |
---|---|
void |
addAttribute(java.lang.String entityName,
java.lang.String attributeName)
Adds attribute to the entity. |
void |
addChild(java.lang.String entityName,
java.lang.String childEntity)
Adds child to the entity. |
void |
addEntity(java.lang.String name)
Adds an entity to the model. |
void |
addEntityInfluenceByMethod(java.lang.String entityName,
java.lang.String methodName,
java.lang.String influencedEntity)
Adds an influence between entity's method and the given entity. |
void |
addMethod(java.lang.String entityName,
java.lang.String methodName)
Add method to the entity. |
void |
addParent(java.lang.String entityName,
java.lang.String parentEntity)
Adds parent to the entity. |
void |
changeEntityName(java.lang.String oldName,
java.lang.String newName)
Changes the name of the entity. |
void |
changeMethodName(java.lang.String entityName,
java.lang.String methodOldName,
java.lang.String methodNewName)
Changes method name. |
void |
clearModel()
Clears model and makes it empty. |
boolean |
containsAttribute(java.lang.String entityName,
java.lang.String attributeName)
Checks wheter the entity contains the attribute or not. |
boolean |
containsEntity(java.lang.String entityName)
Does the model contain the entity? |
boolean |
containsMethod(java.lang.String entityName,
java.lang.String methodName)
Checks if the given method exists in the entity |
java.lang.String |
getAttributeFromCardinal(java.lang.String entityName,
java.lang.String attributeName)
Gets from part of the cardinality of the attribute relation. |
java.util.Set<java.lang.String> |
getAttributeNames(java.lang.String entityName)
Returns the attributes of the entity. |
java.lang.String |
getAttributeToCardinal(java.lang.String entityName,
java.lang.String attributeName)
Gets to part of the cardinality of the attribute relation. |
java.util.Set<java.lang.String> |
getChildren(java.lang.String entityName)
Returns the names of the entity's children. |
java.util.Set<java.lang.String> |
getEntitiesInfluencedByMethod(java.lang.String entityName,
java.lang.String methodName)
Returns set of entities that are refered by methods in the model. |
java.util.Set<java.lang.String> |
getEntityNames()
|
java.util.Set<java.lang.String> |
getMethodNames(java.lang.String entityName)
Returns the names of the entity's methods. |
java.util.Set<java.lang.String> |
getParents(java.lang.String entityName)
Returns the parents of the entity. |
void |
merge(AnalyzeModel model)
Merges given AnalyzeModel to the model that this editor modifies. |
void |
removeAllChildren(java.lang.String entityName)
Removes all the children from the entity. |
void |
removeAllParents(java.lang.String entityName)
Removes all the parents of the entity. |
void |
removeAttribute(java.lang.String entityName,
java.lang.String attributeName)
Removes attribute from the entity. |
void |
removeChild(java.lang.String entityName,
java.lang.String childEntity)
Removes given child from the entity. |
void |
removeEntity(java.lang.String name)
Removes entity from model. |
void |
removeEntityInfluenceByMethod(java.lang.String entityName,
java.lang.String methodName,
java.lang.String influencedEntity)
Removes influnce between entity's method and the given entity. |
void |
removeMethod(java.lang.String entityName,
java.lang.String methodName)
Removes method from the entity. |
void |
removeParent(java.lang.String entityName,
java.lang.String parentEntity)
Removes given parent from the entity. |
void |
setAttributeFromCardinal(java.lang.String entityName,
java.lang.String attributeName,
java.lang.String cardinal)
Sets the cardinality on the entitys side. |
void |
setAttributeToCardinal(java.lang.String entityName,
java.lang.String attributeName,
java.lang.String cardinal)
Sets the cardinality on attributes side. |
Method Detail |
---|
void clearModel()
java.util.Set<java.lang.String> getEntityNames()
void addEntity(java.lang.String name)
name
- The name of the entity.void removeEntity(java.lang.String name)
name
- The name of the entity.void changeEntityName(java.lang.String oldName, java.lang.String newName)
oldName
- The entity name that is going to be changed.newName
- The new name for that entity.boolean containsEntity(java.lang.String entityName)
entityName
- The name of the entity which existence is checked.
void addParent(java.lang.String entityName, java.lang.String parentEntity)
entityName
- The name of the child entity.parentEntity
- The name of the parent entity.void removeParent(java.lang.String entityName, java.lang.String parentEntity)
entityName
- The name of the child entity.parentEntity
- The name of the parent entity.void removeAllParents(java.lang.String entityName)
entityName
- the name of the entity.java.util.Set<java.lang.String> getParents(java.lang.String entityName)
entityName
- The name of the entity.
void addChild(java.lang.String entityName, java.lang.String childEntity)
entityName
- The name of parent entity.childEntity
- The name of the child.void removeChild(java.lang.String entityName, java.lang.String childEntity)
entityName
- The entity.childEntity
- The child to be removed.void removeAllChildren(java.lang.String entityName)
entityName
- java.util.Set<java.lang.String> getChildren(java.lang.String entityName)
entityName
- The name of the entity.
void addMethod(java.lang.String entityName, java.lang.String methodName)
entityName
- The name of the entity.methodName
- The name of the method.void removeMethod(java.lang.String entityName, java.lang.String methodName)
entityName
- The entity which owns the method.methodName
- The name of the method.void changeMethodName(java.lang.String entityName, java.lang.String methodOldName, java.lang.String methodNewName)
entityName
- The name of the entity.methodOldName
- methodNewName
- boolean containsMethod(java.lang.String entityName, java.lang.String methodName)
entityName
- The name of the entitymethodName
- The name of the method.
java.util.Set<java.lang.String> getMethodNames(java.lang.String entityName)
entityName
- The name of the entity
java.util.Set<java.lang.String> getEntitiesInfluencedByMethod(java.lang.String entityName, java.lang.String methodName)
entityName
- The name of the entity that owns the method.methodName
- The methods name.
void addEntityInfluenceByMethod(java.lang.String entityName, java.lang.String methodName, java.lang.String influencedEntity)
entityName
- The name of the entity that owns the method.methodName
- The methods name.influencedEntity
- getEntitiesInfluencedByMethod(String, String)
void removeEntityInfluenceByMethod(java.lang.String entityName, java.lang.String methodName, java.lang.String influencedEntity)
entityName
- The name of the entity that owns the method.methodName
- The methods name.influencedEntity
- The name of the method that is influenced by the given method.getEntitiesInfluencedByMethod(String, String)
void addAttribute(java.lang.String entityName, java.lang.String attributeName)
entityName
- The name of the entity.attributeName
- The name of the attribute.void removeAttribute(java.lang.String entityName, java.lang.String attributeName)
entityName
- The name of the entity.attributeName
- The name of the attribute.boolean containsAttribute(java.lang.String entityName, java.lang.String attributeName)
entityName
- The name of the entity.attributeName
- The name of the attribute.
java.lang.String getAttributeFromCardinal(java.lang.String entityName, java.lang.String attributeName)
entityName
- The name of the entity.attributeName
- The name of the attibute.
java.lang.String getAttributeToCardinal(java.lang.String entityName, java.lang.String attributeName)
entityName
- The name of the entity.attributeName
- The name of the attibute.
void setAttributeFromCardinal(java.lang.String entityName, java.lang.String attributeName, java.lang.String cardinal)
entityName
- The name of the entity.attributeName
- The name of the attibute.cardinal
- The cardinality value.void setAttributeToCardinal(java.lang.String entityName, java.lang.String attributeName, java.lang.String cardinal)
entityName
- The name of the entity.attributeName
- The name of the attibute.cardinal
- The cardinality value.java.util.Set<java.lang.String> getAttributeNames(java.lang.String entityName)
entityName
- The name of the entity.
void merge(AnalyzeModel model)
model
- The analyze model beign merged.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |