| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrabbit.html.Tag
This class describes a HTML tag. That is something like "<tagname key=value key=value key>"
| Nested Class Summary | |
|  class | Tag.pairThis class is a key value pair. | 
| Constructor Summary | |
| Tag() | |
| Tag(java.lang.String type)Create a new Tag with given type | |
| Method Summary | |
|  void | addArg(java.lang.String key,
       java.lang.String value)Add a new key/value pair to this tag. | 
|  void | addArg(java.lang.String key,
       java.lang.String value,
       boolean changed)Add a new key/value pair to this tag. | 
|  java.lang.String | getAttribute(java.lang.String key)Get the value of the given key. | 
|  java.lang.String | getLowerCaseType()Get the lowercase type of this tag. | 
|  TagType | getTagType()Get the tagtype of this tag. | 
|  Token | getToken()Get the parent token of this tag. | 
|  java.lang.String | getType()Get the type of this tag. | 
|  void | removeAttribute(java.lang.String remover)Remove an attribute. | 
|  void | setAttribute(java.lang.String key,
             java.lang.String value)Set the attribute given. | 
|  void | setToken(Token token)Set the parent token of this tag. | 
|  void | setType(java.lang.String type)Set the Type of this Tag. | 
|  java.lang.String | toString()Get this Tag as a String. | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public Tag()
public Tag(java.lang.String type)
type - the type of the tag (like "body").| Method Detail | 
public void setType(java.lang.String type)
type - the new type of this tag.public java.lang.String getType()
public java.lang.String getLowerCaseType()
public TagType getTagType()
public Token getToken()
public void setToken(Token token)
token - the parent of this tag.
public void addArg(java.lang.String key,
                   java.lang.String value)
key - the key.value - the value.
public void addArg(java.lang.String key,
                   java.lang.String value,
                   boolean changed)
key - the key.value - the value.changed - if true this tag is changed by this (that is a new parameter is added)
  if false this tag is still considered unchanged after this operation (while parsing a page
  it is nice to be able to do this).public void removeAttribute(java.lang.String remover)
remover - the attribute key to remove.public java.lang.String getAttribute(java.lang.String key)
key - the attribute to get the value from.
public void setAttribute(java.lang.String key,
                         java.lang.String value)
key - the key to set.value - the value to set.public java.lang.String toString()
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||