Examples of Question


Examples of org.apache.uima.ruta.type.QUESTION

          return t;
        }
        case 17:
          break;
        case 13: {
          QUESTION t = new QUESTION(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 18:
          break;
        case 8: {
          SW t = new SW(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 19:
          break;
        case 4: {
          SPACE t = new SPACE(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 20:
          break;
        case 11: {
          COMMA t = new COMMA(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 21:
          break;
        case 1: {
          SPECIAL t = new SPECIAL(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 22:
          break;
        case 15: {
          MARKUP t = new MARKUP(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 23:
          break;
        case 6: {
          EXCLAMATION t = new EXCLAMATION(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 24:
          break;
        case 7: {
          NBSP t = new NBSP(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 25:
          break;
        case 14: {
          CAP t = new CAP(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 26:
          break;
        case 12: {
          PERIOD t = new PERIOD(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 27:
          break;
        case 5: {
          BREAK t = new BREAK(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 28:
          break;
        case 2: {
          CW t = new CW(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 29:
          break;
        case 10: {
          COLON t = new COLON(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 30:
          break;
        case 9: {
          SEMICOLON t = new SEMICOLON(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 31:
          break;
        case 16: {
          AMP t = new AMP(cas);
          t.setBegin(yychar);
          t.setEnd(yychar + yytext().length());

          return t;
        }
        case 32:
          break;
View Full Code Here

Examples of org.cast.isi.data.Question

    setModel(new ListModel<Question>(questionService.getQuestionsByUser(userId)));   
  }

  @Override
  protected void populateItem(ListItem<Question> item) {
    Question q = (Question)item.getModelObject();
    boolean isCurrent = q.equals(current);
   
    BookmarkablePageLink<WebPage> link = new BookmarkablePageLink<WebPage>("link", linkPage);
    item.add(link);
    link.setParameter("question", q.getId());
    link.setParameter("callingPageName", ((ISIStandardPage) getPage()).getPageName());
    link.add(new Label("text", q.getText()));
    link.setPopupSettings(popupSettings);
    if (isCurrent)
      link.setEnabled(false);
   
    if (q.getOwner() != null) {
      if (isCurrent) {
        link.add(new SimpleAttributeModifier("class", "selected"));
      }
      else
        item.add(new SimpleAttributeModifier("class", "questionP"));
View Full Code Here

Examples of org.cast.isi.data.Question

  }

  @Override
  protected void onValidate(IValidatable<String> validatable) {
    String questionText = validatable.getValue();
    Question other = questionService.getByTextAndStudent(questionText, ISISession.get().getUser());
    if (other != null && !other.getId().equals(questionId)) {
      error(validatable);
    } else {
      Databinder.getHibernateSession().evict(other); // Evict "other" person in case they are the same object
    }
  }
View Full Code Here

Examples of org.cast.isi.data.Question

  /* (non-Javadoc)
   * @see org.cast.isi.service.IQuestionService#createQuestion(org.cast.cwm.data.models.UserModel, java.lang.String, java.lang.String)
   */
  public void createQuestion(UserModel mOwner, String text, String pageName) {
    Session session = Databinder.getHibernateSession();
    Question question = new Question(text, mOwner.getObject(), null);
    ISIPrompt prompt = new ISIPrompt(PromptType.MY_QUESTIONS);
    if (mOwner != null) {
      prompt.setTargetUser(mOwner.getObject());
      eventService.saveEvent("question:create", text, pageName);
    }
    session.save(prompt)
    question.setPrompt(prompt);
    session.save(question);
    cwmService.flushChanges();
  }
View Full Code Here

Examples of org.cast.isi.data.Question

 
  /* (non-Javadoc)
   * @see org.cast.isi.service.IQuestionService#deleteQuestion(org.apache.wicket.model.IModel, java.lang.String)
   */
  public void deleteQuestion (IModel<Question> mQuestion, String pageName) {
    Question q = mQuestion.getObject();
    q.setActive(false);
    Databinder.getHibernateSession().update(q);
    cwmService.flushChanges();     
    eventService.saveEvent("question:delete", q.getText()
        + " (" + q.getId() + ")", pageName)
  }
View Full Code Here

Examples of org.cast.isi.data.Question

  /* (non-Javadoc)
   * @see org.cast.isi.service.IQuestionService#updateQuestion(org.cast.isi.data.Question, java.lang.String)
   */
  public void updateQuestion (Question question, String pageName) {
    Question q = question;
    Databinder.getHibernateSession().update(q);
    cwmService.flushChanges();     
    eventService.saveEvent("question:namechange", question.getText()
        + " (" + question.getId() + ")", pageName)
  }
View Full Code Here

Examples of org.cast.isi.data.Question

  public QuestionPopup (final PageParameters param) {
    super(param);
    setQuestionsMetadata(questionsMetadata);
    setDefaultModel(questionService.getQuestionModelById(param.getLong("question")))
    Question question = (Question) getDefaultModelObject();
    add(new Label("pageTitle", ISIApplication.get().getPageTitleBase() + " :: " + question.getText()));
    add(new Label("question", question.getText()));

    // set teacher flag and target user
    isTeacher = ISISession.get().getUser().getRole().subsumes(Role.TEACHER);

    addResponses(question);
View Full Code Here

Examples of org.encuestame.persistence.domain.question.Question

     * @throws ServletException
     *
     */
    @Test
    public void testGetFrontendItems() throws ServletException, IOException{
        final Question question = createQuestion("abcdefg", "pattern");
        final TweetPoll tp = createTweetPollPublicated(Boolean.TRUE, Boolean.TRUE, new Date(), getSpringSecurityLoggedUserAccount(), question);
        final Poll poll = createPoll(new Date(), question, getSpringSecurityLoggedUserAccount(), Boolean.TRUE, Boolean.TRUE);
        tp.setRelevance(50L);
        poll.setRelevance(30L);
        getTweetPoll().saveOrUpdate(tp);
View Full Code Here

Examples of org.jsurveylib.model.question.Question

        NodeList elementNodes = pageNode.getChildNodes();
        for (int i = 0; i < elementNodes.getLength(); i++) {
            if (elementNodes.item(i) instanceof Element) {
                Element elementNode = (Element) elementNodes.item(i);
                if (elementNode.getTagName().equals("question")) {
                    Question question = buildQuestion(elementNode);
                    page.addQuestion(question);
                } else {
                    Label label = new Label(elementNode.getTextContent());
                    page.addLabel(label);
                }
View Full Code Here

Examples of org.jsurveylib.model.question.Question

            NodeList templates = templatesElement.getElementsByTagName("template");
            for (int j = 0; j < templates.getLength(); j++) {
                Element templateElement = (Element) templates.item(j);
                QuestionBuilder builder = new QuestionBuilder();
                builder.setId("TEMPLATE").setMandatory(false);
                Question template = buildConcreteQuestion(builder, templateElement);
                String name = templateElement.getAttribute("name");
                templateMap.put(name, template);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.