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

Method getName

code/src/java/pcgen/core/Equipment.java:1377–1388  ·  view source on GitHub ↗

Gets the name attribute of the Equipment object. Note this is separate from toStirng to avoid side effects on keys. @return The name value

()

Source from the content-addressed store, hash-verified

1375 * @return The name value
1376 */
1377 public String getName()
1378 {
1379 final StringBuilder buffer = new StringBuilder(100);
1380
1381 buffer.append(getDisplayName());
1382 if (!modifiedName.isEmpty())
1383 {
1384 buffer.append(" (").append(modifiedName).append(")");
1385 }
1386
1387 return buffer.toString();
1388 }
1389
1390 /**
1391 * set's the player added note for this item

Callers 15

testInitWithEquipmentMethod · 0.95
addPurchasedEquipmentMethod · 0.95
addEquipmentMethod · 0.95
dataAddedMethod · 0.95
getExpandedWeaponsMethod · 0.95
compareToMethod · 0.95
formatSaveLineMethod · 0.95
getNonHeadedNameMethod · 0.95
getEquipmentFromNameMethod · 0.95

Calls 4

getDisplayNameMethod · 0.65
isEmptyMethod · 0.65
toStringMethod · 0.65
appendMethod · 0.45

Tested by 1

testInitWithEquipmentMethod · 0.76