Skip to content

Commit 98b1592

Browse files
committed
populate extensionFields; add public access to the LoadingOptions
1 parent 16d3291 commit 98b1592

File tree

150 files changed

+959
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+959
-1
lines changed

src/main/java/org/w3id/cwl/cwl1_2/ArraySchema.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
package org.w3id.cwl.cwl1_2;
1616

17+
import org.w3id.cwl.cwl1_2.utils.LoadingOptions;
1718
import org.w3id.cwl.cwl1_2.utils.Saveable;
1819

1920
/**
@@ -22,6 +23,7 @@
2223
public interface ArraySchema extends Saveable {
2324

2425
java.util.Map<String, Object> getExtensionFields();
26+
LoadingOptions getLoadingOptions();
2527

2628
/**
2729
* Getter for property <I>https://w3id.org/cwl/salad#items</I><BR>

src/main/java/org/w3id/cwl/cwl1_2/ArraySchemaImpl.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public class ArraySchemaImpl extends SaveableImpl implements ArraySchema {
2727
private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();
2828
private java.util.Map<String, Object> extensionFields_ =
2929
new java.util.HashMap<String, Object>();
30+
public LoadingOptions getLoadingOptions() {
31+
return this.loadingOptions_;
32+
}
3033
public java.util.Map<String, Object> getExtensionFields() {
3134
return this.extensionFields_;
3235
}
@@ -112,5 +115,14 @@ public ArraySchemaImpl(
112115
}
113116
this.items = (Object) items;
114117
this.type = (Array_name) type;
118+
for (String field:__doc.keySet()) {
119+
if (!attrs.contains(field)) {
120+
if (field.contains(":")) {
121+
String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null);
122+
extensionFields_.put(expanded_field, __doc.get(field));
123+
}
124+
}
125+
}
115126
}
127+
private java.util.List<String> attrs = java.util.Arrays.asList("items", "type");
116128
}

src/main/java/org/w3id/cwl/cwl1_2/CWLArraySchema.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
package org.w3id.cwl.cwl1_2;
1616

17+
import org.w3id.cwl.cwl1_2.utils.LoadingOptions;
1718
import org.w3id.cwl.cwl1_2.utils.Saveable;
1819

1920
/**
@@ -22,6 +23,7 @@
2223
public interface CWLArraySchema extends ArraySchema, Saveable {
2324

2425
java.util.Map<String, Object> getExtensionFields();
26+
LoadingOptions getLoadingOptions();
2527

2628
/**
2729
* Getter for property <I>https://w3id.org/cwl/salad#items</I><BR>

src/main/java/org/w3id/cwl/cwl1_2/CWLArraySchemaImpl.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public class CWLArraySchemaImpl extends SaveableImpl implements CWLArraySchema {
2727
private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();
2828
private java.util.Map<String, Object> extensionFields_ =
2929
new java.util.HashMap<String, Object>();
30+
public LoadingOptions getLoadingOptions() {
31+
return this.loadingOptions_;
32+
}
3033
public java.util.Map<String, Object> getExtensionFields() {
3134
return this.extensionFields_;
3235
}
@@ -112,5 +115,14 @@ public CWLArraySchemaImpl(
112115
}
113116
this.items = (Object) items;
114117
this.type = (Array_name) type;
118+
for (String field:__doc.keySet()) {
119+
if (!attrs.contains(field)) {
120+
if (field.contains(":")) {
121+
String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null);
122+
extensionFields_.put(expanded_field, __doc.get(field));
123+
}
124+
}
125+
}
115126
}
127+
private java.util.List<String> attrs = java.util.Arrays.asList("items", "type");
116128
}

src/main/java/org/w3id/cwl/cwl1_2/CWLRecordField.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
package org.w3id.cwl.cwl1_2;
1616

17+
import org.w3id.cwl.cwl1_2.utils.LoadingOptions;
1718
import org.w3id.cwl.cwl1_2.utils.Saveable;
1819

1920
/**
@@ -22,6 +23,7 @@
2223
public interface CWLRecordField extends RecordField, Saveable {
2324

2425
java.util.Map<String, Object> getExtensionFields();
26+
LoadingOptions getLoadingOptions();
2527

2628
/**
2729
* Getter for property <I>https://w3id.org/cwl/salad#RecordField/name</I><BR>

src/main/java/org/w3id/cwl/cwl1_2/CWLRecordFieldImpl.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public class CWLRecordFieldImpl extends SaveableImpl implements CWLRecordField {
2727
private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();
2828
private java.util.Map<String, Object> extensionFields_ =
2929
new java.util.HashMap<String, Object>();
30+
public LoadingOptions getLoadingOptions() {
31+
return this.loadingOptions_;
32+
}
3033
public java.util.Map<String, Object> getExtensionFields() {
3134
return this.extensionFields_;
3235
}
@@ -159,5 +162,14 @@ public CWLRecordFieldImpl(
159162
this.doc = (Object) doc;
160163
this.name = (String) name;
161164
this.type = (Object) type;
165+
for (String field:__doc.keySet()) {
166+
if (!attrs.contains(field)) {
167+
if (field.contains(":")) {
168+
String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null);
169+
extensionFields_.put(expanded_field, __doc.get(field));
170+
}
171+
}
172+
}
162173
}
174+
private java.util.List<String> attrs = java.util.Arrays.asList("doc", "name", "type");
163175
}

src/main/java/org/w3id/cwl/cwl1_2/CWLRecordSchema.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
package org.w3id.cwl.cwl1_2;
1616

17+
import org.w3id.cwl.cwl1_2.utils.LoadingOptions;
1718
import org.w3id.cwl.cwl1_2.utils.Saveable;
1819

1920
/**
@@ -22,6 +23,7 @@
2223
public interface CWLRecordSchema extends RecordSchema, Saveable {
2324

2425
java.util.Map<String, Object> getExtensionFields();
26+
LoadingOptions getLoadingOptions();
2527

2628
/**
2729
* Getter for property <I>https://w3id.org/cwl/salad#fields</I><BR>

src/main/java/org/w3id/cwl/cwl1_2/CWLRecordSchemaImpl.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public class CWLRecordSchemaImpl extends SaveableImpl implements CWLRecordSchema
2727
private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();
2828
private java.util.Map<String, Object> extensionFields_ =
2929
new java.util.HashMap<String, Object>();
30+
public LoadingOptions getLoadingOptions() {
31+
return this.loadingOptions_;
32+
}
3033
public java.util.Map<String, Object> getExtensionFields() {
3134
return this.extensionFields_;
3235
}
@@ -118,5 +121,14 @@ public CWLRecordSchemaImpl(
118121
}
119122
this.fields = (java.util.Optional<java.util.List<Object>>) fields;
120123
this.type = (Record_name) type;
124+
for (String field:__doc.keySet()) {
125+
if (!attrs.contains(field)) {
126+
if (field.contains(":")) {
127+
String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null);
128+
extensionFields_.put(expanded_field, __doc.get(field));
129+
}
130+
}
131+
}
121132
}
133+
private java.util.List<String> attrs = java.util.Arrays.asList("fields", "type");
122134
}

src/main/java/org/w3id/cwl/cwl1_2/CommandInputArraySchema.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
package org.w3id.cwl.cwl1_2;
1616

17+
import org.w3id.cwl.cwl1_2.utils.LoadingOptions;
1718
import org.w3id.cwl.cwl1_2.utils.Saveable;
1819

1920
/**
@@ -22,6 +23,7 @@
2223
public interface CommandInputArraySchema extends InputArraySchema, CommandInputSchema, CommandLineBindable, Saveable {
2324

2425
java.util.Map<String, Object> getExtensionFields();
26+
LoadingOptions getLoadingOptions();
2527

2628
/**
2729
* Getter for property <I>https://w3id.org/cwl/cwl#IOSchema/name</I><BR>

src/main/java/org/w3id/cwl/cwl1_2/CommandInputArraySchemaImpl.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public class CommandInputArraySchemaImpl extends SaveableImpl implements Command
2727
private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();
2828
private java.util.Map<String, Object> extensionFields_ =
2929
new java.util.HashMap<String, Object>();
30+
public LoadingOptions getLoadingOptions() {
31+
return this.loadingOptions_;
32+
}
3033
public java.util.Map<String, Object> getExtensionFields() {
3134
return this.extensionFields_;
3235
}
@@ -246,5 +249,14 @@ public CommandInputArraySchemaImpl(
246249
this.doc = (Object) doc;
247250
this.name = (java.util.Optional<String>) name;
248251
this.inputBinding = (java.util.Optional<CommandLineBinding>) inputBinding;
252+
for (String field:__doc.keySet()) {
253+
if (!attrs.contains(field)) {
254+
if (field.contains(":")) {
255+
String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null);
256+
extensionFields_.put(expanded_field, __doc.get(field));
257+
}
258+
}
259+
}
249260
}
261+
private java.util.List<String> attrs = java.util.Arrays.asList("items", "type", "label", "doc", "name", "inputBinding");
250262
}

0 commit comments

Comments
 (0)