private void checkValueConstraints(PropertyDefinitionData def, List<ValueData> newValues, int type)
throws ConstraintViolationException, 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;
try
{
if (type != PropertyType.BINARY)