Class FoNode

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FoNode​(java.lang.String name)
      Constructs an instance of FoNode.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FoNode addNode​(FoNode builder)
      Add a new child FoNode.
      void addText​(java.lang.String text)
      Add a new child text FoNode.
      java.lang.String build()
      Build the String.
      static FoNode create​(java.lang.String name)
      Creates a new instance of a FoNode.
      protected java.util.Map<java.lang.String,​java.lang.String> getAttributes()
      Get the attributes.
      protected java.lang.String getTagName()
      Get the name.
      boolean hasChildren()
      Returns true if this list contains no elements.
      java.util.Iterator<FoNode> iterator()
      Returns an iterator over child FoNode.
      static FoRoot root​(java.lang.String font)
      Creates a new instance of a FoRoot.
      FoNode set​(java.lang.String name, java.lang.String value)
      Set an attribute.
      FoNode setId​(java.lang.String id)
      Set the ID.
      static FoNode text​(java.lang.String text)
      Constructs a text FoNode.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • FoNode

        protected FoNode​(java.lang.String name)
        Constructs an instance of FoNode.
        Parameters:
        name -
    • Method Detail

      • getTagName

        protected final java.lang.String getTagName()
        Get the name.
      • getAttributes

        protected final java.util.Map<java.lang.String,​java.lang.String> getAttributes()
        Get the attributes.
      • hasChildren

        public final boolean hasChildren()
        Returns true if this list contains no elements.
        Returns:
        true if this list contains no elements
      • setId

        public final FoNode setId​(java.lang.String id)
        Set the ID.
        Parameters:
        id -
      • set

        public final FoNode set​(java.lang.String name,
                                java.lang.String value)
        Set an attribute.
        Specified by:
        set in interface Fo
        Parameters:
        name -
        value -
      • addNode

        public final FoNode addNode​(FoNode builder)
        Add a new child FoNode.
        Parameters:
        node -
      • addText

        public final void addText​(java.lang.String text)
        Add a new child text FoNode.
        Parameters:
        text -
      • iterator

        public final java.util.Iterator<FoNode> iterator()
        Returns an iterator over child FoNode.
        Specified by:
        iterator in interface java.lang.Iterable<FoNode>
      • build

        public java.lang.String build()
        Build the String.
      • root

        public static FoRoot root​(java.lang.String font)
        Creates a new instance of a FoRoot.
      • text

        public static FoNode text​(java.lang.String text)
        Constructs a text FoNode.
        Parameters:
        text -
      • create

        public static FoNode create​(java.lang.String name)
        Creates a new instance of a FoNode.
        Parameters:
        name -