FileDocCategorySizeDatePackage
WMLElementImpl.javaAPI DocJava SE 5 API4254Fri Aug 26 14:55:30 BST 2005com.sun.org.apache.wml.internal.dom

WMLElementImpl

public class WMLElementImpl extends ElementImpl implements WMLElement
version
$Id: WMLElementImpl.java,v 1.1 2000/04/23 18:07:47 david Exp $
author
David Li

Fields Summary
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);