|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.xml.TagContainer
de.fu_berlin.ties.xml.UnprocessedTags
A container that keeps track of unprocessed start and end tags during XML adjustment.
Constructor Summary | |
UnprocessedTags()
Creates a new instance. |
Method Summary | |
int |
endTagCount(String tagName)
Returns the number of end tags with the specified name contained in this container. |
void |
push(TagConstituent tag,
boolean appendAtEnd)
Inserts an appearance of a tag into the container. |
boolean |
remove(TagConstituent tag)
Removes a single appearance of a tag from the container. |
int |
startTagCount(String tagName)
Returns the number of start tags with the specified name contained in this container. |
Methods inherited from class de.fu_berlin.ties.xml.TagContainer |
contains, findFirst, findInSeries, forceRemove, getTagMap, isEmpty, push, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UnprocessedTags()
Method Detail |
public int endTagCount(String tagName)
tagName
- the name of the tags to count
public void push(TagConstituent tag, boolean appendAtEnd) throws IllegalArgumentException
push
in class TagContainer
tag
- the tag to insertappendAtEnd
- whether to insert the tag at the end or at the begin
of appearances within a series
IllegalArgumentException
- if the specified tag is not a start or
end tagpublic boolean remove(TagConstituent tag)
remove
in class TagContainer
tag
- the tag to remove
true
if the specified TagConstituent was
removed successfully; false
otherwise (the specified
constituent wasn't found in the container)public int startTagCount(String tagName)
tagName
- the name of the tags to count
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |