continue; // ignore system properties for validation
}
// Check if all properties are known in the type
if (!typeContainsProperty(typeDef, propertyId)) {
throw new CmisConstraintException("Unknown property "
+ propertyId + " in type " + typeDef.getId());
}
// check all type specific constraints:
PropertyDefinition<T> propDef = getPropertyDefinition(typeDef,
propertyId);
PropertyValidator<T> validator = createPropertyValidator(propDef);
validator.validate(propDef, (PropertyData<T>) prop);
}
}
if (checkMandatory && !propDefsRequired.isEmpty()) {
throw new CmisConstraintException("The following mandatory properties are missing: " + propDefsRequired);
}
}