Package org.emftrace.metamodel.QUARCModel.Constraints

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalPropertiesCatalogue


    assertEquals(1, result.size());
  }
 
  @Test
  public void testForWordByWordFalse() {
    TechnicalPropertiesCatalogue catalogue = ConstraintsFactory.eINSTANCE.createTechnicalPropertiesCatalogue();
    TechnicalProperty tp1 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp1.setName("foo bar");
    TechnicalProperty tp2 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp2.setName("bar bar");
   
    catalogue.getCatalogueProperties().add(tp1);
    catalogue.getCatalogueProperties().add(tp2);
   
    NGramCheckCondition nGramCheckCondition = new NGramCheckCondition(
        3, "foo", 0.8f, false, true);

    NGramCheckEObjectCondition condition1 = new NGramCheckEObjectCondition(
        ConstraintsPackage.eINSTANCE.getTechnicalProperty_Name(),
        nGramCheckCondition,catalogue );


    SELECT statement = new SELECT(new FROM(catalogue
        .getCatalogueProperties()), new WHERE(condition1));
   
    IQueryResult result = statement.execute();
 
   
View Full Code Here

TOP

Related Classes of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalPropertiesCatalogue

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.