Library | Package Java Toolkit

Class UnitType

package com.ptc.pfc.pfcBase;

public class UnitType
  implements jxenum



Description

This enumerated type represents the type of units.



Field Summary
static final int_UNIT_LENGTH
    Integer value of enum value "UNIT_LENGTH"
    Length based units.
static final UnitTypeUNIT_LENGTH
    Object value of enum value "UNIT_LENGTH"
    Length based units.
static final int_UNIT_MASS
    Integer value of enum value "UNIT_MASS"
    Mass based units.
static final UnitTypeUNIT_MASS
    Object value of enum value "UNIT_MASS"
    Mass based units.
static final int_UNIT_FORCE
    Integer value of enum value "UNIT_FORCE"
    Force based units.
static final UnitTypeUNIT_FORCE
    Object value of enum value "UNIT_FORCE"
    Force based units.
static final int_UNIT_TIME
    Integer value of enum value "UNIT_TIME"
    Time based units.
static final UnitTypeUNIT_TIME
    Object value of enum value "UNIT_TIME"
    Time based units.
static final int_UNIT_TEMPERATURE
    Integer value of enum value "UNIT_TEMPERATURE"
    Temperature based units.
static final UnitTypeUNIT_TEMPERATURE
    Object value of enum value "UNIT_TEMPERATURE"
    Temperature based units.
static final int_UNIT_ANGLE
    Integer value of enum value "UNIT_ANGLE"
    Angle based units.
static final UnitTypeUNIT_ANGLE
    Object value of enum value "UNIT_ANGLE"
    Angle based units.
static final int_UnitType_null
    Enum null value.

Method Summary
static UnitTypeFromInt (int value)
    Creates enum object from an integer.
static UnitTypeFromInt (Integer value)
    Creates enum object from an integer object.
intgetValue ()
    Returns enum object value as an integer.

Method Detail

getValue

intgetValue ()


    Returns enum object value as an integer.
Returns:
Integer enum value.


FromInt

static UnitTypeFromInt (int value)


    Creates enum object from an integer.
Parameters:
value
Input integer value.
Returns:
Enum value object.


FromInt

static UnitTypeFromInt (Integer value)


    Creates enum object from an integer object.
Parameters:
value
Input integer object.
Returns:
Enum value object.