pt.tumba.parser
Class HTMLMarkup

java.lang.Object
  extended by pt.tumba.parser.HTMLMarkup

public class HTMLMarkup
extends java.lang.Object

Author:
Bruno Martins

Field Summary
private  Content contentInfo
           
 
Constructor Summary
protected HTMLMarkup(Content contentInfo)
           
 
Method Summary
 int getAnchorCount(java.lang.String term)
           
 java.util.Iterator getAnchorTerms()
          Gets the anchorTerms attribute of the HTMLParser object
 int getBigCount(java.lang.String term)
           
 java.util.Iterator getBigTerms()
          Gets the bigTerms attribute of the HTMLParser object
 int getBoldCount(java.lang.String term)
           
 java.util.Iterator getBoldTerms()
          Gets the boldTerms attribute of the HTMLParser object
 int getEmphasizeCount(java.lang.String term)
           
 java.util.Iterator getEmphasizeTerms()
          Gets the emphasizeTerms attribute of the HTMLParser object
 int getHeading1Count(java.lang.String term)
           
 java.util.Iterator getHeading1Terms()
          Gets the heading1Terms attribute of the HTMLParser object
 int getHeading2Count(java.lang.String term)
           
 java.util.Iterator getHeading2Terms()
          Gets the heading2Terms attribute of the HTMLParser object
 int getHeading3Count(java.lang.String term)
           
 java.util.Iterator getHeading3Terms()
          Gets the heading3Terms attribute of the HTMLParser object
 int getHeading4Count(java.lang.String term)
           
 java.util.Iterator getHeading4Terms()
          Gets the heading4Terms attribute of the HTMLParser object
 int getHeading5Count(java.lang.String term)
           
 java.util.Iterator getHeading5Terms()
          Gets the heading5Terms attribute of the HTMLParser object
 int getHeading6Count(java.lang.String term)
           
 java.util.Iterator getHeading6Terms()
          Gets the heading6Terms attribute of the HTMLParser object
 int getItalicCount(java.lang.String term)
           
 java.util.Iterator getItalicTerms()
          Gets the italicTerms attribute of the HTMLParser object
 int getMetaCount(java.lang.String term)
           
 java.util.Iterator getMetaTerms()
          Gets the italicTerms attribute of the HTMLParser object
 int getSmallCount(java.lang.String term)
           
 java.util.Iterator getSmallTerms()
          Gets the smallTerms attribute of the HTMLParser object
 int getStrongCount(java.lang.String term)
           
 java.util.Iterator getStrongTerms()
          Gets the strongTerms attribute of the HTMLParser object
 int getTitleCount(java.lang.String term)
           
 java.util.Iterator getTitleTerms()
          Gets the titleTerms attribute of the HTMLParser object
 boolean isAnchor(java.lang.String word)
          Gets the anchor attribute of the HTMLParser object
 boolean isBig(java.lang.String word)
          Gets the big attribute of the HTMLParser object
 boolean isBold(java.lang.String word)
          Gets the bold attribute of the HTMLParser object
 boolean isEmphasize(java.lang.String word)
          Gets the emphasize attribute of the HTMLParser object
 boolean isHeading1(java.lang.String word)
          Gets the heading1 attribute of the HTMLParser object
 boolean isHeading2(java.lang.String word)
          Gets the heading2 attribute of the HTMLParser object
 boolean isHeading3(java.lang.String word)
          Gets the heading3 attribute of the HTMLParser object
 boolean isHeading4(java.lang.String word)
          Gets the heading4 attribute of the HTMLParser object
 boolean isHeading5(java.lang.String word)
          Gets the heading5 attribute of the HTMLParser object
 boolean isHeading6(java.lang.String word)
          Gets the heading6 attribute of the HTMLParser object
 boolean isItalic(java.lang.String word)
          Gets the italic attribute of the HTMLParser object
 boolean isMeta(java.lang.String word)
          Gets the small attribute of the HTMLParser object
 boolean isSmall(java.lang.String word)
          Gets the small attribute of the HTMLParser object
 boolean isStrong(java.lang.String word)
          Gets the strong attribute of the HTMLParser object
 boolean isTitle(java.lang.String word)
          Gets the title attribute of the HTMLParser object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentInfo

private Content contentInfo
Constructor Detail

HTMLMarkup

protected HTMLMarkup(Content contentInfo)
Method Detail

isAnchor

public boolean isAnchor(java.lang.String word)
Gets the anchor attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The anchor value

getAnchorCount

public int getAnchorCount(java.lang.String term)

getAnchorTerms

public java.util.Iterator getAnchorTerms()
Gets the anchorTerms attribute of the HTMLParser object

Returns:
The anchorTerms value

isBig

public boolean isBig(java.lang.String word)
Gets the big attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The big value

getBigCount

public int getBigCount(java.lang.String term)

getBigTerms

public java.util.Iterator getBigTerms()
Gets the bigTerms attribute of the HTMLParser object

Returns:
The bigTerms value

isBold

public boolean isBold(java.lang.String word)
Gets the bold attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The bold value

getBoldCount

public int getBoldCount(java.lang.String term)

getBoldTerms

public java.util.Iterator getBoldTerms()
Gets the boldTerms attribute of the HTMLParser object

Returns:
The boldTerms value

isEmphasize

public boolean isEmphasize(java.lang.String word)
Gets the emphasize attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The emphasize value

getEmphasizeCount

public int getEmphasizeCount(java.lang.String term)

getEmphasizeTerms

public java.util.Iterator getEmphasizeTerms()
Gets the emphasizeTerms attribute of the HTMLParser object

Returns:
The emphasizeTerms value

isHeading1

public boolean isHeading1(java.lang.String word)
Gets the heading1 attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The heading1 value

getHeading1Count

public int getHeading1Count(java.lang.String term)

getHeading1Terms

public java.util.Iterator getHeading1Terms()
Gets the heading1Terms attribute of the HTMLParser object

Returns:
The heading1Terms value

isHeading2

public boolean isHeading2(java.lang.String word)
Gets the heading2 attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The heading2 value

getHeading2Count

public int getHeading2Count(java.lang.String term)

getHeading2Terms

public java.util.Iterator getHeading2Terms()
Gets the heading2Terms attribute of the HTMLParser object

Returns:
The heading2Terms value

isHeading3

public boolean isHeading3(java.lang.String word)
Gets the heading3 attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The heading3 value

getHeading3Count

public int getHeading3Count(java.lang.String term)

getHeading3Terms

public java.util.Iterator getHeading3Terms()
Gets the heading3Terms attribute of the HTMLParser object

Returns:
The heading3Terms value

isHeading4

public boolean isHeading4(java.lang.String word)
Gets the heading4 attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The heading4 value

getHeading4Count

public int getHeading4Count(java.lang.String term)

getHeading4Terms

public java.util.Iterator getHeading4Terms()
Gets the heading4Terms attribute of the HTMLParser object

Returns:
The heading4Terms value

isHeading5

public boolean isHeading5(java.lang.String word)
Gets the heading5 attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The heading5 value

getHeading5Count

public int getHeading5Count(java.lang.String term)

getHeading5Terms

public java.util.Iterator getHeading5Terms()
Gets the heading5Terms attribute of the HTMLParser object

Returns:
The heading5Terms value

isHeading6

public boolean isHeading6(java.lang.String word)
Gets the heading6 attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The heading6 value

getHeading6Count

public int getHeading6Count(java.lang.String term)

getHeading6Terms

public java.util.Iterator getHeading6Terms()
Gets the heading6Terms attribute of the HTMLParser object

Returns:
The heading6Terms value

isItalic

public boolean isItalic(java.lang.String word)
Gets the italic attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The italic value

getItalicCount

public int getItalicCount(java.lang.String term)

getItalicTerms

public java.util.Iterator getItalicTerms()
Gets the italicTerms attribute of the HTMLParser object

Returns:
The italicTerms value

isMeta

public boolean isMeta(java.lang.String word)
Gets the small attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The small value

getMetaCount

public int getMetaCount(java.lang.String term)

getMetaTerms

public java.util.Iterator getMetaTerms()
Gets the italicTerms attribute of the HTMLParser object

Returns:
The italicTerms value

isSmall

public boolean isSmall(java.lang.String word)
Gets the small attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The small value

getSmallCount

public int getSmallCount(java.lang.String term)

getSmallTerms

public java.util.Iterator getSmallTerms()
Gets the smallTerms attribute of the HTMLParser object

Returns:
The smallTerms value

isStrong

public boolean isStrong(java.lang.String word)
Gets the strong attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The strong value

getStrongCount

public int getStrongCount(java.lang.String term)

getStrongTerms

public java.util.Iterator getStrongTerms()
Gets the strongTerms attribute of the HTMLParser object

Returns:
The strongTerms value

isTitle

public boolean isTitle(java.lang.String word)
Gets the title attribute of the HTMLParser object

Parameters:
word - Description of the Parameter
Returns:
The title value

getTitleCount

public int getTitleCount(java.lang.String term)

getTitleTerms

public java.util.Iterator getTitleTerms()
Gets the titleTerms attribute of the HTMLParser object

Returns:
The titleTerms value