private void displayNonVerbose(ConsoleApplication app,String categoryName,String typeName,Tag tag,Set<String> propertyNames){
  if (!app.isScriptFriendly()) {
    displayPropertyOptionKey(app);
    app.println();
    app.println();
  }
  TableBuilder builder=new TableBuilder();
  builder.appendHeading(INFO_DSCFG_HEADING_COMPONENT_NAME.get());
  builder.appendHeading(INFO_DSCFG_HEADING_COMPONENT_TYPE.get());
  builder.appendHeading(INFO_DSCFG_HEADING_PROPERTY_NAME.get());
  builder.appendHeading(INFO_DSCFG_HEADING_PROPERTY_OPTIONS.get());
  builder.appendHeading(INFO_DSCFG_HEADING_PROPERTY_SYNTAX.get());
  builder.addSortKey(0);
  builder.addSortKey(1);
  builder.addSortKey(2);
  for (  String category : categoryMap.keySet()) {
    if (categoryName != null && !categoryName.equals(category)) {
      continue;
    }
    Map<String,AbstractManagedObjectDefinition<?,?>> subTypes=categoryMap.get(category);
    for (    String type : subTypes.keySet()) {
      if (typeName != null && !typeName.equals(type)) {
        continue;
      }
      AbstractManagedObjectDefinition<?,?> mod=subTypes.get(type);
      if (cannotDisplay(app,mod,tag)) {
        continue;
      }
      Set<PropertyDefinition<?>> pds=getPropertyDefinitions(mod);
      for (      PropertyDefinition<?> pd : pds) {
        if (cannotDisplay(app,pd,propertyNames)) {
          continue;
        }
        builder.startRow();
        builder.appendCell(category);
        builder.appendCell(type);
        builder.appendCell(pd.getName());
        builder.appendCell(getPropertyOptionSummary(pd));
        PropertyDefinitionUsageBuilder v=new PropertyDefinitionUsageBuilder(false);
        builder.appendCell(v.getUsage(pd));
      }
    }
  }
  TablePrinter printer;
  if (app.isScriptFriendly()) {
    printer=createScriptFriendlyTablePrinter(app.getOutputStream());
  }
 else {
    printer=new TextTablePrinter(app.getOutputStream());
  }
  builder.print(printer);
}

private void displayNonVerbose ( ConsoleApplication app , String categoryName , String typeName , Tag tag , Set < String > propertyNames ) { if ( ! app . isScriptFriendly ( ) ) { displayPropertyOptionKey ( app ) ; app . println ( ) ; app . println ( ) ; } TableBuilder builder = new TableBuilder ( ) ; builder . appendHeading ( INFO_DSCFG_HEADING_COMPONENT_NAME . get ( ) ) ; builder . appendHeading ( INFO_DSCFG_HEADING_COMPONENT_TYPE . get ( ) ) ; builder . appendHeading ( INFO_DSCFG_HEADING_PROPERTY_NAME . get ( ) ) ; builder . appendHeading ( INFO_DSCFG_HEADING_PROPERTY_OPTIONS . get ( ) ) ; builder . appendHeading ( INFO_DSCFG_HEADING_PROPERTY_SYNTAX . get ( ) ) ; builder . addSortKey ( 0 ) ; builder . addSortKey ( 1 ) ; builder . addSortKey ( 2 ) ; for ( String category : categoryMap . keySet ( ) ) { if ( categoryName != null && ! categoryName . equals ( category ) ) { continue ; } Map < String , AbstractManagedObjectDefinition < ? , ? > > subTypes = categoryMap . get ( category ) ; for ( String type : subTypes . keySet ( ) ) { if ( typeName != null && ! typeName . equals ( type ) ) { continue ; } AbstractManagedObjectDefinition < ? , ? > mod = subTypes . get ( type ) ; if ( cannotDisplay ( app , mod , tag ) ) { continue ; } Set < PropertyDefinition < ? > > pds = getPropertyDefinitions ( mod ) ; for ( PropertyDefinition < ? > pd : pds ) { if ( cannotDisplay ( app , pd , propertyNames ) ) { continue ; } builder . startRow ( ) ; builder . appendCell ( category ) ; builder . appendCell ( type ) ; builder . appendCell ( pd . getName ( ) ) ; builder . appendCell ( getPropertyOptionSummary ( pd ) ) ; PropertyDefinitionUsageBuilder v = new PropertyDefinitionUsageBuilder ( false ) ; builder . appendCell ( v . getUsage ( pd ) ) ; } } } TablePrinter printer ; if ( app . isScriptFriendly ( ) ) { printer = createScriptFriendlyTablePrinter ( app . getOutputStream ( ) ) ; } else { printer = new TextTablePrinter ( app . getOutputStream ( ) ) ; } builder . print ( printer ) ; }
output property summary table .
