예제 #1
0
 @Override
 public String toString() {
   StringBuilder builder = new StringBuilder();
   for (SelectableFeature feature : features) {
     if (feature.getSelection() == Selection.SELECTED
         && feature.getFeature().getStructure().isConcrete()) {
       builder.append(feature.getFeature().getName());
       builder.append("\n");
     }
   }
   return builder.toString();
 }
예제 #2
0
 public List<IFeature> getSelectedFeatures() {
   final List<IFeature> result = new ArrayList<IFeature>();
   for (SelectableFeature feature : features) {
     if (feature.getSelection() == Selection.SELECTED) {
       result.add(feature.getFeature());
     }
   }
   return result;
 }
예제 #3
0
 public List<SelectableFeature> getManualFeatures() {
   final List<SelectableFeature> featureList = new LinkedList<SelectableFeature>();
   for (SelectableFeature selectableFeature : features) {
     if (selectableFeature.getAutomatic() == Selection.UNDEFINED
         && !selectableFeature.getFeature().getStructure().hasHiddenParent()) {
       featureList.add(selectableFeature);
     }
   }
   return featureList;
 }