ecologylab.semantics.html
Class HTMLElement

java.lang.Object
  extended by 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

Field Summary
static int INDEX_NOT_CALCULATED
           
 
Fields inherited from interface ecologylab.semantics.html.utils.HTMLAttributeNames
ALT, EXTRACTED_CAPTION, HEIGHT, HREF, ISMAP, SRC, TEXT_CONTEXT, WIDTH
 
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
 
Constructor Summary
HTMLElement()
           
HTMLElement(org.w3c.tidy.TdNode node)
           
 
Method Summary
 void clearAttribute(java.lang.String key)
           
 java.lang.String getAttribute(java.lang.String key)
           
 boolean getAttributeAsBoolean(java.lang.String key)
           
 int getAttributeAsInt(java.lang.String key)
           
 int getAttributeAsInt(java.lang.String key, int defaultValue)
           
 org.w3c.tidy.TdNode getNode()
           
 int localXPathIndex()
           
 void recycle()
           
 void setNode(org.w3c.tidy.TdNode node)
           
 java.lang.String xPath()
           
static void xPath(org.w3c.tidy.TdNode node, java.lang.StringBuilder buffy)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDEX_NOT_CALCULATED

public static final int INDEX_NOT_CALCULATED
See Also:
Constant Field Values
Constructor Detail

HTMLElement

public HTMLElement()

HTMLElement

public HTMLElement(org.w3c.tidy.TdNode node)
Method Detail

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()