test_class.file: rice-middleware/krms/impl/src/test/java/org/kuali/rice/krms/impl/repository/mock/CriteriaMatcherInMemoryTest.java
test_class.identifier: CriteriaMatcherInMemoryTest
test_case.body: @Test
      public void testExtractValue() {
  //        addCont(orgs, "ID-AA", "AA", "Automobile Association", "Consumer", "true", "Automobile Association towing");
          ContextDefinition org = this.getTestContexts().get(0);
          assertEquals("ID-AA", CriteriaMatcherInMemory.extractValue("id", org));
          assertEquals("AA", CriteriaMatcherInMemory.extractValue("namespace", org));
          assertEquals("Automobile Association", CriteriaMatcherInMemory.extractValue("name", org));
          assertEquals("Consumer", CriteriaMatcherInMemory.extractValue("typeId", org));
          assertEquals("true", CriteriaMatcherInMemory.extractValue("active", org));
          assertEquals("Automobile Association towing", CriteriaMatcherInMemory.extractValue("description", org));
      }
test_case.class_method_signature: CriteriaMatcherInMemoryTest.testExtractValue()
test_case.full_signature: @Test public void testExtractValue()
test_case.identifier: testExtractValue
test_case.invocations: get getTestContexts assertEquals extractValue assertEquals extractValue assertEquals extractValue assertEquals extractValue assertEquals extractValue assertEquals extractValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExtractValue()
focal_class.declarator: criteria
focal_class.modifier: private
focal_class.original_string: private QueryByCriteria criteria;
focal_class.type: QueryByCriteria
focal_class.var_name: criteria
focal_class.declarator: patternCache = new HashMap<String, Pattern>()
focal_class.modifier: private transient
focal_class.original_string: private transient Map<String, Pattern> patternCache = new HashMap<String, Pattern>();
focal_class.type: Map<String, Pattern>
focal_class.var_name: patternCache
focal_class.file: rice-middleware/krms/impl/src/main/java/org/kuali/rice/krms/impl/repository/mock/CriteriaMatcherInMemory.java
focal_class.identifier: CriteriaMatcherInMemory
focal_class.class_method_signature: CriteriaMatcherInMemory.CriteriaMatcherInMemory()
focal_class.full_signature: public  CriteriaMatcherInMemory()
focal_class.identifier: CriteriaMatcherInMemory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  CriteriaMatcherInMemory()
focal_class.class_method_signature: CriteriaMatcherInMemory.getCriteria()
focal_class.full_signature: public QueryByCriteria getCriteria()
focal_class.identifier: getCriteria
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: QueryByCriteria
focal_class.signature: QueryByCriteria getCriteria()
focal_class.class_method_signature: CriteriaMatcherInMemory.setCriteria(QueryByCriteria criteria)
focal_class.full_signature: public void setCriteria(QueryByCriteria criteria)
focal_class.identifier: setCriteria
focal_class.modifiers: public
focal_class.parameters: (QueryByCriteria criteria)
focal_class.return: void
focal_class.signature: void setCriteria(QueryByCriteria criteria)
focal_class.class_method_signature: CriteriaMatcherInMemory.findMatching(Collection<T> all)
focal_class.full_signature: public Collection<T> findMatching(Collection<T> all)
focal_class.identifier: findMatching
focal_class.modifiers: public
focal_class.parameters: (Collection<T> all)
focal_class.return: Collection<T>
focal_class.signature: Collection<T> findMatching(Collection<T> all)
focal_class.class_method_signature: CriteriaMatcherInMemory.matches(T infoObject)
focal_class.full_signature: public boolean matches(T infoObject)
focal_class.identifier: matches
focal_class.modifiers: public
focal_class.parameters: (T infoObject)
focal_class.return: boolean
focal_class.signature: boolean matches(T infoObject)
focal_class.class_method_signature: CriteriaMatcherInMemory.matches(T infoObject, Predicate predicate)
focal_class.full_signature: protected boolean matches(T infoObject, Predicate predicate)
focal_class.identifier: matches
focal_class.modifiers: protected
focal_class.parameters: (T infoObject, Predicate predicate)
focal_class.return: boolean
focal_class.signature: boolean matches(T infoObject, Predicate predicate)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesOr(T infoObject, OrPredicate predicate)
focal_class.full_signature: private boolean matchesOr(T infoObject, OrPredicate predicate)
focal_class.identifier: matchesOr
focal_class.modifiers: private
focal_class.parameters: (T infoObject, OrPredicate predicate)
focal_class.return: boolean
focal_class.signature: boolean matchesOr(T infoObject, OrPredicate predicate)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesAnd(T infoObject, AndPredicate predicate)
focal_class.full_signature: private boolean matchesAnd(T infoObject, AndPredicate predicate)
focal_class.identifier: matchesAnd
focal_class.modifiers: private
focal_class.parameters: (T infoObject, AndPredicate predicate)
focal_class.return: boolean
focal_class.signature: boolean matchesAnd(T infoObject, AndPredicate predicate)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesEqual(T infoObject, EqualPredicate predicate)
focal_class.full_signature: private boolean matchesEqual(T infoObject, EqualPredicate predicate)
focal_class.identifier: matchesEqual
focal_class.modifiers: private
focal_class.parameters: (T infoObject, EqualPredicate predicate)
focal_class.return: boolean
focal_class.signature: boolean matchesEqual(T infoObject, EqualPredicate predicate)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesLessThan(T infoObject, LessThanPredicate predicate)
focal_class.full_signature: private boolean matchesLessThan(T infoObject, LessThanPredicate predicate)
focal_class.identifier: matchesLessThan
focal_class.modifiers: private
focal_class.parameters: (T infoObject, LessThanPredicate predicate)
focal_class.return: boolean
focal_class.signature: boolean matchesLessThan(T infoObject, LessThanPredicate predicate)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesLessThanOrEqual(T infoObject, LessThanOrEqualPredicate predicate)
focal_class.full_signature: private boolean matchesLessThanOrEqual(T infoObject, LessThanOrEqualPredicate predicate)
focal_class.identifier: matchesLessThanOrEqual
focal_class.modifiers: private
focal_class.parameters: (T infoObject, LessThanOrEqualPredicate predicate)
focal_class.return: boolean
focal_class.signature: boolean matchesLessThanOrEqual(T infoObject, LessThanOrEqualPredicate predicate)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesGreaterThan(T infoObject, GreaterThanPredicate predicate)
focal_class.full_signature: private boolean matchesGreaterThan(T infoObject, GreaterThanPredicate predicate)
focal_class.identifier: matchesGreaterThan
focal_class.modifiers: private
focal_class.parameters: (T infoObject, GreaterThanPredicate predicate)
focal_class.return: boolean
focal_class.signature: boolean matchesGreaterThan(T infoObject, GreaterThanPredicate predicate)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesGreaterThanOrEqual(T infoObject, GreaterThanOrEqualPredicate predicate)
focal_class.full_signature: private boolean matchesGreaterThanOrEqual(T infoObject, GreaterThanOrEqualPredicate predicate)
focal_class.identifier: matchesGreaterThanOrEqual
focal_class.modifiers: private
focal_class.parameters: (T infoObject, GreaterThanOrEqualPredicate predicate)
focal_class.return: boolean
focal_class.signature: boolean matchesGreaterThanOrEqual(T infoObject, GreaterThanOrEqualPredicate predicate)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesLike(T infoObject, LikePredicate predicate)
focal_class.full_signature: private boolean matchesLike(T infoObject, LikePredicate predicate)
focal_class.identifier: matchesLike
focal_class.modifiers: private
focal_class.parameters: (T infoObject, LikePredicate predicate)
focal_class.return: boolean
focal_class.signature: boolean matchesLike(T infoObject, LikePredicate predicate)
focal_class.class_method_signature: CriteriaMatcherInMemory.extractValue(String fieldPath, Object infoObject)
focal_class.full_signature: protected static Object extractValue(String fieldPath, Object infoObject)
focal_class.identifier: extractValue
focal_class.modifiers: protected static
focal_class.parameters: (String fieldPath, Object infoObject)
focal_class.return: Object
focal_class.signature: Object extractValue(String fieldPath, Object infoObject)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesEqual(Object dataValue, Object criteriaValue)
focal_class.full_signature: public static boolean matchesEqual(Object dataValue, Object criteriaValue)
focal_class.identifier: matchesEqual
focal_class.modifiers: public static
focal_class.parameters: (Object dataValue, Object criteriaValue)
focal_class.return: boolean
focal_class.signature: boolean matchesEqual(Object dataValue, Object criteriaValue)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesLessThan(Object dataValue, Object criteriaValue)
focal_class.full_signature: public static boolean matchesLessThan(Object dataValue, Object criteriaValue)
focal_class.identifier: matchesLessThan
focal_class.modifiers: public static
focal_class.parameters: (Object dataValue, Object criteriaValue)
focal_class.return: boolean
focal_class.signature: boolean matchesLessThan(Object dataValue, Object criteriaValue)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesGreaterThan(Object dataValue, Object criteriaValue)
focal_class.full_signature: public static boolean matchesGreaterThan(Object dataValue, Object criteriaValue)
focal_class.identifier: matchesGreaterThan
focal_class.modifiers: public static
focal_class.parameters: (Object dataValue, Object criteriaValue)
focal_class.return: boolean
focal_class.signature: boolean matchesGreaterThan(Object dataValue, Object criteriaValue)
focal_class.class_method_signature: CriteriaMatcherInMemory.getPattern(String expr)
focal_class.full_signature: private Pattern getPattern(String expr)
focal_class.identifier: getPattern
focal_class.modifiers: private
focal_class.parameters: (String expr)
focal_class.return: Pattern
focal_class.signature: Pattern getPattern(String expr)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesLike(Object dataValue, Object criteriaValue)
focal_class.full_signature: public boolean matchesLike(Object dataValue, Object criteriaValue)
focal_class.identifier: matchesLike
focal_class.modifiers: public
focal_class.parameters: (Object dataValue, Object criteriaValue)
focal_class.return: boolean
focal_class.signature: boolean matchesLike(Object dataValue, Object criteriaValue)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesLikeCachingPattern(final String str, final String expr)
focal_class.full_signature: public boolean matchesLikeCachingPattern(final String str, final String expr)
focal_class.identifier: matchesLikeCachingPattern
focal_class.modifiers: public
focal_class.parameters: (final String str, final String expr)
focal_class.return: boolean
focal_class.signature: boolean matchesLikeCachingPattern(final String str, final String expr)
focal_class.class_method_signature: CriteriaMatcherInMemory.compilePattern(final String expr)
focal_class.full_signature: private static Pattern compilePattern(final String expr)
focal_class.identifier: compilePattern
focal_class.modifiers: private static
focal_class.parameters: (final String expr)
focal_class.return: Pattern
focal_class.signature: Pattern compilePattern(final String expr)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesLike(final String str, final String expr)
focal_class.full_signature: public static boolean matchesLike(final String str, final String expr)
focal_class.identifier: matchesLike
focal_class.modifiers: public static
focal_class.parameters: (final String str, final String expr)
focal_class.return: boolean
focal_class.signature: boolean matchesLike(final String str, final String expr)
focal_class.class_method_signature: CriteriaMatcherInMemory.matchesLike(final String str, final Pattern p)
focal_class.full_signature: private static boolean matchesLike(final String str, final Pattern p)
focal_class.identifier: matchesLike
focal_class.modifiers: private static
focal_class.parameters: (final String str, final Pattern p)
focal_class.return: boolean
focal_class.signature: boolean matchesLike(final String str, final Pattern p)
focal_class.class_method_signature: CriteriaMatcherInMemory.quotemeta(String s)
focal_class.full_signature: private static String quotemeta(String s)
focal_class.identifier: quotemeta
focal_class.modifiers: private static
focal_class.parameters: (String s)
focal_class.return: String
focal_class.signature: String quotemeta(String s)
focal_method.body: protected static Object extractValue(String fieldPath, Object infoObject) {
  
          try {
              if (infoObject == null) {
                  return null;
              }
              Object value = PropertyUtils.getNestedProperty(infoObject, fieldPath);
              // translate boolean to string so we can compare
              // Have to do this because RICE's predicate does not support boolean 
              // because it is database oriented and most DB do not support booleans natively.
              if (value instanceof Boolean) {
                  return value.toString();
              }
              // See Rice's CriteriaSupportUtils.determineCriteriaValue where data normalized 
              // translate date to joda DateTime because that is what RICE PredicateFactory does 
              // similar to rest of the types 
              if (value instanceof Date) {
                  return new DateTime ((Date) value);
              }
              if (value instanceof Calendar) {
                  return new DateTime ((Calendar) value);
              }
              if (value instanceof Short) {
                  return BigInteger.valueOf(((Short) value).longValue());
              }
              if (value instanceof AtomicLong) {
                  return BigInteger.valueOf(((AtomicLong) value).longValue());
              }
              if (value instanceof AtomicInteger) {
                  return BigInteger.valueOf(((AtomicInteger) value).longValue());
              }
              if (value instanceof Integer) {
                  return BigInteger.valueOf(((Integer)value).longValue());
              }
              if (value instanceof Long) {
                  return BigInteger.valueOf(((Long)value).longValue());
              }
              if (value instanceof Float) {
                  return BigDecimal.valueOf(((Float)value).doubleValue());
              }
              if (value instanceof Double) {
                  return BigDecimal.valueOf(((Double)value).doubleValue());
              }
              return value;
          } catch (NestedNullException ex) {
              return null;
          }  catch (IllegalAccessException ex) {
              throw new IllegalArgumentException(fieldPath, ex);
          } catch (InvocationTargetException ex) {
              throw new IllegalArgumentException(fieldPath, ex);
          } catch (NoSuchMethodException ex) {
              throw new IllegalArgumentException(fieldPath, ex);
          }
  //        }
  //        return value;
      }
focal_method.class_method_signature: CriteriaMatcherInMemory.extractValue(String fieldPath, Object infoObject)
focal_method.full_signature: protected static Object extractValue(String fieldPath, Object infoObject)
focal_method.identifier: extractValue
focal_method.invocations: getNestedProperty toString valueOf longValue valueOf longValue valueOf longValue valueOf longValue valueOf longValue valueOf doubleValue valueOf doubleValue
focal_method.modifiers: protected static
focal_method.parameters: (String fieldPath, Object infoObject)
focal_method.return: Object
focal_method.signature: Object extractValue(String fieldPath, Object infoObject)