/* * @(#)NullElementFactory.java 1.0 12/09/97 * * Copyright (c) 1997 Microsoft, Corp. All Rights Reserved. * */ import com.ms.xml.om.*; import com.ms.xml.util.*; /** * This class implements 'do nothing' ElementFactory for fast XML * processing. * * @version 1.0, 09 Dec 1997 * @author Don Park */ public class NullElementFactory implements ElementFactory { /** * Creates an element with the specified tag for the * specified type of element. * * @param tag The name of the element. * @param type One of the predefined Element types that * can be returned from Element.getType. * @return the created element. * @see Element */ public Element createElement(Element parent, int type, Name tag, String text) { return null; } /** * Notifies that the element is fully parsed. * * @param elem The element parsed. * @see Element */ public void parsed(Element elem) { }; /** * Notification that an attribute just got parsed. * Value may be a String, Name or Vector of Names. */ public void parsedAttribute(Element e, Name name, Object value) { }; }