API Overview API Index Package Overview Direct link to this page
Sitemesh 2.3
  com.opensymphony.module.sitemesh.html. CustomTag View Source
Author(s)
Joe Walnes
Since
Version
Serial
Hierarchy
 Object
      CustomTag
Implements
 Tag
Subclasses
Description
public class CustomTag
  A CustomTag provides a mechanism to manipulate the contents of a Tag.
See also:    Tag
Constructors
public CustomTag (String name, int type)
Type of tag:
<blah> - Tag.OPEN
</blah> - Tag.CLOSE
<blah/> - Tag.EMPTY
public CustomTag (Tag tag)
Create a CustomTag based on an existing Tag - this takes a copy of the Tag.
Methods
Hide/Show inherited methods
public int addAttribute (String name, String value)
  Add a new attribute.
public boolean equals (Object o)
public int getAttributeCount () [Specified in Tag]
public int getAttributeIndex (String name, boolean caseSensitive) [Specified in Tag]
public String getAttributeName (int index) [Specified in Tag]
public String getAttributeValue (int index) [Specified in Tag]
public String getAttributeValue (String name, boolean caseSensitive) [Specified in Tag]
public String getContents () [Specified in Tag]
public String getName () [Specified in Tag]
public int getType () [Specified in Tag]
Type of tag:
<blah> - Tag.OPEN
</blah> - Tag.CLOSE
<blah/> - Tag.EMPTY
public boolean hasAttribute (String name, boolean caseSensitive) [Specified in Tag]
public int hashCode ()
public void removeAttribute (int attributeIndex)
Remove an attribute.
public void removeAttribute (String name, boolean caseSensitive)
  Change the value of an attribute, or add an attribute if it does not already exist.
public void setAttributeName (int attributeIndex, String name)
Change the name of an existing attribute.
public void setAttributeValue (int attributeIndex, String value)
  Change the value of an existing attribute.
public void setAttributeValue (String name, boolean caseSensitive, String value)
  Change the value of an attribute, or add an attribute if it does not already exist.
public void setName (String name)
Change the name of the attribute.
public void setType (int type)
  Change the type of the tag.
public String toString ()
public void writeTo (CharArray out) [Specified in Tag]
Fields
Hide/Show inherited fields
publicfinalstatic int CLOSE = "2" [Inherited From Tag]
publicfinalstatic int CLOSE_MAGIC_COMMENT = "5" [Inherited From Tag]
publicfinalstatic int EMPTY = "3" [Inherited From Tag]
publicfinalstatic int OPEN = "1" [Inherited From Tag]
publicfinalstatic int OPEN_MAGIC_COMMENT = "4" [Inherited From Tag]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar