net.jbeans.j3d.data
Class DataType

java.lang.Object
  extended bynet.jbeans.j3d.data.DataType

public class DataType
extends java.lang.Object

DataType defines privitive data type and few array related methods.

Version:
$Revision: 1.3 $
Author:
Masahiro Takatsuka (masa@jbeans.net)

Field Summary
static int BIT
           
static int BOOLEAN
           
static int CHAR
           
static int DOUBLE
           
static int FLOAT
           
static int INT
           
static int LONG
           
static int POLY_DATA
           
static int SHORT
           
static int STRING
           
static int VOID
           
 
Constructor Summary
protected DataType()
           
 
Method Summary
protected static void checkLength(int len1, int len2)
           
static int getArrayDimension(java.lang.Class class1)
           
static int getArrayDimension(java.lang.Object obj)
           
static java.lang.Class getArrayType(java.lang.Class class1)
           
static java.lang.Class getArrayType(java.lang.Object obj)
           
static boolean isArray(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VOID

public static final int VOID
See Also:
Constant Field Values

BIT

public static final int BIT
See Also:
Constant Field Values

CHAR

public static final int CHAR
See Also:
Constant Field Values

SHORT

public static final int SHORT
See Also:
Constant Field Values

INT

public static final int INT
See Also:
Constant Field Values

LONG

public static final int LONG
See Also:
Constant Field Values

FLOAT

public static final int FLOAT
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
See Also:
Constant Field Values

POLY_DATA

public static final int POLY_DATA
See Also:
Constant Field Values
Constructor Detail

DataType

protected DataType()
Method Detail

isArray

public static boolean isArray(java.lang.Object obj)

getArrayDimension

public static int getArrayDimension(java.lang.Class class1)

getArrayDimension

public static int getArrayDimension(java.lang.Object obj)

getArrayType

public static java.lang.Class getArrayType(java.lang.Class class1)

getArrayType

public static java.lang.Class getArrayType(java.lang.Object obj)

checkLength

protected static void checkLength(int len1,
                                  int len2)
                           throws java.lang.IndexOutOfBoundsException
Throws:
java.lang.IndexOutOfBoundsException


Copyright © 1995-2004 net.jbeans. All Rights Reserved.