Class Content


  • public class Content
    extends java.lang.Object
    A Content object records content to be used to fill models. This Content class contains other Content objects.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Content empty
      An empty Content object for your convenience.
    • Constructor Summary

      Constructors 
      Constructor Description
      Content()
      Initialise an empty Content object.
      Content​(java.util.List<Content> contents)
      Initialise a content object that includes the contents of each (Content) item in the list contents.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Model fill​(Model m)
      Answer the model m after filling it with the contents described by this object.
      boolean isEmpty()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • empty

        public static final Content empty
        An empty Content object for your convenience.
    • Constructor Detail

      • Content

        public Content​(java.util.List<Content> contents)
        Initialise a content object that includes the contents of each (Content) item in the list contents.
      • Content

        public Content()
        Initialise an empty Content object.
    • Method Detail

      • fill

        public Model fill​(Model m)
        Answer the model m after filling it with the contents described by this object.
      • isEmpty

        public boolean isEmpty()