FileDocCategorySizeDatePackage
ElementImpl.javaAPI DocAndroid 1.5 API4101Wed May 06 22:42:46 BST 2009com.android.mms.dom

ElementImpl

public class ElementImpl extends NodeImpl implements Element

Fields Summary
private String
mTagName
private NamedNodeMap
mAttributes
Constructors Summary
protected ElementImpl(DocumentImpl owner, String tagName)


    /*
     * Internal methods
     */

         
        super(owner);
        mTagName = tagName;
    
Methods Summary
public java.lang.StringgetAttribute(java.lang.String name)

        Attr attrNode = getAttributeNode(name);
        String attrValue = "";
        if (attrNode != null) {
            attrValue = attrNode.getValue();
        }
        return attrValue;
    
public java.lang.StringgetAttributeNS(java.lang.String namespaceURI, java.lang.String localName)

        // TODO Auto-generated method stub
        return null;
    
public org.w3c.dom.AttrgetAttributeNode(java.lang.String name)

        return (Attr)mAttributes.getNamedItem(name);
    
public org.w3c.dom.AttrgetAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)

        // TODO Auto-generated method stub
        return null;
    
public org.w3c.dom.NamedNodeMapgetAttributes()

        return mAttributes;
    
public org.w3c.dom.NodeListgetElementsByTagName(java.lang.String name)

        return new NodeListImpl(this, name, true);
    
public org.w3c.dom.NodeListgetElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)

        // TODO Auto-generated method stub
        return null;
    
public java.lang.StringgetNodeName()

        // The value of nodeName is tagName when Node is an Element
        return mTagName;
    
public shortgetNodeType()

        return ELEMENT_NODE;
    
public java.lang.StringgetTagName()

        return mTagName;
    
public booleanhasAttribute(java.lang.String name)

        return (getAttributeNode(name) != null);
    
public booleanhasAttributeNS(java.lang.String namespaceURI, java.lang.String localName)

        // TODO Auto-generated method stub
        return false;
    
public booleanhasAttributes()

        return (mAttributes.getLength() > 0);
    
public voidremoveAttribute(java.lang.String name)

        // TODO Auto-generated method stub

    
public voidremoveAttributeNS(java.lang.String namespaceURI, java.lang.String localName)

        // TODO Auto-generated method stub

    
public org.w3c.dom.AttrremoveAttributeNode(org.w3c.dom.Attr oldAttr)

        // TODO Auto-generated method stub
        return null;
    
public voidsetAttribute(java.lang.String name, java.lang.String value)

        Attr attribute = getAttributeNode(name);
        if (attribute == null) {
            attribute = mOwnerDocument.createAttribute(name);
        }
        attribute.setNodeValue(value);
        mAttributes.setNamedItem(attribute);
    
public voidsetAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value)

        // TODO Auto-generated method stub

    
public org.w3c.dom.AttrsetAttributeNode(org.w3c.dom.Attr newAttr)

        // TODO Auto-generated method stub
        return null;
    
public org.w3c.dom.AttrsetAttributeNodeNS(org.w3c.dom.Attr newAttr)

        // TODO Auto-generated method stub
        return null;