private void writePropertyData ( ) { try ( PrintStream out = new PrintStream ( ExampleHelpers . openExampleFileOuputStream ( "properties.csv" ) ) ) { out . println ( "Id" + ",Label" + ",Description" + ",URL" + ",Datatype" + ",Uses in statements" + ",Items with such statements" + ",Uses in statements with qualifiers" + ",Uses in qualifiers" + ",Uses in references" + ",Uses total" + ",Related properties" ) ; List < Entry < PropertyIdValue , PropertyRecord > > list = new ArrayList < Entry < PropertyIdValue , PropertyRecord > > ( this . propertyRecords . entrySet ( ) ) ; Collections . sort ( list , new UsageRecordComparator ( ) ) ; for ( Entry < PropertyIdValue , PropertyRecord > entry : list ) { printPropertyRecord ( out , entry . getValue ( ) , entry . getKey ( ) ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } }
Writes the data collected about properties to a file .