if (d.getAllowedParentsSize() > 0){
// The name must be hierarchic
if (d.getIsNamedBy() == null){
ResultException ex = new ResultException();
ex.addError("The following class indicates that it has allowed parents, but isn't a named object: " + d.getName());
throw(ex);
}
if (!d.getIsNamedBy().getType().getIsHierarchicName()){
ResultException ex = new ResultException();
ex.addError("The following class indicates that it has allowed parents, but its naming attribute isn't heirarchic: " + d.getName());