com.heckmansoft.surjey.model.vo.lazy
Class LazySection

java.lang.Object
  extended bycom.heckmansoft.surjey.model.vo.ValueObject
      extended bycom.heckmansoft.surjey.model.vo.Section
          extended bycom.heckmansoft.surjey.model.vo.lazy.LazySection
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class LazySection
extends Section

A section that follows the lazy pattern. Contains a list of questions. Questions are automatically retrieved from the section manager only when they are first accessed using getQuestions()

See Also:
Serialized Form

Constructor Summary
LazySection(SectionManager manager)
          Constructor
 
Method Summary
 ValueObjectList getQuestions()
           
 
Methods inherited from class com.heckmansoft.surjey.model.vo.Section
compareTo, equals, getDescription, getPosition, getSurveyId, questionsIsNull, setDescription, setPosition, setQuestions, setSurveyId, toString
 
Methods inherited from class com.heckmansoft.surjey.model.vo.ValueObject
getId, getName, hashCode, setId, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazySection

public LazySection(SectionManager manager)
Constructor

Parameters:
manager - A section manager
Method Detail

getQuestions

public ValueObjectList getQuestions()
Overrides:
getQuestions in class Section