boolean parent(String typeRef) { checkType(); XTypeRef parent = type.getParent(); if (parent != null) { throw new SidoMoreThanOneParentException(type.getName()); } else { type.setParent(new XTypeRef(typeRef)); return true; } }