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

Method unparse

code/src/java/pcgen/cdom/content/fact/FactParser.java:98–114  ·  view source on GitHub ↗
(LoadContext context, T obj)

Source from the content-addressed store, hash-verified

96 }
97
98 @Override
99 public String[] unparse(LoadContext context, T obj)
100 {
101 FactKey<F> fk = def.getFactKey();
102 boolean removed = context.getObjectContext().wasRemoved(obj, fk);
103 List<String> results = new ArrayList<>(2);
104 if (removed)
105 {
106 results.add(Constants.LST_DOT_CLEAR);
107 }
108 Indirect<F> fact = context.getObjectContext().getFact(obj, fk);
109 if (fact != null)
110 {
111 results.add(fact.getUnconverted());
112 }
113 return results.toArray(new String[0]);
114 }
115
116}

Callers

nothing calls this directly

Calls 7

getFactKeyMethod · 0.65
wasRemovedMethod · 0.65
getObjectContextMethod · 0.65
addMethod · 0.65
getFactMethod · 0.65
getUnconvertedMethod · 0.65
toArrayMethod · 0.45

Tested by

no test coverage detected