mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
#50 (fix) remove 'fallback' attribute from xml view
This commit is contained in:
parent
a1a7328b8f
commit
e28a9d9f80
2 changed files with 12 additions and 3 deletions
|
|
@ -25,6 +25,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
import javax.xml.validation.Schema;
|
||||
|
||||
import org.apache.commons.lang3.NotImplementedException;
|
||||
|
|
@ -66,8 +67,7 @@ public abstract class BaseScenario {
|
|||
private ResourceType resourceType;
|
||||
}
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@XmlTransient
|
||||
private boolean fallback;
|
||||
|
||||
private XPathExecutable matchExecutable;
|
||||
|
|
@ -82,6 +82,15 @@ public abstract class BaseScenario {
|
|||
|
||||
private Transformation reportTransformation;
|
||||
|
||||
@XmlTransient
|
||||
public boolean isFallback() {
|
||||
return this.fallback;
|
||||
}
|
||||
|
||||
public void setFallback(final boolean value) {
|
||||
this.fallback = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gibt eine Transformation zurück.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public class ScenarioSelectionAction implements CheckAction {
|
|||
results.setScenarioSelectionResult(scenarioTypeResult);
|
||||
if (!scenarioTypeResult.getObject().isFallback()) {
|
||||
report.setScenario(scenarioTypeResult.getObject());
|
||||
log.error("Schenario {} identified for {}", scenarioTypeResult.getObject().getName(), results.getInput().getName());
|
||||
log.info("Schenario {} identified for {}", scenarioTypeResult.getObject().getName(), results.getInput().getName());
|
||||
} else {
|
||||
log.error("No valid schenario configuration found for {}", results.getInput().getName());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue