MCPcopy Create free account
hub / github.com/PCGen/pcgen / FactModelFactory

Class FactModelFactory

code/src/java/pcgen/output/factory/FactModelFactory.java:29–53  ·  view source on GitHub ↗

An FactModelFactory is a ModelFactory that can wrap an FactFacet and produce an FactFacetModel for a given CharID

Source from the content-addressed store, hash-verified

27 * an FactFacetModel for a given CharID
28 */
29public class FactModelFactory implements ModelFactory
30{
31 /**
32 * The FactFacet for which this FactModelFactory can produce a ModelFactory.
33 */
34 private final FactFacet facet;
35
36 /**
37 * Constructs a new FactModelFactory for the given FactFacet.
38 *
39 * @param ffacet
40 * The FactFacet for which this FactModelFactory will produce
41 * ModelFactory objects
42 */
43 public FactModelFactory(FactFacet ffacet)
44 {
45 facet = ffacet;
46 }
47
48 @Override
49 public FactFacetModel generate(CharID id)
50 {
51 return new FactFacetModel(id, facet);
52 }
53}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected