Package org.apache.imperius.spl.parser.expressions.impl

Examples of org.apache.imperius.spl.parser.expressions.impl.ContainsOnlyLetters


    try {
      Expression exp;
     
      Vector v = new Vector();
      v.add(new StringConstant(s1));
      exp = new ContainsOnlyLetters(v,true);
      assertTrue(exp.evaluate().equals(Boolean.TRUE));

      v.clear();
      v.add(propertySensor1);
      exp = new ContainsOnlyLetters(v,true);
      assertTrue(exp.evaluate().equals(Boolean.TRUE));

      v.clear();
      v.add(new StringConstant(s2));
      exp = new ContainsOnlyLetters(v,true);
      assertTrue(exp.evaluate().equals(Boolean.FALSE));

      v.clear();
      v.add(propertySensor2);
      exp = new ContainsOnlyLetters(v,true);
      assertTrue(exp.evaluate().equals(Boolean.FALSE));

      v.clear();
      v.add(new StringConstant(s3));
      exp = new ContainsOnlyLetters(v,true);
      assertTrue(exp.evaluate().equals(Boolean.FALSE));

      v.clear();
      v.add(propertySensor3);
      exp = new ContainsOnlyLetters(v,true);
      assertTrue(exp.evaluate().equals(Boolean.FALSE));
     
      v.clear();
      v.add(new StringConstant(s4));
      exp = new ContainsOnlyDigits(v,true);
View Full Code Here

TOP

Related Classes of org.apache.imperius.spl.parser.expressions.impl.ContainsOnlyLetters

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.