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

Method getLocationToken

code/src/java/pcgen/io/exporttoken/EqToken.java:802–810  ·  view source on GitHub ↗

Get Location Token @param eq @return Location Token

(Equipment eq)

Source from the content-addressed store, hash-verified

800 * @return Location Token
801 */
802 public static String getLocationToken(Equipment eq)
803 {
804 Equipment obj = eq.getParent();
805 if (obj != null)
806 {
807 return OutputNameFormatting.getOutputName(obj);
808 }
809 return eq.getParentName();
810 }
811
812 /**
813 * Get Long Name Token

Callers 1

getEqTokenMethod · 0.95

Calls 3

getOutputNameMethod · 0.95
getParentNameMethod · 0.80
getParentMethod · 0.65

Tested by

no test coverage detected