Exemple #1
0
 /** {@inheritDoc} */
 @Override
 protected void setValue(String valueString, String defaultValueString) throws XMLStreamException {
   String id = (valueString != null) ? valueString : defaultValueString;
   FreeColModFile fcmf = Mods.getModFile(id);
   if (fcmf == null) {
     throw new XMLStreamException("Could not find mod for: " + id);
   }
   setValue(fcmf);
 }
Exemple #2
0
 /**
  * Get the <code>Choices</code> value.
  *
  * @return a <code>List<FreeColModFile></code> value
  */
 public final List<FreeColModFile> getChoices() {
   return new ArrayList<FreeColModFile>(Mods.getAllMods());
 }