@Override public void restrict(FilterImpl f) { ArrayList<PropertyValue> list = new ArrayList<PropertyValue>(); for (StaticOperandImpl s : operand2) { if (!ValueConverter.canConvert( s.getPropertyType(), operand1.getPropertyType())) { throw new IllegalArgumentException( "Unsupported conversion from property type " + PropertyType.nameFromValue(s.getPropertyType()) + " to property type " + PropertyType.nameFromValue(operand1.getPropertyType())); } list.add(s.currentValue()); } if (list != null) { operand1.restrictList(f, list); } }
@Override public void restrict(FilterImpl f) { ArrayList<PropertyValue> list = new ArrayList<PropertyValue>(); for (StaticOperandImpl s : operand2) { if (!ValueConverter.canConvert( s.getPropertyType(), operand1.getPropertyType())) { throw new IllegalArgumentException( "Unsupported conversion from property type " + PropertyType.nameFromValue(s.getPropertyType()) + " to property type " + PropertyType.nameFromValue(operand1.getPropertyType())); } list.add(s.currentValue()); } if (list != null) { operand1.restrictList(f, list); } }
@Override public void restrict(FilterImpl f) { ArrayList<PropertyValue> list = new ArrayList<PropertyValue>(); for (StaticOperandImpl s : operand2) { if (!ValueConverter.canConvert( s.getPropertyType(), operand1.getPropertyType())) { throw new IllegalArgumentException( "Unsupported conversion from property type " + PropertyType.nameFromValue(s.getPropertyType()) + " to property type " + PropertyType.nameFromValue(operand1.getPropertyType())); } list.add(s.currentValue()); } if (list != null) { operand1.restrictList(f, list); } }
PropertyValue v = operand2.currentValue(); if (!ValueConverter.canConvert( operand2.getPropertyType(), operand1.getPropertyType())) { throw new IllegalArgumentException( "Unsupported conversion from property type " + PropertyType.nameFromValue(operand2.getPropertyType()) + " to property type " + PropertyType.nameFromValue(operand1.getPropertyType()));
PropertyValue v = operand2.currentValue(); if (!ValueConverter.canConvert( operand2.getPropertyType(), operand1.getPropertyType())) { throw new IllegalArgumentException( "Unsupported conversion from property type " + PropertyType.nameFromValue(operand2.getPropertyType()) + " to property type " + PropertyType.nameFromValue(operand1.getPropertyType()));
PropertyValue v = operand2.currentValue(); if (!ValueConverter.canConvert( operand2.getPropertyType(), operand1.getPropertyType())) { throw new IllegalArgumentException( "Unsupported conversion from property type " + PropertyType.nameFromValue(operand2.getPropertyType()) + " to property type " + PropertyType.nameFromValue(operand1.getPropertyType()));