com.sun.java.help.impl
Class Tag
java.lang.Object
com.sun.java.help.impl.Tag
public class Tag
extends java.lang.Object
This class contains a reference to a tag in a parsed document, the type of
tag, and the tag's attributes.
TagProperties | atts - The tag attributes, in identifier, value pairs.
|
boolean | isEmpty - The type of tag, true if an empty tag.
|
boolean | isEnd - The type of tag, false if an opening tag or true if a closing tag.
|
String | name - The name of the tag
|
Tag(String name, TagProperties atts, boolean isEnd, boolean isEmpty) - Sets the tag, position, and type.
|
atts
public TagProperties atts
The tag attributes, in identifier, value pairs.
isEmpty
public boolean isEmpty
The type of tag, true if an empty tag.
isEnd
public boolean isEnd
The type of tag, false if an opening tag or true if a closing tag.
name
public String name
The name of the tag
Tag
public Tag(String name,
TagProperties atts,
boolean isEnd,
boolean isEmpty)
Sets the tag, position, and type.
isEnd
- true if a </tag> or <tag/> tagisEmpty
- true if a <tag/> tag