Package org.jfree.xml.writer
Class SafeTagList
java.lang.Object
org.jfree.xml.writer.SafeTagList
A container for information relating to the tags in the JFreeReport XML report files. Some tags
cannot be spread across multiple lines, because it causes problems for the parser.
- Author:
- Thomas Morgner.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a tag with both the 'open' and 'close' flags set totrue.voidAdds a tag.booleanisSafeForClose(String tag) Returnstrueif it is safe to start a new line immediately after a close tag.booleanisSafeForOpen(String tag) Returnstrueif it is safe to start a new line immediately after an open tag.
-
Constructor Details
-
SafeTagList
public SafeTagList()Creates a new list.
-
-
Method Details
-
add
Adds a tag with both the 'open' and 'close' flags set totrue.- Parameters:
tag- the tag name.
-
add
Adds a tag.- Parameters:
tag- the tag name.open- the 'open' flag.closed- the 'close' flag.
-
isSafeForOpen
Returnstrueif it is safe to start a new line immediately after an open tag.- Parameters:
tag- the tag name.- Returns:
- A boolean.
-
isSafeForClose
Returnstrueif it is safe to start a new line immediately after a close tag.- Parameters:
tag- the tag name.- Returns:
- A boolean.
-