org.erowid.sperowider.htmlshredding
Class HTMLKeywordTag

java.lang.Object
  extended byorg.erowid.sperowider.htmlshredding.HTMLTag
      extended byorg.erowid.sperowider.htmlshredding.HTMLMetaTag
          extended byorg.erowid.sperowider.htmlshredding.HTMLKeywordTag
All Implemented Interfaces:
HTMLElement

public class HTMLKeywordTag
extends HTMLMetaTag

Represents an HTML meta tag that provides keywords for the document.

Version:
$Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperowider/htmlshredding/HTMLKeywordTag.java,v 1.3 2005/01/15 23:26:17 gurustu Exp $
Author:
Stu Statman


Constructor Summary
HTMLKeywordTag(HTMLTag tag)
          Initialized with a more generic tag
HTMLKeywordTag(String keywordList)
          Initiated with the contents of the content attribute, *NOT* the full tag.
 
Method Summary
 void addKeyword(String keyword)
          Adds a new keyword
 void addKeywordList(String keywordList)
          Adds more keywords
 Iterator getKeywordList()
          Gets all the keywords
 void removeKeyword(String keyword)
          Removes a keyword
 void setContent(String content)
          Sets the content attribute, which is a list of keywords in this case.
 void setName(String name)
          Does nothing; the name is "keywords"
 
Methods inherited from class org.erowid.sperowider.htmlshredding.HTMLMetaTag
getContent, getName, setLeadChar
 
Methods inherited from class org.erowid.sperowider.htmlshredding.HTMLTag
addAttributesFromTag, addHTMLTagAttribute, getFollowChar, getHTMLTagAttribute, getHTMLTagAttributes, getLeadChar, getTagName, setFollowChar, setTagName, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTMLKeywordTag

public HTMLKeywordTag(String keywordList)
Initiated with the contents of the content attribute, *NOT* the full tag.


HTMLKeywordTag

public HTMLKeywordTag(HTMLTag tag)
Initialized with a more generic tag

Method Detail

setContent

public void setContent(String content)
Sets the content attribute, which is a list of keywords in this case.

Overrides:
setContent in class HTMLMetaTag

setName

public void setName(String name)
Does nothing; the name is "keywords"

Overrides:
setName in class HTMLMetaTag

addKeyword

public void addKeyword(String keyword)
Adds a new keyword


removeKeyword

public void removeKeyword(String keyword)
Removes a keyword


addKeywordList

public void addKeywordList(String keywordList)
Adds more keywords


getKeywordList

public Iterator getKeywordList()
Gets all the keywords


spero logo small Sperowider is
© 2005 Erowid.org