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

Method getParentName

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

Gets the parentName of the Equipment object @return The parentName

()

Source from the content-addressed store, hash-verified

1526 * @return The parentName
1527 */
1528 public String getParentName()
1529 {
1530 final Equipment anEquip = getParent();
1531
1532 if (anEquip != null)
1533 {
1534 return anEquip.toString();
1535 }
1536
1537 if (isEquipped())
1538 {
1539 return "Equipped";
1540 }
1541
1542 if (numberCarried().intValue() > 0)
1543 {
1544 return "Carried";
1545 }
1546
1547 return "";
1548 }
1549
1550 /**
1551 * Callback function from PObject.passesPreReqToGainForList()

Callers 6

mergeEquipmentListMethod · 0.95
getLocationTokenMethod · 0.80
getLocationTokenMethod · 0.80
getLocationTokenMethod · 0.80
compareMethod · 0.80
getLocationTokenMethod · 0.80

Calls 5

getParentMethod · 0.95
toStringMethod · 0.95
isEquippedMethod · 0.95
numberCarriedMethod · 0.95
intValueMethod · 0.80

Tested by

no test coverage detected