mapping.getFilter() != null && mapping.getFilter().getType() == ConstraintType.text){ filtered = new HashSet<Object>(values);//start with all values } else { //start with the values filtered by the global filter filtered = new HashSet<Object>(globalFiltered); if(mapping.getFilter()!=null){ switch (mapping.getFilter().getType()) { case value: ValueConstraint valueConstraint = (ValueConstraint)mapping.getFilter(); processFilter(valueConstraint,filtered,valueFactory); break; case text: TextConstraint textConstraint = (TextConstraint)mapping.getFilter(); default: log.warn(String.format("Filter of type %s are not supported -> select all values! (Constraint=%s)", mapping.getFilter().getType(),mapping.getFilter())); break;
mapping.getFilter() != null && mapping.getFilter().getType() == ConstraintType.text){ filtered = new HashSet<Object>(values);//start with all values } else { //start with the values filtered by the global filter filtered = new HashSet<Object>(globalFiltered); if(mapping.getFilter()!=null){ switch (mapping.getFilter().getType()) { case value: ValueConstraint valueConstraint = (ValueConstraint)mapping.getFilter(); processFilter(valueConstraint,filtered,valueFactory); break; case text: TextConstraint textConstraint = (TextConstraint)mapping.getFilter(); default: log.warn(String.format("Filter of type %s are not supported -> select all values! (Constraint=%s)", mapping.getFilter().getType(),mapping.getFilter())); break;
if(mapping.getFilter() != null){ if(mapping.getFilter().getType() == ConstraintType.text){ serializeConstraint(builder,(TextConstraint)mapping.getFilter()); } else if(mapping.getFilter().getType() == ConstraintType.value){ serializeConstraint(builder,(ValueConstraint)mapping.getFilter()); } else { throw new IllegalStateException(String.format("Constraints of type %s are not supported! Please adapt this implementation!",mapping.getFilter().getType()));
if(mapping.getFilter() != null){ if(mapping.getFilter().getType() == ConstraintType.text){ serializeConstraint(builder,(TextConstraint)mapping.getFilter()); } else if(mapping.getFilter().getType() == ConstraintType.value){ serializeConstraint(builder,(ValueConstraint)mapping.getFilter()); } else { throw new IllegalStateException(String.format("Constraints of type %s are not supported! Please adapt this implementation!",mapping.getFilter().getType()));