diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameter.java
index 81bf8926..1eed93a4 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameter.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameter.java
@@ -27,12 +27,12 @@ public interface CommandInputParameter extends InputParameter, Saveable {
LoadingOptions getLoadingOptions();
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- java.util.Optional getId();
+ String getId();
/**
* Getter for property https://w3id.org/cwl/cwl#Labeled/label
*
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameterImpl.java
index fd7d5091..3ad9056f 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameterImpl.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameterImpl.java
@@ -35,15 +35,15 @@ public java.util.Map getExtensionFields() {
return this.extensionFields_;
}
- private java.util.Optional id;
+ private String id;
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- public java.util.Optional getId() {
+ public String getId() {
return this.id;
}
@@ -275,13 +275,13 @@ public CommandInputParameterImpl(
if (__loadingOptions != null) {
this.loadingOptions_ = __loadingOptions;
}
- java.util.Optional id;
+ String id;
if (__doc.containsKey("id")) {
try {
id =
LoaderInstances
- .uri_optional_StringInstance_True_False_None_None
+ .uri_StringInstance_True_False_None_None
.loadField(__doc.get("id"), __baseUri, __loadingOptions);
} catch (ValidationException e) {
id = null; // won't be used but prevents compiler from complaining.
@@ -293,19 +293,14 @@ public CommandInputParameterImpl(
id = null;
}
- Boolean __original_is_null = id == null;
if (id == null) {
if (__docRoot != null) {
- id = java.util.Optional.of(__docRoot);
+ id = __docRoot;
} else {
- id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString());
+ throw new ValidationException("Missing id");
}
}
- if (__original_is_null) {
- __baseUri = __baseUri_;
- } else {
- __baseUri = (String) id.orElse(null);
- }
+ __baseUri = (String) id;
java.util.Optional label;
if (__doc.containsKey("label")) {
@@ -477,7 +472,7 @@ public CommandInputParameterImpl(
this.secondaryFiles = (Object) secondaryFiles;
this.streamable = (java.util.Optional) streamable;
this.doc = (Object) doc;
- this.id = (java.util.Optional) id;
+ this.id = (String) id;
this.format = (Object) format;
this.loadContents = (java.util.Optional) loadContents;
this.loadListing = (java.util.Optional) loadListing;
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameter.java
index 4fa8649c..91b032d7 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameter.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameter.java
@@ -27,12 +27,12 @@ public interface CommandOutputParameter extends OutputParameter, Saveable {
LoadingOptions getLoadingOptions();
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- java.util.Optional getId();
+ String getId();
/**
* Getter for property https://w3id.org/cwl/cwl#Labeled/label
*
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameterImpl.java
index 31ddcf41..e9488ba0 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameterImpl.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameterImpl.java
@@ -35,15 +35,15 @@ public java.util.Map getExtensionFields() {
return this.extensionFields_;
}
- private java.util.Optional id;
+ private String id;
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- public java.util.Optional getId() {
+ public String getId() {
return this.id;
}
@@ -213,13 +213,13 @@ public CommandOutputParameterImpl(
if (__loadingOptions != null) {
this.loadingOptions_ = __loadingOptions;
}
- java.util.Optional id;
+ String id;
if (__doc.containsKey("id")) {
try {
id =
LoaderInstances
- .uri_optional_StringInstance_True_False_None_None
+ .uri_StringInstance_True_False_None_None
.loadField(__doc.get("id"), __baseUri, __loadingOptions);
} catch (ValidationException e) {
id = null; // won't be used but prevents compiler from complaining.
@@ -231,19 +231,14 @@ public CommandOutputParameterImpl(
id = null;
}
- Boolean __original_is_null = id == null;
if (id == null) {
if (__docRoot != null) {
- id = java.util.Optional.of(__docRoot);
+ id = __docRoot;
} else {
- id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString());
+ throw new ValidationException("Missing id");
}
}
- if (__original_is_null) {
- __baseUri = __baseUri_;
- } else {
- __baseUri = (String) id.orElse(null);
- }
+ __baseUri = (String) id;
java.util.Optional label;
if (__doc.containsKey("label")) {
@@ -364,7 +359,7 @@ public CommandOutputParameterImpl(
this.secondaryFiles = (Object) secondaryFiles;
this.streamable = (java.util.Optional) streamable;
this.doc = (Object) doc;
- this.id = (java.util.Optional) id;
+ this.id = (String) id;
this.format = (Object) format;
this.type = (Object) type;
this.outputBinding = (java.util.Optional) outputBinding;
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameter.java
index 306985d9..929b685a 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameter.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameter.java
@@ -26,12 +26,12 @@ public interface ExpressionToolOutputParameter extends OutputParameter, Saveable
LoadingOptions getLoadingOptions();
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- java.util.Optional getId();
+ String getId();
/**
* Getter for property https://w3id.org/cwl/cwl#Labeled/label
*
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameterImpl.java
index 1e3b20cb..a810cf74 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameterImpl.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameterImpl.java
@@ -34,15 +34,15 @@ public java.util.Map getExtensionFields() {
return this.extensionFields_;
}
- private java.util.Optional id;
+ private String id;
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- public java.util.Optional getId() {
+ public String getId() {
return this.id;
}
@@ -202,13 +202,13 @@ public ExpressionToolOutputParameterImpl(
if (__loadingOptions != null) {
this.loadingOptions_ = __loadingOptions;
}
- java.util.Optional id;
+ String id;
if (__doc.containsKey("id")) {
try {
id =
LoaderInstances
- .uri_optional_StringInstance_True_False_None_None
+ .uri_StringInstance_True_False_None_None
.loadField(__doc.get("id"), __baseUri, __loadingOptions);
} catch (ValidationException e) {
id = null; // won't be used but prevents compiler from complaining.
@@ -220,19 +220,14 @@ public ExpressionToolOutputParameterImpl(
id = null;
}
- Boolean __original_is_null = id == null;
if (id == null) {
if (__docRoot != null) {
- id = java.util.Optional.of(__docRoot);
+ id = __docRoot;
} else {
- id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString());
+ throw new ValidationException("Missing id");
}
}
- if (__original_is_null) {
- __baseUri = __baseUri_;
- } else {
- __baseUri = (String) id.orElse(null);
- }
+ __baseUri = (String) id;
java.util.Optional label;
if (__doc.containsKey("label")) {
@@ -336,7 +331,7 @@ public ExpressionToolOutputParameterImpl(
this.secondaryFiles = (Object) secondaryFiles;
this.streamable = (java.util.Optional) streamable;
this.doc = (Object) doc;
- this.id = (java.util.Optional) id;
+ this.id = (String) id;
this.format = (Object) format;
this.type = (Object) type;
for (String field:__doc.keySet()) {
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameter.java
index 0acb947a..43dbe7b3 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameter.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameter.java
@@ -28,12 +28,12 @@ public interface OperationInputParameter extends InputParameter, Saveable {
LoadingOptions getLoadingOptions();
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- java.util.Optional getId();
+ String getId();
/**
* Getter for property https://w3id.org/cwl/cwl#Labeled/label
*
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameterImpl.java
index 88a6c97e..142ae177 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameterImpl.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameterImpl.java
@@ -36,15 +36,15 @@ public java.util.Map getExtensionFields() {
return this.extensionFields_;
}
- private java.util.Optional id;
+ private String id;
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- public java.util.Optional getId() {
+ public String getId() {
return this.id;
}
@@ -262,13 +262,13 @@ public OperationInputParameterImpl(
if (__loadingOptions != null) {
this.loadingOptions_ = __loadingOptions;
}
- java.util.Optional id;
+ String id;
if (__doc.containsKey("id")) {
try {
id =
LoaderInstances
- .uri_optional_StringInstance_True_False_None_None
+ .uri_StringInstance_True_False_None_None
.loadField(__doc.get("id"), __baseUri, __loadingOptions);
} catch (ValidationException e) {
id = null; // won't be used but prevents compiler from complaining.
@@ -280,19 +280,14 @@ public OperationInputParameterImpl(
id = null;
}
- Boolean __original_is_null = id == null;
if (id == null) {
if (__docRoot != null) {
- id = java.util.Optional.of(__docRoot);
+ id = __docRoot;
} else {
- id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString());
+ throw new ValidationException("Missing id");
}
}
- if (__original_is_null) {
- __baseUri = __baseUri_;
- } else {
- __baseUri = (String) id.orElse(null);
- }
+ __baseUri = (String) id;
java.util.Optional label;
if (__doc.containsKey("label")) {
@@ -447,7 +442,7 @@ public OperationInputParameterImpl(
this.secondaryFiles = (Object) secondaryFiles;
this.streamable = (java.util.Optional) streamable;
this.doc = (Object) doc;
- this.id = (java.util.Optional) id;
+ this.id = (String) id;
this.format = (Object) format;
this.loadContents = (java.util.Optional) loadContents;
this.loadListing = (java.util.Optional) loadListing;
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameter.java
index aec2a6e5..e32555d1 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameter.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameter.java
@@ -28,12 +28,12 @@ public interface OperationOutputParameter extends OutputParameter, Saveable {
LoadingOptions getLoadingOptions();
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- java.util.Optional getId();
+ String getId();
/**
* Getter for property https://w3id.org/cwl/cwl#Labeled/label
*
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameterImpl.java
index 2cb07a23..a51d0b9a 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameterImpl.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameterImpl.java
@@ -36,15 +36,15 @@ public java.util.Map getExtensionFields() {
return this.extensionFields_;
}
- private java.util.Optional id;
+ private String id;
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- public java.util.Optional getId() {
+ public String getId() {
return this.id;
}
@@ -202,13 +202,13 @@ public OperationOutputParameterImpl(
if (__loadingOptions != null) {
this.loadingOptions_ = __loadingOptions;
}
- java.util.Optional id;
+ String id;
if (__doc.containsKey("id")) {
try {
id =
LoaderInstances
- .uri_optional_StringInstance_True_False_None_None
+ .uri_StringInstance_True_False_None_None
.loadField(__doc.get("id"), __baseUri, __loadingOptions);
} catch (ValidationException e) {
id = null; // won't be used but prevents compiler from complaining.
@@ -220,19 +220,14 @@ public OperationOutputParameterImpl(
id = null;
}
- Boolean __original_is_null = id == null;
if (id == null) {
if (__docRoot != null) {
- id = java.util.Optional.of(__docRoot);
+ id = __docRoot;
} else {
- id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString());
+ throw new ValidationException("Missing id");
}
}
- if (__original_is_null) {
- __baseUri = __baseUri_;
- } else {
- __baseUri = (String) id.orElse(null);
- }
+ __baseUri = (String) id;
java.util.Optional label;
if (__doc.containsKey("label")) {
@@ -336,7 +331,7 @@ public OperationOutputParameterImpl(
this.secondaryFiles = (Object) secondaryFiles;
this.streamable = (java.util.Optional) streamable;
this.doc = (Object) doc;
- this.id = (java.util.Optional) id;
+ this.id = (String) id;
this.format = (Object) format;
this.type = (Object) type;
for (String field:__doc.keySet()) {
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameter.java
index ac48d9e1..129ecea7 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameter.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameter.java
@@ -26,12 +26,12 @@ public interface WorkflowInputParameter extends InputParameter, Saveable {
LoadingOptions getLoadingOptions();
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- java.util.Optional getId();
+ String getId();
/**
* Getter for property https://w3id.org/cwl/cwl#Labeled/label
*
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameterImpl.java
index 4adaf13e..65c23b63 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameterImpl.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameterImpl.java
@@ -34,15 +34,15 @@ public java.util.Map getExtensionFields() {
return this.extensionFields_;
}
- private java.util.Optional id;
+ private String id;
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- public java.util.Optional getId() {
+ public String getId() {
return this.id;
}
@@ -274,13 +274,13 @@ public WorkflowInputParameterImpl(
if (__loadingOptions != null) {
this.loadingOptions_ = __loadingOptions;
}
- java.util.Optional id;
+ String id;
if (__doc.containsKey("id")) {
try {
id =
LoaderInstances
- .uri_optional_StringInstance_True_False_None_None
+ .uri_StringInstance_True_False_None_None
.loadField(__doc.get("id"), __baseUri, __loadingOptions);
} catch (ValidationException e) {
id = null; // won't be used but prevents compiler from complaining.
@@ -292,19 +292,14 @@ public WorkflowInputParameterImpl(
id = null;
}
- Boolean __original_is_null = id == null;
if (id == null) {
if (__docRoot != null) {
- id = java.util.Optional.of(__docRoot);
+ id = __docRoot;
} else {
- id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString());
+ throw new ValidationException("Missing id");
}
}
- if (__original_is_null) {
- __baseUri = __baseUri_;
- } else {
- __baseUri = (String) id.orElse(null);
- }
+ __baseUri = (String) id;
java.util.Optional label;
if (__doc.containsKey("label")) {
@@ -476,7 +471,7 @@ public WorkflowInputParameterImpl(
this.secondaryFiles = (Object) secondaryFiles;
this.streamable = (java.util.Optional) streamable;
this.doc = (Object) doc;
- this.id = (java.util.Optional) id;
+ this.id = (String) id;
this.format = (Object) format;
this.loadContents = (java.util.Optional) loadContents;
this.loadListing = (java.util.Optional) loadListing;
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameter.java
index ab45069c..2ce83e8c 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameter.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameter.java
@@ -34,12 +34,12 @@ public interface WorkflowOutputParameter extends OutputParameter, Saveable {
LoadingOptions getLoadingOptions();
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- java.util.Optional getId();
+ String getId();
/**
* Getter for property https://w3id.org/cwl/cwl#Labeled/label
*
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameterImpl.java
index 1b045a40..208bd693 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameterImpl.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameterImpl.java
@@ -42,15 +42,15 @@ public java.util.Map getExtensionFields() {
return this.extensionFields_;
}
- private java.util.Optional id;
+ private String id;
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#Parameter/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this Parameter. *
*/
- public java.util.Optional getId() {
+ public String getId() {
return this.id;
}
@@ -252,13 +252,13 @@ public WorkflowOutputParameterImpl(
if (__loadingOptions != null) {
this.loadingOptions_ = __loadingOptions;
}
- java.util.Optional id;
+ String id;
if (__doc.containsKey("id")) {
try {
id =
LoaderInstances
- .uri_optional_StringInstance_True_False_None_None
+ .uri_StringInstance_True_False_None_None
.loadField(__doc.get("id"), __baseUri, __loadingOptions);
} catch (ValidationException e) {
id = null; // won't be used but prevents compiler from complaining.
@@ -270,19 +270,14 @@ public WorkflowOutputParameterImpl(
id = null;
}
- Boolean __original_is_null = id == null;
if (id == null) {
if (__docRoot != null) {
- id = java.util.Optional.of(__docRoot);
+ id = __docRoot;
} else {
- id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString());
+ throw new ValidationException("Missing id");
}
}
- if (__original_is_null) {
- __baseUri = __baseUri_;
- } else {
- __baseUri = (String) id.orElse(null);
- }
+ __baseUri = (String) id;
java.util.Optional label;
if (__doc.containsKey("label")) {
@@ -437,7 +432,7 @@ public WorkflowOutputParameterImpl(
this.secondaryFiles = (Object) secondaryFiles;
this.streamable = (java.util.Optional) streamable;
this.doc = (Object) doc;
- this.id = (java.util.Optional) id;
+ this.id = (String) id;
this.format = (Object) format;
this.outputSource = (Object) outputSource;
this.linkMerge = (java.util.Optional) linkMerge;
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStep.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStep.java
index 16cf0891..ecab0bd1 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStep.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStep.java
@@ -106,12 +106,12 @@ public interface WorkflowStep extends Identified, Labeled, Documented, Saveable
LoadingOptions getLoadingOptions();
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#WorkflowStep/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this WorkflowStep. *
*/
- java.util.Optional getId();
+ String getId();
/**
* Getter for property https://w3id.org/cwl/cwl#Labeled/label
*
diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepImpl.java
index 67d97be7..4db723b3 100644
--- a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepImpl.java
+++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepImpl.java
@@ -114,15 +114,15 @@ public java.util.Map getExtensionFields() {
return this.extensionFields_;
}
- private java.util.Optional id;
+ private String id;
/**
- * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ * Getter for property https://w3id.org/cwl/cwl#WorkflowStep/id
*
- * The unique identifier for this object. *
+ * The unique identifier for this WorkflowStep. *
*/
- public java.util.Optional getId() {
+ public String getId() {
return this.id;
}
@@ -298,13 +298,13 @@ public WorkflowStepImpl(
if (__loadingOptions != null) {
this.loadingOptions_ = __loadingOptions;
}
- java.util.Optional id;
+ String id;
if (__doc.containsKey("id")) {
try {
id =
LoaderInstances
- .uri_optional_StringInstance_True_False_None_None
+ .uri_StringInstance_True_False_None_None
.loadField(__doc.get("id"), __baseUri, __loadingOptions);
} catch (ValidationException e) {
id = null; // won't be used but prevents compiler from complaining.
@@ -316,19 +316,14 @@ public WorkflowStepImpl(
id = null;
}
- Boolean __original_is_null = id == null;
if (id == null) {
if (__docRoot != null) {
- id = java.util.Optional.of(__docRoot);
+ id = __docRoot;
} else {
- id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString());
+ throw new ValidationException("Missing id");
}
}
- if (__original_is_null) {
- __baseUri = __baseUri_;
- } else {
- __baseUri = (String) id.orElse(null);
- }
+ __baseUri = (String) id;
java.util.Optional label;
if (__doc.containsKey("label")) {
@@ -484,7 +479,7 @@ public WorkflowStepImpl(
if (!__errors.isEmpty()) {
throw new ValidationException("Trying 'RecordField'", __errors);
}
- this.id = (java.util.Optional) id;
+ this.id = (String) id;
this.label = (java.util.Optional) label;
this.doc = (Object) doc;
this.in = (java.util.List