Skip to content

regenerate using latest schema & schema-salad-tool #192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/org/w3id/cwl/cwl1_1/ArraySchema.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ public interface ArraySchema extends Saveable {
* Must be `array` * </BLOCKQUOTE>
*/

enum_d062602be0b4b8fd33e69e29a841317b6ab665bc getType();
Array_name getType();
}
12 changes: 6 additions & 6 deletions src/main/java/org/w3id/cwl/cwl1_1/ArraySchemaImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ public Object getItems() {
return this.items;
}

private enum_d062602be0b4b8fd33e69e29a841317b6ab665bc type;
private Array_name type;

/**
* Getter for property <I>https://w3id.org/cwl/salad#type</I><BR>
* <BLOCKQUOTE>
* Must be `array` * </BLOCKQUOTE>
*/

public enum_d062602be0b4b8fd33e69e29a841317b6ab665bc getType() {
public Array_name getType() {
return this.type;
}

Expand Down Expand Up @@ -86,18 +86,18 @@ public ArraySchemaImpl(
try {
items =
LoaderInstances
.typedsl_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_StringInstance_or_array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_StringInstance_2
.uri_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance_or_array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance_False_True_2_None
.loadField(__doc.get("items"), __baseUri, __loadingOptions);
} catch (ValidationException e) {
items = null; // won't be used but prevents compiler from complaining.
final String __message = "the `items` field is not valid because:";
__errors.add(new ValidationException(__message, e));
}
enum_d062602be0b4b8fd33e69e29a841317b6ab665bc type;
Array_name type;
try {
type =
LoaderInstances
.typedsl_enum_d062602be0b4b8fd33e69e29a841317b6ab665bc_2
.typedsl_Array_name_2
.loadField(__doc.get("type"), __baseUri, __loadingOptions);
} catch (ValidationException e) {
type = null; // won't be used but prevents compiler from complaining.
Expand All @@ -108,6 +108,6 @@ public ArraySchemaImpl(
throw new ValidationException("Trying 'RecordField'", __errors);
}
this.items = (Object) items;
this.type = (enum_d062602be0b4b8fd33e69e29a841317b6ab665bc) type;
this.type = (Array_name) type;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@

import org.w3id.cwl.cwl1_1.utils.ValidationException;

public enum enum_d062602be0b4b8fd33e69e29a841317b6ab665bc {
public enum Array_name {
ARRAY("array");

private static String[] symbols = new String[] {"array"};
private String docVal;

private enum_d062602be0b4b8fd33e69e29a841317b6ab665bc(final String docVal) {
private Array_name(final String docVal) {
this.docVal = docVal;
}

public static enum_d062602be0b4b8fd33e69e29a841317b6ab665bc fromDocumentVal(final String docVal) {
for(final enum_d062602be0b4b8fd33e69e29a841317b6ab665bc val : enum_d062602be0b4b8fd33e69e29a841317b6ab665bc.values()) {
public static Array_name fromDocumentVal(final String docVal) {
for(final Array_name val : Array_name.values()) {
if(val.docVal.equals(docVal)) {
return val;
}
}
throw new ValidationException(String.format("Expected one of %s", enum_d062602be0b4b8fd33e69e29a841317b6ab665bc.symbols, docVal));
throw new ValidationException(String.format("Expected one of %s", Array_name.symbols, docVal));
}
}
37 changes: 37 additions & 0 deletions src/main/java/org/w3id/cwl/cwl1_1/CWLArraySchema.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Copyright Common Workflow Language project contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package org.w3id.cwl.cwl1_1;

import org.w3id.cwl.cwl1_1.utils.Saveable;

/**
* Auto-generated interface for <I>https://w3id.org/cwl/cwl#CWLArraySchema</I><BR>This interface is implemented by {@link CWLArraySchemaImpl}<BR>
*/
public interface CWLArraySchema extends ArraySchema, Saveable {
/**
* Getter for property <I>https://w3id.org/cwl/salad#items</I><BR>
* <BLOCKQUOTE>
* Defines the type of the array elements. * </BLOCKQUOTE>
*/

Object getItems();
/**
* Getter for property <I>https://w3id.org/cwl/salad#type</I><BR>
* <BLOCKQUOTE>
* Must be `array` * </BLOCKQUOTE>
*/

Array_name getType();
}
113 changes: 113 additions & 0 deletions src/main/java/org/w3id/cwl/cwl1_1/CWLArraySchemaImpl.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
// Copyright Common Workflow Language project contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package org.w3id.cwl.cwl1_1;

import org.w3id.cwl.cwl1_1.utils.LoaderInstances;
import org.w3id.cwl.cwl1_1.utils.LoadingOptions;
import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder;
import org.w3id.cwl.cwl1_1.utils.SaveableImpl;
import org.w3id.cwl.cwl1_1.utils.ValidationException;

/**
* Auto-generated class implementation for <I>https://w3id.org/cwl/cwl#CWLArraySchema</I><BR>
*/
public class CWLArraySchemaImpl extends SaveableImpl implements CWLArraySchema {
private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();
private java.util.Map<String, Object> extensionFields_ =
new java.util.HashMap<String, Object>();

private Object items;

/**
* Getter for property <I>https://w3id.org/cwl/salad#items</I><BR>
* <BLOCKQUOTE>
* Defines the type of the array elements. * </BLOCKQUOTE>
*/

public Object getItems() {
return this.items;
}

private Array_name type;

/**
* Getter for property <I>https://w3id.org/cwl/salad#type</I><BR>
* <BLOCKQUOTE>
* Must be `array` * </BLOCKQUOTE>
*/

public Array_name getType() {
return this.type;
}

/**
* Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CWLArraySchemaImpl.
*
* @param __doc_ Document fragment to load this record object from (presumably a
{@link java.util.Map}).
* @param __baseUri_ Base URI to generate child document IDs against.
* @param __loadingOptions Context for loading URIs and populating objects.
* @param __docRoot_ ID at this position in the document (if available) (maybe?)
* @throws ValidationException If the document fragment is not a {@link java.util.Map}
* or validation of fields fails.
*/
public CWLArraySchemaImpl(
final Object __doc_,
final String __baseUri_,
LoadingOptions __loadingOptions,
final String __docRoot_) {
super(__doc_, __baseUri_, __loadingOptions, __docRoot_);
// Prefix plumbing variables with '__' to reduce likelihood of collision with
// generated names.
String __baseUri = __baseUri_;
String __docRoot = __docRoot_;
if (!(__doc_ instanceof java.util.Map)) {
throw new ValidationException("CWLArraySchemaImpl called on non-map");
}
final java.util.Map<String, Object> __doc = (java.util.Map<String, Object>) __doc_;
final java.util.List<ValidationException> __errors =
new java.util.ArrayList<ValidationException>();
if (__loadingOptions != null) {
this.loadingOptions_ = __loadingOptions;
}
Object items;
try {
items =
LoaderInstances
.uri_union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance_or_array_of_union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance_False_True_2_None
.loadField(__doc.get("items"), __baseUri, __loadingOptions);
} catch (ValidationException e) {
items = null; // won't be used but prevents compiler from complaining.
final String __message = "the `items` field is not valid because:";
__errors.add(new ValidationException(__message, e));
}
Array_name type;
try {
type =
LoaderInstances
.typedsl_Array_name_2
.loadField(__doc.get("type"), __baseUri, __loadingOptions);
} catch (ValidationException e) {
type = null; // won't be used but prevents compiler from complaining.
final String __message = "the `type` field is not valid because:";
__errors.add(new ValidationException(__message, e));
}
if (!__errors.isEmpty()) {
throw new ValidationException("Trying 'RecordField'", __errors);
}
this.items = (Object) items;
this.type = (Array_name) type;
}
}
46 changes: 46 additions & 0 deletions src/main/java/org/w3id/cwl/cwl1_1/CWLRecordField.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright Common Workflow Language project contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package org.w3id.cwl.cwl1_1;

import org.w3id.cwl.cwl1_1.utils.Saveable;

/**
* Auto-generated interface for <I>https://w3id.org/cwl/cwl#CWLRecordField</I><BR>This interface is implemented by {@link CWLRecordFieldImpl}<BR>
*/
public interface CWLRecordField extends RecordField, Saveable {
/**
* Getter for property <I>https://w3id.org/cwl/salad#RecordField/name</I><BR>
* <BLOCKQUOTE>
* The name of the field
* * </BLOCKQUOTE>
*/

String getName();
/**
* Getter for property <I>https://w3id.org/cwl/salad#Documented/doc</I><BR>
* <BLOCKQUOTE>
* A documentation string for this object, or an array of strings which should be concatenated. * </BLOCKQUOTE>
*/

Object getDoc();
/**
* Getter for property <I>https://w3id.org/cwl/salad#type</I><BR>
* <BLOCKQUOTE>
* The field type
* * </BLOCKQUOTE>
*/

Object getType();
}
Loading
Loading