MPXJ: Microsoft Project Exchange

net.sf.mpxj
Enum ViewType

java.lang.Object
  extended by java.lang.Enum<ViewType>
      extended by net.sf.mpxj.ViewType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ViewType>, MpxjEnum

public enum ViewType
extends java.lang.Enum<ViewType>
implements MpxjEnum

This class represents the enumeration of the valid types of view.


Enum Constant Summary
CALENDAR
           
GANTT_CHART
           
NETWORK_DIAGRAM
           
RELATIONSHIP_DIAGRAM
           
RESOURCE_FORM
           
RESOURCE_GRAPH
           
RESOURCE_NAME_FORM
           
RESOURCE_SHEET
           
RESOURCE_USAGE
           
TASK_DETAILS_FORM
           
TASK_FORM
           
TASK_NAME_FORM
           
TASK_SHEET
           
TASK_USAGE
           
UNKNOWN
           
 
Method Summary
static ViewType getInstance(int type)
          Retrieve an instance of the enum based on its int value.
static ViewType getInstance(java.lang.Number type)
          Retrieve an instance of the enum based on its int value.
 java.lang.String getName()
          Retrieve the name of this enum.
 int getValue()
          Accessor method used to retrieve the numeric representation of the enum.
 java.lang.String toString()
          
static ViewType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ViewType[] 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

UNKNOWN

public static final ViewType UNKNOWN

GANTT_CHART

public static final ViewType GANTT_CHART

NETWORK_DIAGRAM

public static final ViewType NETWORK_DIAGRAM

RELATIONSHIP_DIAGRAM

public static final ViewType RELATIONSHIP_DIAGRAM

TASK_FORM

public static final ViewType TASK_FORM

TASK_SHEET

public static final ViewType TASK_SHEET

RESOURCE_FORM

public static final ViewType RESOURCE_FORM

RESOURCE_SHEET

public static final ViewType RESOURCE_SHEET

RESOURCE_GRAPH

public static final ViewType RESOURCE_GRAPH

TASK_DETAILS_FORM

public static final ViewType TASK_DETAILS_FORM

TASK_NAME_FORM

public static final ViewType TASK_NAME_FORM

RESOURCE_NAME_FORM

public static final ViewType RESOURCE_NAME_FORM

CALENDAR

public static final ViewType CALENDAR

TASK_USAGE

public static final ViewType TASK_USAGE

RESOURCE_USAGE

public static final ViewType RESOURCE_USAGE
Method Detail

values

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

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

valueOf

public static ViewType 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

getInstance

public static ViewType getInstance(int type)
Retrieve an instance of the enum based on its int value.

Parameters:
type - int type
Returns:
enum instance

getInstance

public static ViewType getInstance(java.lang.Number type)
Retrieve an instance of the enum based on its int value.

Parameters:
type - int type
Returns:
enum instance

getValue

public int getValue()
Accessor method used to retrieve the numeric representation of the enum.

Specified by:
getValue in interface MpxjEnum
Returns:
int representation of the enum

getName

public java.lang.String getName()
Retrieve the name of this enum.

Returns:
enum name

toString

public java.lang.String toString()

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


Copyright © 2000-2014 Packwood Software. All Rights Reserved.