Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 2987 invoked by uid 98); 2 Jan 2003 16:00:36 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 2959 invoked from network); 2 Jan 2003 16:00:34 -0000 Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 2 Jan 2003 16:00:34 -0000 Received: (qmail 19987 invoked by uid 500); 2 Jan 2003 15:59:17 -0000 Received: (qmail 19978 invoked from network); 2 Jan 2003 15:59:17 -0000 Received: from pcow058o.blueyonder.co.uk (HELO blueyonder.co.uk) (195.188.53.98) by daedalus.apache.org with SMTP; 2 Jan 2003 15:59:17 -0000 Received: from compaqe300 ([62.31.121.11]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.757.75); Thu, 2 Jan 2003 15:59:18 +0000 From: "Howard Miller" To: "Jakarta Commons Users List" Date: Thu, 02 Jan 2003 15:59:20 -0000 MIME-Version: 1.0 Subject: Re: Newbie: Digester "clazz" ??? Reply-to: me@howardmiller.co.uk Message-ID: <3E1461D8.24033.568A8F6@localhost> Priority: normal References: <3E143BEE.14673.4D48E3A@localhost> In-reply-to: X-mailer: Pegasus Mail for Windows (v4.02) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks! It occurred to me after posting the question (in the supermarket in fact), that it was a *really* stupid question! I see what the .class is for now. I just hadn't come across it before. HM On 2 Jan 2003 at 8:28, Henri Yandell wrote: > > It's a feature of Java. You can specify the java.lang.Class object for a > class as a literal: java.lang.String.class or > org.apache.log4j.Log.class etc. These are then automatically turned into > the Class object [as found through getClass() on an object of that class]. > > As 'class' is a reserved word, people often use 'clss' or 'clazz' as a > variable name for it. > > My apologies if I've not understood the question, > > Hen > > On Thu, 2 Jan 2003, Howard Miller wrote: > > > Hi, > > > > Sorry this is going to be a stupid newbie question.... > > > > In the Javadocs for the Digester components, a number of the rule > > setting methods have parameters in the form "java.lang.Class > > clazz". This has got me worried, as I don't understand what is going > > on here. My expectation is that if the rule just created a new object it > > would be "java.lang.Object object", so I have obviously failed to > > understand something. What are the ZZs all about? > > > > Furthermore an example I found the The O'Reilly site used this > > method with a (actual) parameter looking like "Catalog.class", I > > haven't seen the ".class" method used before, and I'm not that new > > to Java!! > > > > What's going on here? Help appreciated. > > > > Howard Miller > > > > -- > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > >