org.openprovenance.prov.template.compiler.configuration.SimpleTemplateCompilerConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of prov-template-compiler Show documentation
Show all versions of prov-template-compiler Show documentation
A template system for PROV bundles.
The newest version!
package org.openprovenance.prov.template.compiler.configuration;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
public class SimpleTemplateCompilerConfig extends TemplateCompilerConfig {
public String template;
public String bindings;
@Override
@JsonProperty("@type")
public String getType_() {
return type_;
}
@Override
@JsonProperty("@type")
public void setType_(String type_) {
this.type_ = type_;
}
@Override
public String toString() {
return "SimpleTemplateCompilerConfig{" +
"@type='" + type_ + '\'' +
", name='" + name + '\'' +
", template='" + template + '\'' +
", package_='" + package_ + '\'' +
", bindings='" + bindings + '\'' +
'}';
}
@JsonIgnore
public boolean inComposition=false;
@JsonIgnore
public List sharing;
public SimpleTemplateCompilerConfig cloneAsInstanceInComposition(String newName, List sharing) {
SimpleTemplateCompilerConfig clone= new SimpleTemplateCompilerConfig();
clone.template=template;
clone.type_=type_;
clone.name= newName; //this.name +"_shared";
clone.package_=package_;
clone.bindings=bindings;
clone.inComposition=true;
clone.sharing=sharing;
return clone;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy