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

Method consolidatedProfName

code/src/java/pcgen/core/Equipment.java:3690–3709  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3688 }
3689
3690 public String consolidatedProfName()
3691 {
3692 if (isWeapon())
3693 {
3694 CDOMSingleRef<WeaponProf> wpRef = get(ObjectKey.WEAPON_PROF);
3695 if (wpRef != null)
3696 {
3697 return wpRef.get().getKeyName();
3698 }
3699 }
3700 else if (isArmor())
3701 {
3702 return getArmorProf().getKeyName();
3703 }
3704 else if (isShield())
3705 {
3706 return getShieldProf().getKeyName();
3707 }
3708 return "";
3709 }
3710
3711 private boolean hasConsolidatedProfName()
3712 {

Callers 4

getTokenMethod · 0.95
getTokenMethod · 0.95
getTokenMethod · 0.95
getEqTokenMethod · 0.80

Calls 7

isWeaponMethod · 0.95
isArmorMethod · 0.95
getArmorProfMethod · 0.95
isShieldMethod · 0.95
getShieldProfMethod · 0.95
getMethod · 0.65
getKeyNameMethod · 0.65

Tested by

no test coverage detected