int getObjectID ( Object element ) { if ( element == null ) return NULL ; else if ( Cell . class . isInstance ( element ) ) return CELL ; else if ( Table . class . isInstance ( element ) ) return TABLE ; return - 1 ; }
Returns the type - id of an Object .