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

Method getAbbrev

code/src/java/pcgen/core/PCClass.java:124–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 * PCClass for PCClassLevel creation (in the factory)
123 */
124 public final String getAbbrev()
125 {
126 FactKey<String> fk = FactKey.valueOf("Abb");
127 String abb = getResolved(fk);
128 if (abb == null)
129 {
130 String name = getDisplayName();
131 abb = name.substring(0, Math.min(3, name.length()));
132 }
133 return abb;
134 }
135
136 /**
137 * Return the qualified key, usually used as the source in a

Callers 5

testGetPCCTextMethod · 0.95
testGetPCCTextMethod · 0.95
getClassAbbTokenMethod · 0.95
LevelTableModelMethod · 0.95

Calls 4

valueOfMethod · 0.95
getDisplayNameMethod · 0.65
getResolvedMethod · 0.45
minMethod · 0.45

Tested by 2

testGetPCCTextMethod · 0.76
testGetPCCTextMethod · 0.76