public static void debug_printFeatures(VariabilityModel vm) { EList<VariabilityModelEntity> feats = vm.getFeatures(); for (VariabilityModelEntity mve : feats) { if (mve instanceof Feature) { Feature feat = (Feature) mve; System.out.println("feature : " + feat.getName()); System.out.println("\t prompt: " + feat.getPrompt()); System.out.println("\t prompt condition : " + feat.getPromptCondition()); System.out.println("\t depends : " + feat.getDepends()); } } }
private void addAllToSet(Resource r, VariabilityModel model) { r.getContents().add(model); for (VariabilityModelEntity t : model.getFeatures()) { r.getContents().add(t); if (t.getDefaultValues().size() != 0) { for (DefaultValue dv : t.getDefaultValues()) { r.getContents().add(dv); } } if (t.getSelects().size() != 0) { for (Select s : t.getSelects()) { r.getContents().add(s); } } } }