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

Method getLoadToken

code/src/java/pcgen/io/exporttoken/TotalToken.java:92–116  ·  view source on GitHub ↗

Get the LOAD sub token @param display @return the LOAD sub token

(CharacterDisplay display)

Source from the content-addressed store, hash-verified

90 * @return the LOAD sub token
91 */
92 public static String getLoadToken(CharacterDisplay display)
93 {
94 Load load = display.getLoadType();
95
96 switch (load)
97 {
98 case LIGHT:
99 return CoreUtility.capitalizeFirstLetter(Load.LIGHT.toString());
100
101 case MEDIUM:
102 return CoreUtility.capitalizeFirstLetter(Load.MEDIUM.toString());
103
104 case HEAVY:
105 return CoreUtility.capitalizeFirstLetter(Load.HEAVY.toString());
106
107 case OVERLOAD:
108 return CoreUtility.capitalizeFirstLetter(Load.OVERLOAD.toString());
109
110 default:
111 Logging.errorPrint(
112 "Unknown load constant detected in TokenTotal.getLoadToken, the constant was " + load + '.');
113
114 return "Unknown";
115 }
116 }
117
118 /**
119 * Get the VALUE sub token

Callers 3

getTokenMethod · 0.95
getTokenMethod · 0.45
refreshTotalWeightMethod · 0.45

Calls 4

capitalizeFirstLetterMethod · 0.95
errorPrintMethod · 0.95
toStringMethod · 0.65
getLoadTypeMethod · 0.45

Tested by

no test coverage detected