de.tuberlin.cs.cis.ocl.example.eval
Class Job

java.lang.Object
  |
  +--de.tuberlin.cs.cis.ocl.example.eval.Job

public class Job
extends java.lang.Object

Represents a Job contained in the Example Class Diagram of the OCL1.5 chapter 6.2.2.

Author:
fchabar
See Also:
OCL 1.5 Standard

Field Summary
 Person employeeA
          Represents the association end employee
 Company employerA
          Represents the association end employer
 java.lang.Integer salary
          Represents the attribute salary
 java.util.Date startDate
          Represents the attribute startDate
 java.lang.String title
          Represents the attribute title
 
Constructor Summary
Job()
          Constructs a job.
Job(java.lang.String title, java.util.Date startDate, java.lang.Integer salary)
          Constructs a Job by title, starte date and salary.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

title

public java.lang.String title
Represents the attribute title


startDate

public java.util.Date startDate
Represents the attribute startDate


salary

public java.lang.Integer salary
Represents the attribute salary


employeeA

public Person employeeA
Represents the association end employee


employerA

public Company employerA
Represents the association end employer

Constructor Detail

Job

public Job(java.lang.String title,
           java.util.Date startDate,
           java.lang.Integer salary)
Constructs a Job by title, starte date and salary.


Job

public Job()
Constructs a job.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object