ch.uzh.ifi.attempto.ape
Enum Gender

java.lang.Object
  extended by java.lang.Enum<Gender>
      extended by ch.uzh.ifi.attempto.ape.Gender
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Gender>

public enum Gender
extends java.lang.Enum<Gender>

This enumeration lists the possible gender types for nouns and proper names.

Author:
Tobias Kuhn

Enum Constant Summary
FEMININE
          Feminine gender.
HUMAN
          Human gender.
MASCULINE
          Masculine gender.
NEUTRAL
          Neutral gender.
UNDEF
          Undefined gender.
 
Method Summary
 java.lang.String toString()
          Returns the Prolog atom representation of the type of gender.
static Gender valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Gender[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNDEF

public static final Gender UNDEF
Undefined gender.


NEUTRAL

public static final Gender NEUTRAL
Neutral gender.


HUMAN

public static final Gender HUMAN
Human gender.


MASCULINE

public static final Gender MASCULINE
Masculine gender.


FEMININE

public static final Gender FEMININE
Feminine gender.

Method Detail

values

public static Gender[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Gender c : Gender.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Gender valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Returns the Prolog atom representation of the type of gender.

Overrides:
toString in class java.lang.Enum<Gender>


Copyright 2008-2010, Attempto Group, University of Zurich (see http://attempto.ifi.uzh.ch)