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

Method appendSpecials

code/src/java/pcgen/io/PCGVer2Creator.java:1877–1904  ·  view source on GitHub ↗
(StringBuilder buffer, List<String> specials, String tag_group, String tag_item,
		int lvl)

Source from the content-addressed store, hash-verified

1875 }
1876
1877 private static void appendSpecials(StringBuilder buffer, List<String> specials, String tag_group, String tag_item,
1878 int lvl)
1879 {
1880 if ((specials != null) && (!specials.isEmpty()))
1881 {
1882 buffer.append('|');
1883 buffer.append(tag_group).append(':');
1884 buffer.append('[');
1885
1886 String del = Constants.EMPTY_STRING;
1887
1888 for (String special : specials)
1889 {
1890 buffer.append(del);
1891 buffer.append(tag_item).append(':');
1892 buffer.append(EntityEncoder.encode(special));
1893
1894 if (lvl == -1)
1895 {
1896 buffer.append(":-1"); //$NON-NLS-1$
1897 }
1898
1899 del = "|"; //$NON-NLS-1$
1900 }
1901
1902 buffer.append(']');
1903 }
1904 }
1905
1906 /*
1907 * ###############################################################

Callers 1

appendClassLinesMethod · 0.95

Calls 3

encodeMethod · 0.95
isEmptyMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected