}
private void checkValueConstraints(PropertyDefinitionData def, List<ValueData> newValues, int type)
throws RepositoryException
{
ValueConstraintsMatcher constraints =
new ValueConstraintsMatcher(def.getValueConstraints(), session.getLocationFactory(),
session.getTransientNodesManager(), session.getWorkspace().getNodeTypesHolder());
for (ValueData value : newValues)
{
if (!constraints.match(value, type))
{
String strVal = null;
if (type != PropertyType.BINARY)
{
strVal = ValueDataUtil.getString(value);