FileDocCategorySizeDatePackage
WMLElementImpl.javaAPI DocApache Xerces 3.0.12671Fri Sep 14 20:33:54 BST 2007org.apache.wml.dom

WMLElementImpl

public class WMLElementImpl extends org.apache.xerces.dom.ElementImpl implements WMLElement
xerces.internal
version
$Id: WMLElementImpl.java 447257 2006-09-18 05:40:07Z mrglavas $
author
David Li

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public WMLElementImpl(WMLDocumentImpl owner, String tagName)

    
          
        super(owner, tagName);
    
Methods Summary
intgetAttribute(java.lang.String attr, int defaultValue)

        int ret = defaultValue;
        String value;
        if ((value = getAttribute("emptyok")) != null)
            ret = Integer.parseInt(value);
        return ret;
    
booleangetAttribute(java.lang.String attr, boolean defaultValue)

        boolean ret = defaultValue;
        String value;
        if (((value = getAttribute("emptyok")) != null) 
                && value.equals("true"))
            ret = true;
        return ret;
    
public java.lang.StringgetClassName()

        return getAttribute("class");
    
public java.lang.StringgetId()

        return getAttribute("id");
    
public java.lang.StringgetXmlLang()

        return getAttribute("xml:lang");
    
voidsetAttribute(java.lang.String attr, int value)

        setAttribute(attr, value + "");
    
voidsetAttribute(java.lang.String attr, boolean value)

        setAttribute(attr, value ? "true" : "false");
    
public voidsetClassName(java.lang.String newValue)

        setAttribute("class", newValue);
    
public voidsetId(java.lang.String newValue)

        setAttribute("id", newValue);
    
public voidsetXmlLang(java.lang.String newValue)

        setAttribute("xml:lang", newValue);