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

Method unparse

code/src/java/plugin/lsttokens/SourcedateLst.java:91–101  ·  view source on GitHub ↗
(LoadContext context, CDOMObject obj)

Source from the content-addressed store, hash-verified

89 }
90
91 @Override
92 public String[] unparse(LoadContext context, CDOMObject obj)
93 {
94 Date date = context.getObjectContext().getObject(obj, ObjectKey.SOURCE_DATE);
95 if (date == null)
96 {
97 return null;
98 }
99 DateFormat df = DateFormat.getDateInstance(DateFormat.LONG);
100 return new String[]{df.format(date)};
101 }
102
103 @Override
104 public Class<CDOMObject> getTokenClass()

Callers

nothing calls this directly

Calls 3

formatMethod · 0.80
getObjectMethod · 0.65
getObjectContextMethod · 0.65

Tested by

no test coverage detected