@@ -43,6 +43,7 @@ public class ActivityDefinition extends JSONBase {
4343 private LanguageMap name ;
4444 private LanguageMap description ;
4545 private URI type ;
46+ private URI moreInfo ;
4647 private Extensions extensions ;
4748 private InteractionType interactionType ;
4849 private ArrayList <String > correctResponsesPattern ;
@@ -51,7 +52,7 @@ public class ActivityDefinition extends JSONBase {
5152 private ArrayList <InteractionComponent > source ;
5253 private ArrayList <InteractionComponent > target ;
5354 private ArrayList <InteractionComponent > steps ;
54-
55+
5556 public ActivityDefinition (JsonNode jsonNode ) throws URISyntaxException {
5657 this ();
5758
@@ -60,6 +61,11 @@ public ActivityDefinition(JsonNode jsonNode) throws URISyntaxException {
6061 this .setType (new URI (typeNode .textValue ()));
6162 }
6263
64+ JsonNode moreInfoNode = jsonNode .path ("moreInfo" );
65+ if (! moreInfoNode .isMissingNode ()) {
66+ this .setMoreInfo (new URI (moreInfoNode .textValue ()));
67+ }
68+
6369 JsonNode nameNode = jsonNode .path ("name" );
6470 if (! nameNode .isMissingNode ()) {
6571 this .setName (new LanguageMap (nameNode ));
@@ -156,6 +162,9 @@ public ObjectNode toJSONNode(TCAPIVersion version) {
156162 if (this .type != null ) {
157163 node .put ("type" , this .getType ().toString ());
158164 }
165+ if (this .moreInfo != null ) {
166+ node .put ("moreInfo" , this .getMoreInfo ().toString ());
167+ }
159168 if (this .extensions != null ) {
160169 node .put ("extensions" , this .getExtensions ().toJSONNode (version ));
161170 }
@@ -233,12 +242,20 @@ public ObjectNode toJSONNode(TCAPIVersion version) {
233242 }
234243 return node ;
235244 }
236-
245+
237246 public void setType (URI type ) {
238247 this .type = type ;
239248 }
240249
241250 public void setType (String type ) throws URISyntaxException {
242251 this .setType (new URI (type ));
243252 }
253+
254+ public void setMoreInfo (URI moreInfo ) {
255+ this .moreInfo = moreInfo ;
256+ }
257+
258+ public void setMoreInfo (String moreInfo ) throws URISyntaxException {
259+ this .setMoreInfo (new URI (moreInfo ));
260+ }
244261}
0 commit comments