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

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

public class Marriage
extends java.lang.Object

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

Author:
fchabar
See Also:
OCL 1.5 Standard

Field Summary
 java.util.Date date
          Represents the attribute date
 Person husbandA
          Represents the association end husband
 java.lang.String place
          Represents the attribute place
 Person wifeA
          Represents the association end wife
 
Constructor Summary
Marriage()
          Constructs a Marriage
Marriage(java.lang.String place, java.util.Date date)
          Constructs a Marriage by place and date.
 
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

place

public java.lang.String place
Represents the attribute place


date

public java.util.Date date
Represents the attribute date


wifeA

public Person wifeA
Represents the association end wife


husbandA

public Person husbandA
Represents the association end husband

Constructor Detail

Marriage

public Marriage(java.lang.String place,
                java.util.Date date)
Constructs a Marriage by place and date.


Marriage

public Marriage()
Constructs a Marriage

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