Search in sources :

Example 6 with Sentence

use of org.w3._2007.rif.Sentence in project hale by halestudio.

the class TestModelRifToRifTranslator method checkJavaBindings.

private Sentence checkJavaBindings(Document result) {
    assertNotNull(result);
    assertNotNull(result.getPayload());
    assertNotNull(result.getPayload().getGroup());
    assertNotNull(result.getPayload().getGroup().getSentence());
    assertThat(result.getPayload().getGroup().getSentence().size(), is(1));
    Sentence actualSentence = result.getPayload().getGroup().getSentence().get(0);
    assertNotNull(actualSentence.getImplies());
    assertNotNull(actualSentence.getImplies().getIf());
    assertNotNull(actualSentence.getImplies().getIf().getExists());
    assertNotNull(actualSentence.getImplies().getThen());
    assertNotNull(actualSentence.getImplies().getThen().getDo());
    checkDoElements(actualSentence.getImplies().getThen().getDo());
    // check contents of if
    And and = checkDeclareElement(actualSentence);
    checkAndChildren(and);
    return actualSentence;
}
Also used : And(org.w3._2007.rif.And) Sentence(org.w3._2007.rif.Sentence)

Aggregations

And (org.w3._2007.rif.And)2 Const (org.w3._2007.rif.Const)2 ActionVar (org.w3._2007.rif.Do.ActionVar)2 Formula (org.w3._2007.rif.Formula)2 Instance (org.w3._2007.rif.Instance)2 Member (org.w3._2007.rif.Member)2 Sentence (org.w3._2007.rif.Sentence)2 Var (org.w3._2007.rif.Var)2 ModelSentence (com.onespatial.jrc.tns.oml_to_rif.model.rif.ModelSentence)1 RifVariable (com.onespatial.jrc.tns.oml_to_rif.translate.context.RifVariable)1 Assert (org.w3._2007.rif.Assert)1 Target (org.w3._2007.rif.Assert.Target)1 Declare (org.w3._2007.rif.Declare)1 Do (org.w3._2007.rif.Do)1 Exists (org.w3._2007.rif.Exists)1 Frame (org.w3._2007.rif.Frame)1 If (org.w3._2007.rif.If)1 Implies (org.w3._2007.rif.Implies)1 ThenPart (org.w3._2007.rif.ThenPart)1