|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.tuberlin.cs.cis.ocl.example.eval.Person
Represents a Person contained in the Example Class Diagram of OCL1.5 chapter 6.2.2.
Field Summary | |
java.lang.Integer |
age
Represents the attribute age |
Bank |
bankA
Represents the association end bank |
java.util.Date |
birthdate
Represents the attribute birthdate |
java.util.Collection |
employerA
Represents the association end employer |
java.lang.String |
firstName
Represents the attribute firstName |
Person |
husbandA
Represents the association end husband |
java.lang.Boolean |
isMarried
Represents the attribute isMarried |
java.lang.Boolean |
isUnemployed
Represents the attribute isUnemployed |
java.util.Collection |
jobA
Represents the association end job |
java.lang.String |
lastName
Represents the attribute lastName |
java.util.Collection |
managedCompaniesA
Represents the association end managedCompanies |
Marriage |
marriageA
Represents the association end marriage |
Sex |
sex
Represents the attribute sex |
Person |
wifeA
Represents the association end wife |
Constructor Summary | |
Person()
Constructs a Person. |
|
Person(java.lang.Boolean isMarried,
java.lang.Boolean isUnemployed,
java.util.Date birthDate,
java.lang.Integer age,
java.lang.String firstName,
java.lang.String lastName,
Sex sex)
Constructs a Person. |
|
Person(java.lang.String firstName,
java.lang.String lastName)
Constucts a Person by first and last name. |
Method Summary | |
void |
birthdayHappens()
Represents the operation Person.birthdayHappens() |
boolean |
equals(java.lang.Object o)
|
java.lang.Integer |
income(java.util.Date date)
Represents the operation Person.income(Date) |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.Boolean isMarried
public java.lang.Boolean isUnemployed
public java.util.Date birthdate
public java.lang.Integer age
public java.lang.String firstName
public java.lang.String lastName
public Sex sex
public Bank bankA
public java.util.Collection managedCompaniesA
public java.util.Collection employerA
public java.util.Collection jobA
public Person wifeA
public Person husbandA
public Marriage marriageA
Constructor Detail |
public Person(java.lang.String firstName, java.lang.String lastName)
firstName
- the first name of the PersonlastName
- the last name of the Personpublic Person(java.lang.Boolean isMarried, java.lang.Boolean isUnemployed, java.util.Date birthDate, java.lang.Integer age, java.lang.String firstName, java.lang.String lastName, Sex sex)
public Person()
Method Detail |
public java.lang.Integer income(java.util.Date date)
public void birthdayHappens()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |