ecologylab.semantics.html
Class HTMLElement
java.lang.Object
ecologylab.semantics.html.HTMLElement
- All Implemented Interfaces:
- ecologylab.net.MimeType, ImageConstants, HTMLAttributeNames
- Direct Known Subclasses:
- WithPurlElement
public class HTMLElement
- extends java.lang.Object
- implements HTMLAttributeNames, ImageConstants
data structure that contains the DOM node for the ImgElement and it's associate attributes.
- Author:
- eunyee
| Fields inherited from interface ecologylab.semantics.html.documentstructure.ImageConstants |
ANNOTATION, HEADER, ICON, INFORMATIVE, MIN_AREA, MIN_HEIGHT, MIN_WIDTH, NAV_MAX_HEIGHT, SPACER, SPACER_MAX_AREA, SPACER_MAX_DIM, TALL_AD_MAX_WIDTH, TOO_SMALL, UN_INFORMATIVE, UNKNOWN |
| Fields inherited from interface ecologylab.net.MimeType |
GIF, HTML, JPG, NUM_MEDIA_MIMES, PDF, PNG, RSS, TXT, UNKNOWN_MIME |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INDEX_NOT_CALCULATED
public static final int INDEX_NOT_CALCULATED
- See Also:
- Constant Field Values
HTMLElement
public HTMLElement()
HTMLElement
public HTMLElement(org.w3c.tidy.TdNode node)
clearAttribute
public void clearAttribute(java.lang.String key)
getAttribute
public java.lang.String getAttribute(java.lang.String key)
getAttributeAsInt
public int getAttributeAsInt(java.lang.String key)
getAttributeAsInt
public int getAttributeAsInt(java.lang.String key,
int defaultValue)
getAttributeAsBoolean
public boolean getAttributeAsBoolean(java.lang.String key)
setNode
public void setNode(org.w3c.tidy.TdNode node)
localXPathIndex
public int localXPathIndex()
xPath
public java.lang.String xPath()
xPath
public static void xPath(org.w3c.tidy.TdNode node,
java.lang.StringBuilder buffy)
getNode
public org.w3c.tidy.TdNode getNode()
recycle
public void recycle()