mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +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.Map;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
import javax.xml.validation.Schema;
|
import javax.xml.validation.Schema;
|
||||||
|
|
||||||
import org.apache.commons.lang3.NotImplementedException;
|
import org.apache.commons.lang3.NotImplementedException;
|
||||||
|
|
@ -66,8 +67,7 @@ public abstract class BaseScenario {
|
||||||
private ResourceType resourceType;
|
private ResourceType resourceType;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Getter
|
@XmlTransient
|
||||||
@Setter
|
|
||||||
private boolean fallback;
|
private boolean fallback;
|
||||||
|
|
||||||
private XPathExecutable matchExecutable;
|
private XPathExecutable matchExecutable;
|
||||||
|
|
@ -82,6 +82,15 @@ public abstract class BaseScenario {
|
||||||
|
|
||||||
private Transformation reportTransformation;
|
private Transformation reportTransformation;
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public boolean isFallback() {
|
||||||
|
return this.fallback;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFallback(final boolean value) {
|
||||||
|
this.fallback = value;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gibt eine Transformation zurück.
|
* Gibt eine Transformation zurück.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ public class ScenarioSelectionAction implements CheckAction {
|
||||||
results.setScenarioSelectionResult(scenarioTypeResult);
|
results.setScenarioSelectionResult(scenarioTypeResult);
|
||||||
if (!scenarioTypeResult.getObject().isFallback()) {
|
if (!scenarioTypeResult.getObject().isFallback()) {
|
||||||
report.setScenario(scenarioTypeResult.getObject());
|
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 {
|
} else {
|
||||||
log.error("No valid schenario configuration found for {}", results.getInput().getName());
|
log.error("No valid schenario configuration found for {}", results.getInput().getName());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue