|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.html.tag.TagParser
public class TagParser
HTML / XML tag parser.
| Field Summary | |
|---|---|
Properties |
tagmap
Map between tag names and HTMLTag-inherited specialized classes. |
| Method Summary | |
|---|---|
HTMLTag |
create(String tagname)
Creates an HTMLTag with the given characteristics. |
HTMLTag |
create(String tagname,
info.informatica.doc.FragmentPosition pos)
Creates an HTMLTag with the given characteristics. |
HTMLTag |
create(String tagname,
String tagid)
Creates an HTMLTag with the given characteristics. |
HTMLTag |
create(String tagname,
String tagid,
info.informatica.doc.FragmentPosition pos)
Creates an HTMLTag with the given characteristics. |
static TagParser |
getInstance()
|
void |
initDefaultTagmap()
Initializes a default TagMap |
HTMLTag |
parse(String tag)
Parses a String to create an HTMLTag. |
HTMLTag |
parse(String tag,
info.informatica.doc.FragmentPosition pos)
Parses a String to create an HTMLTag with the given position. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Properties tagmap
It is public so it can be set externally.
If null, no map will be used and GenericHTMLTag will be used.
You have an initDefaultTagmap() method to initialize the tag map with some defaults.
| Method Detail |
|---|
public static TagParser getInstance()
public void initDefaultTagmap()
public HTMLTag parse(String tag,
info.informatica.doc.FragmentPosition pos)
throws TagParsingException
tag - a String containing the tagpos - the position to initialize the tag
TagParsingException
public HTMLTag parse(String tag)
throws TagParsingException
tag - a String containing the tag
TagParsingException
public HTMLTag create(String tagname,
info.informatica.doc.FragmentPosition pos)
tagname - the name (type) of the tag.pos - the position to initialize the tag.
NullPointerException - if tagname is null.public HTMLTag create(String tagname)
tagname - the name (type) of the tag
public HTMLTag create(String tagname,
String tagid)
tagname - the name (type) of the tagtagid - the ID for the tag
public HTMLTag create(String tagname,
String tagid,
info.informatica.doc.FragmentPosition pos)
tagname - the name (type) of the tagtagid - the ID for the tagpos - the position to initialize the tag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||