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

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

public class Sex
extends java.lang.Object

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

Author:
fchabar
See Also:
OCL 1.5 Standard

Field Summary
static Sex female
          Represents the enumeration female
static Sex male
          Represents the enumeration male
 
Constructor Summary
Sex(int sex)
          Constructs a Sex Enumeration.
 
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

male

public static Sex male
Represents the enumeration male


female

public static Sex female
Represents the enumeration female

Constructor Detail

Sex

public Sex(int sex)
Constructs a Sex Enumeration.

Method Detail

equals

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

toString

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