com.businessobjects.rebean.wi
Class UnitType

java.lang.Object
  extended by com.businessobjects.rebean.wi.UnitType
All Implemented Interfaces:
java.io.Serializable

public final class UnitType
extends java.lang.Object
implements java.io.Serializable

Warning: This class is no longer functional from the SAP BusinessObjects 4.0 release onwards.

UnitType class represents all unit types that can be used.

See Also:
Unit, Serialized Form

Field Summary
static int _INCH
          int value of INCH.value()
static int _MILLIMETER
          int value of MILLIMETER.value()
static UnitType INCH
          Represents the inch unity.
static UnitType MILLIMETER
          Represents the millimeter unity.
 
Method Summary
static UnitType fromInt(int value)
          Returns a UnitType instance corresponding to value, or null when value does not correspond to any UnitType
 java.lang.String toString()
          Returns a String representation of this unit type (for debug purposes)
 int value()
          Returns the int value of this unit type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_INCH

public static final int _INCH
int value of INCH.value()

See Also:
Constant Field Values

_MILLIMETER

public static final int _MILLIMETER
int value of MILLIMETER.value()

See Also:
Constant Field Values

INCH

public static final UnitType INCH
Represents the inch unity. All sizes and coordinates will be specified in inch.


MILLIMETER

public static final UnitType MILLIMETER
Represents the millimeter unity. All sizes and coordinates will be specified in millimeters.

Method Detail

value

public int value()
Returns the int value of this unit type

Returns:
the int value of this unit type

toString

public java.lang.String toString()
Returns a String representation of this unit type (for debug purposes)

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this unit type (for debug purposes)

fromInt

public static UnitType fromInt(int value)
Returns a UnitType instance corresponding to value, or null when value does not correspond to any UnitType

Returns:
an UnitType instance corresponding to value, or null when value does not correspond to any UnitType