What is wrong mith those classes ?

If I debug Digister in "startElement"-Methode the "localName" is rss?

Thanks
-----------------------------------------
package de.tecmath.cms.util.ejb.valueobjectholder.conf;

import java.util.*;
import org.apache.commons.digester.Digester;
import java.net.*;
import java.io.*;
/**
 * Insert the type's description here.
 * Creation date: (20.09.2001 13:06:05)
 * @author:
 */
public class ConfigurationReader extends ValueObjectEntry {
        private java.io.InputStream config;
        public Digester parser;


        public final static java.lang.String configClass =
"de.tecmath.cms.util.ejb.valueobjectholder.conf.ValueObjectHolderConf";
        public final static java.lang.String valueObjectEntryClass =
"de.tecmath.cms.util.ejb.valueobjectholder.conf.ValueObjectEntry";
        private ValueObjectHolderConf vos;
        private ValueObjectEntry voe;
/**
 * ConfigurationReader constructor comment.
 */
public ConfigurationReader() {
        super();
        this.parser = new Digester();
        this.vos = new ValueObjectHolderConf();
        this.init();
}
/**
 * Insert the method's description here.
 * Creation date: (20.09.2001 15:53:36)
 * @param vo de.tecmath.cms.util.ejb.valueobjectholder.conf.ValueObjectEntry
 */
public void addValueObjectEntry(ValueObjectEntry vo) {
        //this.vos.addValueObjectEntry(vo);
        this.voe = vo;
}
/**
 * Insert the method's description here.
 * Creation date: (20.09.2001 13:17:03)
 */
private void init() {
        parser.push(this);
        parser.setDebug(3);
        parser.setValidating(false);
        parser.addObjectCreate("configuration/valueobject", valueObjectEntryClass);
        parser.addSetProperties("configuration/valueobject");
        parser.addSetNext("configuration/valueobject", "addValueObjectEntry");

}
/**
 * Insert the method's description here.
 * Creation date: (20.09.2001 13:08:42)
 */
public Object parseConfig() throws IOException, org.xml.sax.SAXException,
Exception{
        if(this.config != null)
                return parser.parse( new BufferedInputStream(this.config));
        else
                throw new Exception("No configuration-file readed");
}
/**
 * Insert the method's description here.
 * Creation date: (20.09.2001 13:08:42)
 */
public Object parseConfig(String path) throws FileNotFoundException ,
IOException, org.xml.sax.SAXException, Exception {
        this.readConfiguration(path);
        return this.parseConfig();
}
/**
 * Insert the method's description here.
 * Creation date: (20.09.2001 13:07:14)
 * @param path java.lang.String
 */
public void readConfiguration(String path) throws FileNotFoundException {
        config = new java.io.FileInputStream("d:\\rss-example.xml");
}
}
--------------------------------------------
package de.tecmath.cms.util.ejb.valueobjectholder.conf;

/**
 * Insert the type's description here.
 * Creation date: (20.09.2001 12:59:02)
 * @author:
 */
public class ValueObjectEntry {
        private java.lang.String name;
        private java.lang.String pkgName;
/**
 * ValueObjectEntry constructor comment.
 */
public ValueObjectEntry() {
        super();
}
/**
 * Insert the method's description here.
 * Creation date: (20.09.2001 13:02:39)
 * @return java.lang.String
 */
public java.lang.String getName() {
        return name;
}
/**
 * Insert the method's description here.
 * Creation date: (20.09.2001 13:02:48)
 * @return java.lang.String
 */
public java.lang.String getPkgName() {
        return pkgName;
}
/**
 * Insert the method's description here.
 * Creation date: (20.09.2001 13:02:39)
 * @param newName java.lang.String
 */
public void setName(java.lang.String newName) {
        name = newName;
}
/**
 * Insert the method's description here.
 * Creation date: (20.09.2001 13:02:48)
 * @param newPkgName java.lang.String
 */
public void setPkgName(java.lang.String newPkgName) {
        pkgName = newPkgName;
}
}
-------------------------------------------------
<configuration>
        <valueobject name="BBDetailVO"
pkgName="de.tecmath.cms.ejb.BlackBoard.valueobjects.BBDetailVO"/>
        <valueobject name="BBNameVO"
pkgName="de.tecmath.cms.ejb.BlackBoard.valueobjects.BBNameVO"/>
</configuration>


-----Ursprungliche Nachricht-----
Von: Ted Husted [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. September 2001 16:03
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: Digister


The only documentation I know about is the package.html file in the
SOURCE distribution (repeat SOURCE distribution).

Like all of Craig's Javadocs, it does tell you most of you what you need
to know to get started.

storck wrote:
>
> Thanks!!!!
> That has helped a litle, but doesnt their exists a documentation where it
is
> explained when to use wich methodes of digister ? (maybe a stupid
question,
> but it is very new for me)

Reply via email to