Esempio n. 1
0
 public String getStringRepresentation() {
   if (type == ContentSourceType.HistoryVersion) {
     return FlexoLocalization.localizedForKey(type.getUnlocalizedStringRepresentation())
         + " "
         + (version != null ? version.versionAsString() : "???");
   }
   return FlexoLocalization.localizedForKey(type.getUnlocalizedStringRepresentation());
 }
Esempio n. 2
0
 @Override
 public ContentSourceType convertFromString(String value) {
   for (ContentSourceType cs : values()) {
     if (cs.getStringRepresentation().equals(value)) {
       return cs;
     }
   }
   return null;
 }
Esempio n. 3
0
 @Override
 public String convertToString(ContentSourceType value) {
   return value.getStringRepresentation();
 }