ParseModel.java :  » Database-Client » SQLMinus » util » Java Open Source

Java Open Source » Database Client » SQLMinus 
SQLMinus » util » ParseModel.java
package util;
import org.xml.sax.*;

/** this interface was created to be used with our simple parser. An
 * object of this kind would be created and given to the parser.
 */
public interface ParseModel {

    /** this gives the element name and the attribute list. */
    public void setModelElement (String ename, Attributes attrs);

    /** this gives the attribute name and value, it also gives the index
     * of the attribute starting 0, and the total count of attributes 
     * within that
     * element */
    public void setModelAttribute (int row, int total, String aname, 
            String value, String ename);

    /** this was put to return the collection since we dont know what
     * kinda object we have in here. You can get and then manipulate
     * as is. 
     */
    public Object getObject ();
}

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.