super();
}
@Override
public void validateObject(ProjectPath path, Validator validator) {
EmbeddableAttribute emAttribute = (EmbeddableAttribute) path.getObject();
// Must have name
if (Util.isEmptyString(emAttribute.getName())) {
validator.registerError("Unnamed ObjAttribute.", path);
}
// skip validation of inherited attributes
if (path.getObjectParent() != null
&& path.getObjectParent() != emAttribute.getEmbeddable()) {
return;
}
// all attributes must have type
if (Util.isEmptyString(emAttribute.getType())) {
validator.registerWarning("EmbeddableAttribute has no type.", path);
}
}