|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcore.IEOS
public class IEOS
| Constructor Summary | |
|---|---|
IEOS()
This method creates a new instance of IEOS |
|
| Method Summary | |
|---|---|
boolean |
closeClassDiagram()
This method is called to disable the insertion of elements into the class diagram, thus we say that the class diagram gets ``closed''. |
boolean |
closeObjectDiagram()
This method is called to disable the insertion of elements into the object diagram, thus we say that the object diagram gets ``closed''. |
boolean |
createClassDiagram()
This method is called to create a class diagram where the user can insert elements |
boolean |
createObjectDiagram()
This method is called to create an object diagram where the user can insert elements |
void |
exit()
This method removes the state structure |
java.lang.String |
getVersion()
This method returns the current version of the tool |
boolean |
insertAssociation(java.lang.String class1Name,
java.lang.String role1Name,
java.lang.String multiplicity1,
java.lang.String multiplicity2,
java.lang.String role2Name,
java.lang.String class2Name)
It inserts an association between two classes The parameters multiplicity1 and multiplicity2 can be of two forms: 1.- "a..b" with 'a' a natural number and 'b' a natural number greater than 'a' or the character '*'. |
boolean |
insertAttribute(java.lang.String className,
java.lang.String attributeName,
java.lang.String typeName)
It inserts the attribute attributeName into the class className |
boolean |
insertClass(java.lang.String className)
It inserts the class className into the class diagram |
boolean |
insertGeneralization(java.lang.String subClass,
java.lang.String superClass)
It inserts a generalization between two classes |
boolean |
insertLink(java.lang.String class1Name,
java.lang.String object1Name,
java.lang.String role1Name,
java.lang.String role2Name,
java.lang.String object2Name,
java.lang.String class2Name)
It inserts a link between two objects |
boolean |
insertObject(java.lang.String className,
java.lang.String objectName)
It inserts an object into the object diagram |
boolean |
insertOperation(java.lang.String contextClass,
java.lang.String nameOperation,
java.lang.String returnType,
java.lang.String bodyOperation,
java.lang.Object[] params)
It inserts an user defined operation |
boolean |
insertValue(java.lang.String className,
java.lang.String attributeName,
java.lang.String objectName,
java.lang.String value)
It assigns a value to the attribute of an object |
java.lang.String |
query(java.lang.String query)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IEOS()
| Method Detail |
|---|
public boolean createClassDiagram()
public boolean closeClassDiagram()
public boolean createObjectDiagram()
public boolean closeObjectDiagram()
throws java.lang.Exception
java.lang.Exceptionpublic boolean insertClass(java.lang.String className)
className - The name of the class to be inserted
public boolean insertAttribute(java.lang.String className,
java.lang.String attributeName,
java.lang.String typeName)
className - the name of the class where the attribute is to be insertedattributeName - the name of the attribute to be insertedtypeName - the type of the attribute to be inserted
public boolean insertAssociation(java.lang.String class1Name,
java.lang.String role1Name,
java.lang.String multiplicity1,
java.lang.String multiplicity2,
java.lang.String role2Name,
java.lang.String class2Name)
The parameters multiplicity1 and multiplicity2 can be of two forms:
1.- "a..b" with 'a' a natural number and 'b' a natural number greater than 'a' or the character '*'.
2.- "a" where 'a' is a natural number greater than 0 or the character '*'.
class1Name - the name of the class at one end of the associationrole1Name - the name of the role played by class1Name in the associationmultiplicity1 - the range of multiplicity allowed for instances of class1Namemultiplicity2 - the range of multiplicity allowed for instances of class1Namerole2Name - the name of the role played by class2Name in the associationclass2Name - the name of the class at the other end of the association
public boolean insertGeneralization(java.lang.String subClass,
java.lang.String superClass)
subClass - the name of the child class in the generalizationsuperClass - the name of the parent class in the generalization
public boolean insertObject(java.lang.String className,
java.lang.String objectName)
className - the name of the class of which the object objectName is an instanceobjectName - the name of the object to be inserted
public boolean insertValue(java.lang.String className,
java.lang.String attributeName,
java.lang.String objectName,
java.lang.String value)
className - the name of the class of which the object objectName is
an instanceattributeName - the name of the attribute which receives the valueobjectName - the name of the object that holds the attributevalue - the value to be assigned to the attribute
public boolean insertLink(java.lang.String class1Name,
java.lang.String object1Name,
java.lang.String role1Name,
java.lang.String role2Name,
java.lang.String object2Name,
java.lang.String class2Name)
class1Name - the name of the class at one end of the association that is going
to be instanciatedobject1Name - the name of the class1Name instance that is going to be linkedrole1Name - the name of the role played by class1Name in the association that is going to be instanciatedrole2Name - the name of the role played by class2Name in the association that is going to be instanciatedobject2Name - the name of the class2Name instance that is going to be linkedclass2Name - the name of the class at the other end of the association that is going to be instanciated
public boolean insertOperation(java.lang.String contextClass,
java.lang.String nameOperation,
java.lang.String returnType,
java.lang.String bodyOperation,
java.lang.Object[] params)
contextClass - the contextual class of the operationnameOperation - the name of the operation (all the operations declared must have a unique name)returnType - the return type of the operationbodyOperation - the OCL expression that defines the body of the operationparams - the n possible parameters of the operation.
They are declared as an Object[n].
Each position in Object[n] holds
a parameter p with the following structure:
the parameter p is declared as a String[2]
to hold the name of p at position 0,
and the type of p at position 1.
Notice that even when the operation f does not have parameters,
an Object[0] has to be created
public java.lang.String query(java.lang.String query)
throws java.lang.Exception
query - It keeps the query in a String
java.lang.Exceptionpublic void exit()
public java.lang.String getVersion()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||