|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.html.TagFinder
public class TagFinder
This class and subclasses contain serveral methods for finding tags by its type and ID.
| Constructor Summary | |
|---|---|
TagFinder(HTMLFragment doc)
|
|
| Method Summary | |
|---|---|
info.informatica.doc.FragmentPosition |
findEndTag(String tagname,
int inipos)
Finds the end tag (</...) of the given name. |
info.informatica.doc.FragmentPosition |
findNextTag(String tagname,
int inipos)
Finds the next Tag of the given type in the document. |
CharData |
getNextBlock(int inipos)
Gets the block of character data formed by the next Tag found by this class, and the enclosed character data. |
HTMLTag |
getNextTag(int inipos)
Gets the next Tag according to the requisites of this class. |
HTMLTag |
getNextTagBlock(int inipos)
Gets the tag block formed by the next Tag found by this class, and the enclosed character data. |
CharData |
getNextTagData(int inipos)
Gets the character data enclosed by the next Tag found by this class. |
HTMLTag |
getTag()
Find the first Tag according to the requisites of this class. |
HTMLTag |
getTagAt(info.informatica.doc.FragmentPosition pos)
|
HTMLTag |
getTagBlock()
Gets the Tag Block corresponding to the found tag. |
CharData |
getTagData()
Gets the Tag Data corresponding to the found tag. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TagFinder(HTMLFragment doc)
doc - HTML document.| Method Detail |
|---|
public HTMLTag getTagAt(info.informatica.doc.FragmentPosition pos)
throws TagParsingException
TagParsingException
public info.informatica.doc.FragmentPosition findNextTag(String tagname,
int inipos)
inipos - position to start search.
public info.informatica.doc.FragmentPosition findEndTag(String tagname,
int inipos)
tagname - name of the tag.inipos - a position after the end of the starting tag (<...>) to
start searching for the closing tag.
public final HTMLTag getTag()
public CharData getTagData()
A "tag data" is the Character Data found between the start and closing tag.
For example, the Tag Data in the tag block "<p> This is a paragraph</p>" is "This is a paragraph".
public HTMLTag getTagBlock()
A "tag block" is the block of HTML comprised by both the opening and closing tag, and all the Character Data contained between the two.
public HTMLTag getNextTag(int inipos)
By default, gets the next tag of any kind.
inipos - position to start search.
public CharData getNextTagData(int inipos)
Be careful using Tag Data for tags with optional end tag.
inipos - position to start search.
public HTMLTag getNextTagBlock(int inipos)
Be careful using Tag blocks for tags with optional end tag.
inipos - position to start search.
public CharData getNextBlock(int inipos)
inipos - position to start search.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||