use of pcgen.core.kit.KitRace in project pcgen by PCGen.
the class RaceToken method parseNonEmptyToken.
@Override
protected ParseResult parseNonEmptyToken(LoadContext context, KitRace kitRace, String value) {
if (Constants.NONESELECTED.equals(value)) {
ComplexParseResult pr = new ComplexParseResult();
pr.addWarningMessage("NONESELECTED is not necessary in KIT RACE: " + "Token is not processed");
return pr;
}
CDOMSingleRef<Race> ref = context.getReferenceContext().getCDOMReference(RACE_CLASS, value);
kitRace.setRace(ref);
return ParseResult.SUCCESS;
}
Aggregations