org.erowid.sperowider.htmlshredding
Class HTMLMetaTag

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

public class HTMLMetaTag
extends HTMLTag

Represents a MetaTag in an HTML doc. Every meta tag has a name and a chunk of text as its "contents".

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


Constructor Summary
HTMLMetaTag(HTMLTag tag)
          Initialized with a more generic tag
HTMLMetaTag(String name, String content)
          Initialized only with the name and content text, and not the <, >, etc.
 
Method Summary
 String getContent()
          Returns the content attribute
 String getName()
          Returns the name attribute
 void setContent(String content)
          Sets the content attribute
 void setLeadChar(char value)
          Meta tags are self terminating, so this does nothing.
 void setName(String name)
          Sets the name attribute
 
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

HTMLMetaTag

public HTMLMetaTag(String name,
                   String content)
Initialized only with the name and content text, and not the <, >, etc.


HTMLMetaTag

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

Method Detail

setLeadChar

public void setLeadChar(char value)
Meta tags are self terminating, so this does nothing.

Overrides:
setLeadChar in class HTMLTag

getContent

public String getContent()
Returns the content attribute


setContent

public void setContent(String content)
Sets the content attribute


getName

public String getName()
Returns the name attribute


setName

public void setName(String name)
Sets the name attribute


spero logo small Sperowider is
© 2005 Erowid.org