You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.7 KiB
74 lines
1.7 KiB
package de.superx.bianalysis.metadata.models.yml; |
|
|
|
import java.util.ArrayList; |
|
import java.util.List; |
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
|
import com.fasterxml.jackson.annotation.JsonInclude; |
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
|
|
|
@JsonIgnoreProperties(ignoreUnknown = true) |
|
@JsonInclude(JsonInclude.Include.NON_NULL) |
|
@JsonPropertyOrder({ |
|
"name", |
|
"description", |
|
"tests", |
|
"columns" |
|
}) |
|
public class MetaYmlModel { |
|
|
|
private String name; |
|
private String description; |
|
private List<MetaYmlModelColumns> columns; |
|
private List<Object> tests; |
|
|
|
public MetaYmlModel() { } |
|
|
|
public MetaYmlModel(String name, String description) { |
|
super(); |
|
this.name = name; |
|
this.description = description; |
|
} |
|
public MetaYmlModel(String name, String description, String test) { |
|
super(); |
|
this.name = name; |
|
this.description = description; |
|
this.tests = new ArrayList<Object>(); |
|
this.tests.add(test); |
|
} |
|
|
|
public String getName() { |
|
return name; |
|
} |
|
|
|
public void setName(String name) { |
|
this.name = name; |
|
} |
|
|
|
public String getDescription() { |
|
return description; |
|
} |
|
|
|
public void setDescription(String description) { |
|
this.description = description; |
|
} |
|
|
|
public List<MetaYmlModelColumns> getColumns() { |
|
if(this.columns == null) { |
|
return new ArrayList<MetaYmlModelColumns>(); |
|
} |
|
return columns; |
|
} |
|
|
|
public void setColumns(List<MetaYmlModelColumns> columns) { |
|
this.columns = columns; |
|
} |
|
|
|
public List<Object> getTests() { |
|
return tests; |
|
} |
|
|
|
public void setTests(List<Object> tests) { |
|
this.tests = tests; |
|
} |
|
}
|
|
|