Package com.liferay.portlet.polls

Examples of com.liferay.portlet.polls.QuestionChoiceException


    else if (Validator.isNull(description)) {
      throw new QuestionDescriptionException();
    }

    if (choices.size() < 2) {
      throw new QuestionChoiceException();
    }

    for (int i = 0; i < choices.size(); i++) {
      PollsChoice choice = (PollsChoice)choices.get(i);

      if (Validator.isNull(choice.getChoiceId()) ||
        Validator.isNull(choice.getDescription())) {

        throw new QuestionChoiceException();
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.liferay.portlet.polls.QuestionChoiceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.