示例#1
0
 @Override
 public ContentSourceType convertFromString(String value) {
   for (ContentSourceType cs : values()) {
     if (cs.getStringRepresentation().equals(value)) {
       return cs;
     }
   }
   return null;
 }
示例#2
0
 @Override
 public String convertToString(ContentSourceType value) {
   return value.getStringRepresentation();
 }