コード例 #1
0
ファイル: FormEntryPrompt.cs プロジェクト: ryanbehr/csrosa
 public String getConstraintText(String textForm, IAnswerData attemptedValue)
 {
     if (mTreeElement.getConstraint() == null)
     {
         return(null);
     }
     else
     {
         EvaluationContext ec = new EvaluationContext(form.exprEvalContext, mTreeElement.getRef());
         if (textForm != null)
         {
             ec.OutputTextForm = textForm;
         }
         if (attemptedValue != null)
         {
             ec.isConstraint   = true;
             ec.candidateValue = attemptedValue;
         }
         return(mTreeElement.getConstraint().getConstraintMessage(ec, form.Instance));
     }
 }