Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 public static boolean isOrInCollection(final Model model) {
   return model != null && (model.isCollection() || isOrInCollection(model.getParent()));
 }
Ejemplo n.º 3
0
 /**
  * @param model
  * @return the root model of the supplied model
  */
 public Model root(final Model model) {
   return model.getParent() == null ? model : root(model.getParent());
 }