pl.mbdev.openstage
Enum IppPhoneNumber.NumberType

java.lang.Object
  extended by java.lang.Enum<IppPhoneNumber.NumberType>
      extended by pl.mbdev.openstage.IppPhoneNumber.NumberType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IppPhoneNumber.NumberType>
Enclosing class:
IppPhoneNumber

public static enum IppPhoneNumber.NumberType
extends java.lang.Enum<IppPhoneNumber.NumberType>

Defines possible options of how to display a number attached to a IppPhoneNumber.

Author:
Mateusz Bysiek

Enum Constant Summary
BOTH
          Name and the number of the contact are displayed.
NAME
          Only the name of the contact is displayed.
NUMBER
          Only the number is displayed.
 
Method Summary
static IppPhoneNumber.NumberType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IppPhoneNumber.NumberType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NUMBER

public static final IppPhoneNumber.NumberType NUMBER
Only the number is displayed.


NAME

public static final IppPhoneNumber.NumberType NAME
Only the name of the contact is displayed.


BOTH

public static final IppPhoneNumber.NumberType BOTH
Name and the number of the contact are displayed.

Method Detail

values

public static IppPhoneNumber.NumberType[] 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 (IppPhoneNumber.NumberType c : IppPhoneNumber.NumberType.values())
    System.out.println(c);

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

valueOf

public static IppPhoneNumber.NumberType 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