Microsoft SDK for Java

ElementImpl Class

The ElementImpl class of the com.ms.xml.om package represents the default implementation of the Element interface. These are created by the XML parser when using the default element factory.

public class ElementImpl implements Element
{
  // Fields
  protected Attributes attrlist;

  // Constructors
  public ElementImpl();
  public ElementImpl(Name tag, int type);

  // Methods
  public void addChild(Element elem, Element after);
  public void addChild(Element elem, int pos, int reserved);
  public Object getAttribute(String name);
  public Object getAttribute(Name attrName);
  public Enumeration getAttributes();
  public Element getChild(int index);
  public ElementCollection getChildren();
  public Enumeration getElements();
  public Element getParent();
  public Name getTagName();
  public String getText();
  public int getType();
  public boolean isAttributeQualified(Name attr, DTD dtd);
  public int numAttributes();
  public int numElements();
  public Name qualifyName(String string);
  public void removeAttribute(String name);
  public void removeAttribute(Name attrName);
  public void removeChild(Element elem);
  public void save(XMLOutputStream o) throws IOException;
  public void saveAttributes(Atom ns, XMLOutputStream o)
        throws IOException;
  public void setAttribute(String name, Object value);
  public void setAttribute(Name attrName, Object value);
  public void setParent(Element parent);
  public void setText(String text);
  public Element toSchema();
  public String toString();
}

See Also

com.ms.xml.om.Element, Parser, com.ms.xml.om.ElementFactory, com.ms.xml.om.ElementFactoryImpl

© 1999 Microsoft Corporation. All rights reserved. Terms of use.