MCPcopy Create free account
hub / github.com/Card-Forge/forge / read

Method read

forge-gui/src/main/java/forge/util/XmlReader.java:27–32  ·  view source on GitHub ↗
(String key, String defaultValue)

Source from the content-addressed store, hash-verified

25 }
26
27 public String read(String key, String defaultValue) {
28 if (currentElement.hasAttribute(key)) {
29 return currentElement.getAttribute(key);
30 }
31 return defaultValue;
32 }
33 public <E extends Enum<E>> E read(String key, E defaultValue) {
34 if (currentElement.hasAttribute(key)) {
35 return Enum.valueOf(defaultValue.getDeclaringClass(), currentElement.getAttribute(key));

Callers 15

ConquestDataMethod · 0.95
spriteToImageMethod · 0.45
testMethod · 0.45
initializeOracleTextFunction · 0.45
deckForgeCompat.pyFile · 0.45
processcardsFunction · 0.45
jsonOraclizer.pyFile · 0.45
fetch_textFunction · 0.45
fetchFunction · 0.45

Calls 3

parseChildElementsMethod · 0.95
setupMethod · 0.65
valueOfMethod · 0.45

Tested by

no test coverage detected