Class SafeTagList

java.lang.Object
org.jfree.xml.writer.SafeTagList

public class SafeTagList extends Object
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.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static class 
    A tag description.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private HashMap
    Storage for the tag information.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new list.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(String tag)
    Adds a tag with both the 'open' and 'close' flags set to true.
    void
    add(String tag, boolean open, boolean closed)
    Adds a tag.
    boolean
    Returns true if it is safe to start a new line immediately after a close tag.
    boolean
    Returns true if it is safe to start a new line immediately after an open tag.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • safeTags

      private HashMap safeTags
      Storage for the tag information.
  • Constructor Details

    • SafeTagList

      public SafeTagList()
      Creates a new list.
  • Method Details

    • add

      public void add(String tag)
      Adds a tag with both the 'open' and 'close' flags set to true.
      Parameters:
      tag - the tag name.
    • add

      public void add(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(String tag)
      Returns true if 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(String tag)
      Returns true if it is safe to start a new line immediately after a close tag.
      Parameters:
      tag - the tag name.
      Returns:
      A boolean.