Package org.jfree.xml.writer
Class SafeTagList
- java.lang.Object
-
- org.jfree.xml.writer.SafeTagList
-
public class SafeTagList extends java.lang.ObjectA 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classSafeTagList.SafeDescriptionA tag description.
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMapsafeTagsStorage for the tag information.
-
Constructor Summary
Constructors Constructor Description SafeTagList()Creates a new list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.String tag)Adds a tag with both the 'open' and 'close' flags set totrue.voidadd(java.lang.String tag, boolean open, boolean closed)Adds a tag.booleanisSafeForClose(java.lang.String tag)Returnstrueif it is safe to start a new line immediately after a close tag.booleanisSafeForOpen(java.lang.String tag)Returnstrueif it is safe to start a new line immediately after an open tag.
-
-
-
Method Detail
-
add
public void add(java.lang.String tag)
Adds a tag with both the 'open' and 'close' flags set totrue.- Parameters:
tag- the tag name.
-
add
public void add(java.lang.String tag, boolean open, boolean closed)Adds a tag.- Parameters:
tag- the tag name.open- the 'open' flag.closed- the 'close' flag.
-
isSafeForOpen
public boolean isSafeForOpen(java.lang.String tag)
Returnstrueif it is safe to start a new line immediately after an open tag.- Parameters:
tag- the tag name.- Returns:
- A boolean.
-
isSafeForClose
public boolean isSafeForClose(java.lang.String tag)
Returnstrueif it is safe to start a new line immediately after a close tag.- Parameters:
tag- the tag name.- Returns:
- A boolean.
-
-