Skip to content
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

Run maven tests on pull_request #72

Merged
merged 3 commits into from Jul 23, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
@@ -1,5 +1,5 @@
name: Java CI
on: [push]
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions java/pom.xml
Expand Up @@ -119,9 +119,9 @@
<version>4.13.1</version>
</dependency>
<dependency>
<groupId>org.snakeyaml</groupId>
<artifactId>snakeyaml-engine</artifactId>
<version>2.2.1</version>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.24</version>
</dependency>
</dependencies>
</project>
18 changes: 2 additions & 16 deletions java/src/main/java/org/galaxyproject/gxformat2/v19_09/Any.java
@@ -1,17 +1,3 @@
// 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.galaxyproject.gxformat2.v19_09;

import org.galaxyproject.gxformat2.v19_09.utils.ValidationException;
Expand All @@ -27,8 +13,8 @@ private Any(final String docVal) {
}

public static Any fromDocumentVal(final String docVal) {
for(final Any val : Any.values()) {
if(val.docVal.equals(docVal)) {
for (final Any val : Any.values()) {
if (val.docVal.equals(docVal)) {
return val;
}
}
Expand Down
@@ -1,37 +1,30 @@
// 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.galaxyproject.gxformat2.v19_09;

import org.galaxyproject.gxformat2.v19_09.utils.Savable;

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

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

anon.enum_d062602be0b4b8fd33e69e29a841317b6ab665bc getType();
enum_d062602be0b4b8fd33e69e29a841317b6ab665bc getType();
}
@@ -1,17 +1,3 @@
// 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.galaxyproject.gxformat2.v19_09;

import org.galaxyproject.gxformat2.v19_09.utils.LoaderInstances;
Expand All @@ -20,48 +6,52 @@
import org.galaxyproject.gxformat2.v19_09.utils.SavableImpl;
import org.galaxyproject.gxformat2.v19_09.utils.ValidationException;

/**
* Auto-generated class implementation for <I>https://w3id.org/cwl/salad#ArraySchema</I><BR>
*/
/** Auto-generated class implementation for <I>https://w3id.org/cwl/salad#ArraySchema</I><br> */
public class ArraySchemaImpl extends SavableImpl implements ArraySchema {
private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();
private java.util.Map<String, Object> extensionFields_ =
new java.util.HashMap<String, Object>();
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>
* Getter for property <I>https://w3id.org/cwl/salad#items</I><br>
*
* <BLOCKQUOTE>
* Defines the type of the array elements. * </BLOCKQUOTE>
*
* Defines the type of the array elements. *
*
* </BLOCKQUOTE>
*/

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

private anon.enum_d062602be0b4b8fd33e69e29a841317b6ab665bc type;
private enum_d062602be0b4b8fd33e69e29a841317b6ab665bc type;

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

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

/**
* Used by {@link org.galaxyproject.gxformat2.v19_09.utils.RootLoader} to construct instances of ArraySchemaImpl.
* Used by {@link org.galaxyproject.gxformat2.v19_09.utils.RootLoader} to construct instances of
* ArraySchemaImpl.
*
* @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.
* @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 ArraySchemaImpl(
final Object __doc_,
Expand Down Expand Up @@ -93,12 +83,11 @@ public ArraySchemaImpl(
final String __message = "the `items` field is not valid because:";
__errors.add(new ValidationException(__message, e));
}
anon.enum_d062602be0b4b8fd33e69e29a841317b6ab665bc type;
enum_d062602be0b4b8fd33e69e29a841317b6ab665bc type;
try {
type =
LoaderInstances
.typedsl_anon.enum_d062602be0b4b8fd33e69e29a841317b6ab665bc_2
.loadField(__doc.get("type"), __baseUri, __loadingOptions);
LoaderInstances.typedsl_enum_d062602be0b4b8fd33e69e29a841317b6ab665bc_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:";
Expand All @@ -108,6 +97,6 @@ public ArraySchemaImpl(
throw new ValidationException("Trying 'RecordField'", __errors);
}
this.items = (Object) items;
this.type = (anon.enum_d062602be0b4b8fd33e69e29a841317b6ab665bc) type;
this.type = (enum_d062602be0b4b8fd33e69e29a841317b6ab665bc) type;
}
}
@@ -1,30 +1,17 @@
// 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.galaxyproject.gxformat2.v19_09;

import org.galaxyproject.gxformat2.v19_09.utils.Savable;

/**
* Auto-generated interface for <I>https://w3id.org/cwl/salad#Documented</I><BR>
*/
/** Auto-generated interface for <I>https://w3id.org/cwl/salad#Documented</I><br> */
public interface Documented extends Savable {
/**
* Getter for property <I>https://w3id.org/cwl/salad#Documented/doc</I><BR>
* 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>
*
* A documentation string for this object, or an array of strings which should be concatenated. *
*
* </BLOCKQUOTE>
*/

Object getDoc();
}
@@ -1,39 +1,36 @@
// 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.galaxyproject.gxformat2.v19_09;

import org.galaxyproject.gxformat2.v19_09.utils.Savable;

/**
* Auto-generated interface for <I>https://w3id.org/cwl/salad#EnumSchema</I><BR>This interface is implemented by {@link EnumSchemaImpl}<BR> <BLOCKQUOTE>
Define an enumerated type.
</BLOCKQUOTE>
* Auto-generated interface for <I>https://w3id.org/cwl/salad#EnumSchema</I><br>
* This interface is implemented by {@link EnumSchemaImpl}<br>
*
* <BLOCKQUOTE>
*
* Define an enumerated type.
*
* </BLOCKQUOTE>
*/
public interface EnumSchema extends Savable {
/**
* Getter for property <I>https://w3id.org/cwl/salad#symbols</I><BR>
* Getter for property <I>https://w3id.org/cwl/salad#symbols</I><br>
*
* <BLOCKQUOTE>
* Defines the set of valid symbols. * </BLOCKQUOTE>
*
* Defines the set of valid symbols. *
*
* </BLOCKQUOTE>
*/

java.util.List<Object> getSymbols();
/**
* Getter for property <I>https://w3id.org/cwl/salad#type</I><BR>
* Getter for property <I>https://w3id.org/cwl/salad#type</I><br>
*
* <BLOCKQUOTE>
* Must be `enum` * </BLOCKQUOTE>
*
* Must be `enum` *
*
* </BLOCKQUOTE>
*/

anon.enum_d961d79c225752b9fadb617367615ab176b47d77 getType();
enum_d961d79c225752b9fadb617367615ab176b47d77 getType();
}