FileDocCategorySizeDatePackage
HyperRef.javaAPI DocAndroid 1.5 API1592Wed May 06 22:41:16 BST 2009com.vladium.emma.report.html.doc

HyperRef

public class HyperRef extends IElement.Factory.ElementImpl
author
Vlad Roubtsov, (C) 2003

Fields Summary
Constructors Summary
public HyperRef(String href, String text, boolean nbsp)

        super (Tag.A, AttributeSet.create ());
        
        if ((href == null) || (href.length () == 0))
            throw new IllegalArgumentException ("null or empty input: href");
        
        if ((text == null) || (text.length () == 0))
            throw new IllegalArgumentException ("null or empty input: text");
        
        getAttributes ().set (Attribute.HREF, href);
        
        // TODO: does href need to be URL-encoded?
        setText (text, nbsp); 
    
Methods Summary