Esempio n. 1
0
 private void buildOptions(AbstractMetadataRecord record, StringBuilder options) {
   if (!record.getProperties().isEmpty()) {
     for (Map.Entry<String, String> entry : record.getProperties().entrySet()) {
       addOption(options, entry.getKey(), entry.getValue());
     }
   }
 }
Esempio n. 2
0
 private void addCommonOptions(StringBuilder sb, AbstractMetadataRecord record) {
   if (record.isUUIDSet()
       && record.getUUID() != null
       && !record.getUUID().startsWith("tid:")) { // $NON-NLS-1$
     addOption(sb, UUID, record.getUUID());
   }
   if (record.getAnnotation() != null) {
     addOption(sb, ANNOTATION, record.getAnnotation());
   }
   if (record.getNameInSource() != null) {
     addOption(sb, NAMEINSOURCE, record.getNameInSource());
   }
 }