mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +00:00
03-UpdatePlugins
This commit is contained in:
parent
6a06fb7c68
commit
04a236ec83
100 changed files with 193 additions and 193 deletions
|
|
@ -21,14 +21,14 @@ import de.kosit.validationtool.impl.model.Result;
|
|||
|
||||
/**
|
||||
* Internal interface for creating object builders.
|
||||
*
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
interface Builder<T> {
|
||||
|
||||
/**
|
||||
* Creates an object based on artifacts provided via a defined {@link ContentRepository}.
|
||||
*
|
||||
*
|
||||
* @param repository the {@link ContentRepository}
|
||||
* @return the result of building the object
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ import net.sf.saxon.s9api.Processor;
|
|||
|
||||
/**
|
||||
* Implements a builder style creation of a {@link Configuration}.
|
||||
*
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
@Slf4j
|
||||
|
|
@ -82,7 +82,7 @@ public class ConfigurationBuilder {
|
|||
|
||||
/**
|
||||
* Add a specific author name to this configuration.
|
||||
*
|
||||
*
|
||||
* @param authorName the name of the author
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -93,7 +93,7 @@ public class ConfigurationBuilder {
|
|||
|
||||
/**
|
||||
* Add a specific nam to this configuration
|
||||
*
|
||||
*
|
||||
* @param name the name of the configuration
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -104,7 +104,7 @@ public class ConfigurationBuilder {
|
|||
|
||||
/**
|
||||
* Sets the date for this configuration.
|
||||
*
|
||||
*
|
||||
* @param date the date
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -117,7 +117,7 @@ public class ConfigurationBuilder {
|
|||
|
||||
/**
|
||||
* Sets the date for this configuration.
|
||||
*
|
||||
*
|
||||
* @param date the date
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -128,7 +128,7 @@ public class ConfigurationBuilder {
|
|||
/**
|
||||
* Adds a {@link Scenario} to this list of know scenarios. Note: order of calling this methods defines order of
|
||||
* scenarios when determining the target scenario for a given xml file.
|
||||
*
|
||||
*
|
||||
* @param scenarioBuilder the {@link ScenarioBuilder} building the {@link Scenario}
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -140,7 +140,7 @@ public class ConfigurationBuilder {
|
|||
/**
|
||||
* Sets a specific fallback scenario configuration. Note: calling this more than once is possible, but the last call
|
||||
* will define the actual fallback scenario used. There can be only one
|
||||
*
|
||||
*
|
||||
* @param builder the {@link FallbackBuilder}
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -154,7 +154,7 @@ public class ConfigurationBuilder {
|
|||
|
||||
/**
|
||||
* Adds a description to this configuration.
|
||||
*
|
||||
*
|
||||
* @param description the descriptioin
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -184,7 +184,7 @@ public class ConfigurationBuilder {
|
|||
|
||||
/**
|
||||
* Create a named schematron configuration.
|
||||
*
|
||||
*
|
||||
* @param name the name of the schematron configuration
|
||||
* @return new {@link SchemaBuilder}
|
||||
*/
|
||||
|
|
@ -234,7 +234,7 @@ public class ConfigurationBuilder {
|
|||
|
||||
/**
|
||||
* Create a new named scenario configuration.
|
||||
*
|
||||
*
|
||||
* @param name the name of the scenario
|
||||
* @return the scenario configuration builder
|
||||
*/
|
||||
|
|
@ -253,7 +253,7 @@ public class ConfigurationBuilder {
|
|||
|
||||
/**
|
||||
* Create named report configuration.
|
||||
*
|
||||
*
|
||||
* @param name the name of the report
|
||||
* @return the report configuration builder
|
||||
*/
|
||||
|
|
@ -263,7 +263,7 @@ public class ConfigurationBuilder {
|
|||
|
||||
/**
|
||||
* Builds the actual {@link Configuration} by validating all builder inputs and constructing neccessary objects.
|
||||
*
|
||||
*
|
||||
* @return a valid configuration
|
||||
* @throws IllegalStateException when the configuration is not valid/complete
|
||||
*/
|
||||
|
|
@ -339,7 +339,7 @@ public class ConfigurationBuilder {
|
|||
/**
|
||||
* Sets a specific resolving mode, for resolving xml artifacts for this configuration. See {@link ResolvingMode} for
|
||||
* details.
|
||||
*
|
||||
*
|
||||
* @param mode the mode
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -350,7 +350,7 @@ public class ConfigurationBuilder {
|
|||
|
||||
/**
|
||||
* Sets a specific strategy to use for resolving artefacts for scenarios.
|
||||
*
|
||||
*
|
||||
* @param strategy the strategy
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -361,7 +361,7 @@ public class ConfigurationBuilder {
|
|||
|
||||
/**
|
||||
* Set a specific repository location for resolving artifacts for scenarios.
|
||||
*
|
||||
*
|
||||
* @param repository the repository location
|
||||
* @return this
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ import net.sf.saxon.s9api.XdmNodeKind;
|
|||
/**
|
||||
* Configuration class that loads necessary {@link Check} configuration from an existing scenario.xml specification.
|
||||
* This is the recommended option when an official configuration exists as is the case with 'xrechnung'.
|
||||
*
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
|
|
@ -201,7 +201,7 @@ public class ConfigurationLoader {
|
|||
|
||||
/**
|
||||
* Sets actual {@link ResolvingMode}, when the validator needs to resolve stuff on startup.
|
||||
*
|
||||
*
|
||||
* @param mode the resolving mode
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -220,7 +220,7 @@ public class ConfigurationLoader {
|
|||
|
||||
/**
|
||||
* Add a parameter to the configuration.
|
||||
*
|
||||
*
|
||||
* @param name the name of the parameter
|
||||
* @param value the parameter value object
|
||||
* @return this
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import de.kosit.validationtool.impl.Scenario;
|
|||
/**
|
||||
* Default implementation class for {@link Configuration}. This class contains all information to run a
|
||||
* {@link de.kosit.validationtool.impl.DefaultCheck}.
|
||||
*
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
@Slf4j
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import de.kosit.validationtool.model.scenarios.ScenarioType;
|
|||
|
||||
/**
|
||||
* Create a fallback {@link Scenario} configuration.
|
||||
*
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
public class FallbackBuilder implements Builder<Scenario> {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ package de.kosit.validationtool.config;
|
|||
|
||||
/**
|
||||
* Defines some keys used for supplying additional parameters internally.
|
||||
*
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
public final class Keys {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ import net.sf.saxon.s9api.XsltExecutable;
|
|||
|
||||
/**
|
||||
* Builder style configuration for the report transformation.
|
||||
*
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
@Slf4j
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ import net.sf.saxon.s9api.XPathExecutable;
|
|||
|
||||
/**
|
||||
* Builder for {@link Scenario} configuration.
|
||||
*
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
|
|
@ -96,7 +96,7 @@ public class ScenarioBuilder implements Builder<Scenario> {
|
|||
|
||||
/**
|
||||
* Add a preconfiguration {@link XPathExecutable} to match the scenario
|
||||
*
|
||||
*
|
||||
* @param executable the xpath executable
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -107,7 +107,7 @@ public class ScenarioBuilder implements Builder<Scenario> {
|
|||
|
||||
/**
|
||||
* Add an xpath expression to match the scenario. You can leverage declared namespaces.
|
||||
*
|
||||
*
|
||||
* @param xpath the expression
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -118,7 +118,7 @@ public class ScenarioBuilder implements Builder<Scenario> {
|
|||
|
||||
/**
|
||||
* Declare a namespace to use for match and accept configurations.
|
||||
*
|
||||
*
|
||||
* @param prefix the prefix to use
|
||||
* @param uri the uri of this namespace
|
||||
* @return this
|
||||
|
|
@ -130,7 +130,7 @@ public class ScenarioBuilder implements Builder<Scenario> {
|
|||
|
||||
/**
|
||||
* Add a preconfiguration {@link XPathExecutable} to compute acceptance for the scenario
|
||||
*
|
||||
*
|
||||
* @param executable the xpath executable
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -141,7 +141,7 @@ public class ScenarioBuilder implements Builder<Scenario> {
|
|||
|
||||
/**
|
||||
* Add an xpath expression to compute acceptance for the scenario. You can leverage declared namespaces.
|
||||
*
|
||||
*
|
||||
* @param acceptXpath the xpath expresison
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -152,7 +152,7 @@ public class ScenarioBuilder implements Builder<Scenario> {
|
|||
|
||||
/**
|
||||
* Add a schematron validation configuration for this scenario.
|
||||
*
|
||||
*
|
||||
* @param schematron the schematron configuration
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -165,7 +165,7 @@ public class ScenarioBuilder implements Builder<Scenario> {
|
|||
|
||||
/**
|
||||
* Validate matching {@link de.kosit.validationtool.api.Input Inputs} with the specified schema configuration.
|
||||
*
|
||||
*
|
||||
* @param schema the schema configuration
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -178,7 +178,7 @@ public class ScenarioBuilder implements Builder<Scenario> {
|
|||
* Add description for this scenario. This is part of the
|
||||
* {@link de.kosit.validationtool.model.reportInput.CreateReportInput} configuration and can be used while creating
|
||||
* the report
|
||||
*
|
||||
*
|
||||
* @param description the description
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -189,7 +189,7 @@ public class ScenarioBuilder implements Builder<Scenario> {
|
|||
|
||||
/**
|
||||
* Add a configuration for generating the final report for the {@link de.kosit.validationtool.api.Input}.
|
||||
*
|
||||
*
|
||||
* @param reportBuilder the report configuration
|
||||
* @return this
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ import de.kosit.validationtool.model.scenarios.ValidateWithXmlSchema;
|
|||
|
||||
/**
|
||||
* Builder for Schema validation configuration.
|
||||
*
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
@Slf4j
|
||||
|
|
@ -84,7 +84,7 @@ public class SchemaBuilder implements Builder<Pair<ValidateWithXmlSchema, Schema
|
|||
|
||||
/**
|
||||
* Set a specific precompiled schema to check.
|
||||
*
|
||||
*
|
||||
* @param schema the {@link Schema}
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -95,7 +95,7 @@ public class SchemaBuilder implements Builder<Pair<ValidateWithXmlSchema, Schema
|
|||
|
||||
/**
|
||||
* Set a specific schema location either to compile or to document the precompiled one .
|
||||
*
|
||||
*
|
||||
* @param schemaLocation the schema location as uri
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -126,7 +126,7 @@ public class SchemaBuilder implements Builder<Pair<ValidateWithXmlSchema, Schema
|
|||
|
||||
/**
|
||||
* Set a specific name to identify this schema.
|
||||
*
|
||||
*
|
||||
* @param name the name of the schema
|
||||
* @return this
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ import net.sf.saxon.s9api.XsltExecutable;
|
|||
|
||||
/**
|
||||
* Builder for schematron validation configuration.
|
||||
*
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
@Slf4j
|
||||
|
|
@ -88,7 +88,7 @@ public class SchematronBuilder implements Builder<Pair<ValidateWithSchematron, T
|
|||
/**
|
||||
* Specifices a source for this schematron validation. This is either used to compile the schematron transformation
|
||||
* or as documentation for a precompiled tranformation.
|
||||
*
|
||||
*
|
||||
* @param source the source
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -99,7 +99,7 @@ public class SchematronBuilder implements Builder<Pair<ValidateWithSchematron, T
|
|||
/**
|
||||
* Specifices a source for this schematron validation. This is either used to compile the schematron transformation
|
||||
* or as documentation for a precompiled tranformation.
|
||||
*
|
||||
*
|
||||
* @param source the source
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -111,7 +111,7 @@ public class SchematronBuilder implements Builder<Pair<ValidateWithSchematron, T
|
|||
/**
|
||||
* Specifices a source for this schematron validation. This is either used to compile the schematron transformation
|
||||
* or as documentation for a precompiled tranformation.
|
||||
*
|
||||
*
|
||||
* @param source the source
|
||||
* @return this
|
||||
*/
|
||||
|
|
@ -121,7 +121,7 @@ public class SchematronBuilder implements Builder<Pair<ValidateWithSchematron, T
|
|||
|
||||
/**
|
||||
* Sets the name of the schematron source to a specific value.
|
||||
*
|
||||
*
|
||||
* @param name the name
|
||||
* @return this
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ import net.sf.saxon.s9api.XPathExecutable;
|
|||
|
||||
/**
|
||||
* Internal class to represent xpath configuration.
|
||||
*
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue