Code example for Element

Methods: getAttributes

0
     */ 
    private int getElementType(Element elem)
    { 
        int type = TYPE_UNWANTED;
 
        Object o = elem.getAttributes().getAttribute(StyleConstants.NameAttribute);
        if (o instanceof HTML.Tag)
        { 
            HTML.Tag kind = (HTML.Tag)o;
 
            if (kind == HTML.Tag.IMG)
            { 
                type = TYPE_IMAGE;
            } else if (kind == HTML.Tag.IMPLIED)
            { 
                String ws = (String) elem.getAttributes().getAttribute(CSS.Attribute.WHITE_SPACE);
                if (ws == null || !ws.equals("pre"))
                { 
                    type = TYPE_PARAGRAPH;
                } 
            } else if ((kind == HTML.Tag.P) ||
Connect your IDE to all the code out there  Get Codota for Java