Class Placeholder

  • All Implemented Interfaces:, PageElement

    public class Placeholder
    extends java.lang.Object
    implements PageElement
    A source placeholder is replaced with a list of source instances at evaluation time. Source placeholders may not have any content themselves - attempting to call any setter on this results in a IllegalStateException.
    • Constructor Summary

      Constructor Description
      Placeholder​(java.lang.String id)
      Creates a source placeholder with an id.
    • Constructor Detail

      • Placeholder

        public Placeholder​(java.lang.String id)
        Creates a source placeholder with an id.
    • Method Detail

      • getId

        public java.lang.String getId()
      • getValueContainer

        public MapChoice getValueContainer()
        Returns the element which contains the value(s) of this placeholder. Never null.
      • setValueContainer

        public void setValueContainer​(MapChoice valueContainer)
      • freeze

        public void freeze()
        Specified by:
        freeze in interface
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • isFrozen

        public boolean isFrozen()
        This method always returns false, is a Placeholder always is mutable. (freeze() is a NOOP.)
        Specified by:
        isFrozen in interface