Library | Package Java Toolkit

Class UnitDimensionConversion

package com.ptc.pfc.pfcUnits;

public class UnitDimensionConversion
  implements jxenum



Description

This enumerated type lists different options for conversion of dimensions while changing the principal unit system of a model.



Field Summary
static final int_UNITCONVERT_SAME_DIMS
    Integer value of enum value "UNITCONVERT_SAME_DIMS"
     This specifies that unit conversion will occur by interpreting the unit value in the new unit system. e.g. 1 inch = 1 mm
static final UnitDimensionConversionUNITCONVERT_SAME_DIMS
    Object value of enum value "UNITCONVERT_SAME_DIMS"
     This specifies that unit conversion will occur by interpreting the unit value in the new unit system. e.g. 1 inch = 1 mm
static final int_UNITCONVERT_SAME_SIZE
    Integer value of enum value "UNITCONVERT_SAME_SIZE"
     This specifies that unit conversion will occur by converting the unit value in the new unit system. e.g. 1 inch = 25.4 mm
static final UnitDimensionConversionUNITCONVERT_SAME_SIZE
    Object value of enum value "UNITCONVERT_SAME_SIZE"
     This specifies that unit conversion will occur by converting the unit value in the new unit system. e.g. 1 inch = 25.4 mm
static final int_UnitDimensionConversion_null
    Enum null value.

Method Summary
static UnitDimensionConversionFromInt (int value)
    Creates enum object from an integer.
static UnitDimensionConversionFromInt (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 UnitDimensionConversionFromInt (int value)


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


FromInt

static UnitDimensionConversionFromInt (Integer value)


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