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

Method createExportHandler

code/src/java/pcgen/io/ExportHandler.java:96–106  ·  view source on GitHub ↗
(File templateFile)

Source from the content-addressed store, hash-verified

94public abstract class ExportHandler
95{
96 public static ExportHandler createExportHandler(File templateFile)
97 {
98 if(templateFile != null && templateFile.getName().toLowerCase().endsWith(".ftl"))
99 {
100 return new FreeMarkerExportHandler(templateFile);
101 }
102 else
103 {
104 return new PCGenExportHandler(templateFile);
105 }
106 }
107
108 /** A constant stating that we are using JEP parsing */
109 private static final Float JEP_TRUE = 1.0f;

Callers 15

testAspectMethod · 0.95
testAspectCountMethod · 0.95
testSingleAspectMethod · 0.95
testHasAspectMethod · 0.95
testNameMethod · 0.95
testKeyMethod · 0.95
testAssociatedMethod · 0.95
testAssociatedCountMethod · 0.95
evaluatePartyTokenMethod · 0.95
testExecMethod · 0.95
testExecMethod · 0.95

Calls 1

getNameMethod · 0.65

Tested by 15

testAspectMethod · 0.76
testAspectCountMethod · 0.76
testSingleAspectMethod · 0.76
testHasAspectMethod · 0.76
testNameMethod · 0.76
testKeyMethod · 0.76
testAssociatedMethod · 0.76
testAssociatedCountMethod · 0.76
evaluatePartyTokenMethod · 0.76
testExecMethod · 0.76
testExecMethod · 0.76