private String fullyQualifiedName(final Model model, final StringBuilder builder) { if (model.getParent() != null) { fullyQualifiedName(model.getParent(), builder); builder.append('.'); } builder.append(model.getName()); return builder.toString(); }
public static boolean isOrInCollection(final Model model) { return model != null && (model.isCollection() || isOrInCollection(model.getParent())); }
/** * @param model * @return the root model of the supplied model */ public Model root(final Model model) { return model.getParent() == null ? model : root(model.getParent()); }