Search in sources :

Example 1 with KitRace

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;
}
Also used : KitRace(pcgen.core.kit.KitRace) Race(pcgen.core.Race) ComplexParseResult(pcgen.rules.persistence.token.ComplexParseResult)

Aggregations

Race (pcgen.core.Race)1 KitRace (pcgen.core.kit.KitRace)1 ComplexParseResult (pcgen.rules.persistence.token.ComplexParseResult)1