Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.jboss.drools.util.DroolsValidator Maven / Gradle / Ivy
/**
*/
package org.jboss.drools.util;
import java.math.BigInteger;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.EObjectValidator;
import org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator;
import org.jboss.drools.*;
/**
*
* The Validator for the model.
*
* @see org.jboss.drools.DroolsPackage
* @generated
*/
public class DroolsValidator extends EObjectValidator {
/**
* The cached model package
*
*
* @generated
*/
public static final DroolsValidator INSTANCE = new DroolsValidator();
/**
* A constant for the {@link org.eclipse.emf.common.util.Diagnostic#getSource() source} of diagnostic {@link org.eclipse.emf.common.util.Diagnostic#getCode() codes} from this package.
*
*
* @see org.eclipse.emf.common.util.Diagnostic#getSource()
* @see org.eclipse.emf.common.util.Diagnostic#getCode()
* @generated
*/
public static final String DIAGNOSTIC_SOURCE = "org.jboss.drools";
/**
* A constant with a fixed name that can be used as the base value for additional hand written constants.
*
*
* @generated
*/
private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 0;
/**
* A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.
*
*
* @generated
*/
protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT;
/**
* The cached base package validator.
*
*
* @generated
*/
protected XMLTypeValidator xmlTypeValidator;
/**
* Creates an instance of the switch.
*
*
* @generated
*/
public DroolsValidator() {
super();
xmlTypeValidator = XMLTypeValidator.INSTANCE;
}
/**
* Returns the package of this validator switch.
*
*
* @generated
*/
@Override
protected EPackage getEPackage() {
return DroolsPackage.eINSTANCE;
}
/**
* Calls validateXXX
for the corresponding classifier of the model.
*
*
* @generated
*/
@Override
protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map context) {
switch (classifierID) {
case DroolsPackage.BETA_DISTRIBUTION_TYPE:
return validateBetaDistributionType((BetaDistributionType)value, diagnostics, context);
case DroolsPackage.BINOMIAL_DISTRIBUTION_TYPE:
return validateBinomialDistributionType((BinomialDistributionType)value, diagnostics, context);
case DroolsPackage.BOOLEAN_PARAMETER_TYPE:
return validateBooleanParameterType((BooleanParameterType)value, diagnostics, context);
case DroolsPackage.CALENDAR:
return validateCalendar((Calendar)value, diagnostics, context);
case DroolsPackage.CONSTANT_PARAMETER:
return validateConstantParameter((ConstantParameter)value, diagnostics, context);
case DroolsPackage.CONTROL_PARAMETERS:
return validateControlParameters((ControlParameters)value, diagnostics, context);
case DroolsPackage.COST_PARAMETERS:
return validateCostParameters((CostParameters)value, diagnostics, context);
case DroolsPackage.DATE_TIME_PARAMETER_TYPE:
return validateDateTimeParameterType((DateTimeParameterType)value, diagnostics, context);
case DroolsPackage.DECIMAL_PARAMETER_TYPE:
return validateDecimalParameterType((DecimalParameterType)value, diagnostics, context);
case DroolsPackage.DISTRIBUTION_PARAMETER:
return validateDistributionParameter((DistributionParameter)value, diagnostics, context);
case DroolsPackage.DOCUMENT_ROOT:
return validateDocumentRoot((DocumentRoot)value, diagnostics, context);
case DroolsPackage.DURATION_PARAMETER_TYPE:
return validateDurationParameterType((DurationParameterType)value, diagnostics, context);
case DroolsPackage.ELEMENT_PARAMETERS:
return validateElementParameters((ElementParameters)value, diagnostics, context);
case DroolsPackage.ELEMENT_PARAMETERS_TYPE:
return validateElementParametersType((ElementParametersType)value, diagnostics, context);
case DroolsPackage.ENUM_PARAMETER_TYPE:
return validateEnumParameterType((EnumParameterType)value, diagnostics, context);
case DroolsPackage.ERLANG_DISTRIBUTION_TYPE:
return validateErlangDistributionType((ErlangDistributionType)value, diagnostics, context);
case DroolsPackage.EXPRESSION_PARAMETER_TYPE:
return validateExpressionParameterType((ExpressionParameterType)value, diagnostics, context);
case DroolsPackage.FLOATING_PARAMETER_TYPE:
return validateFloatingParameterType((FloatingParameterType)value, diagnostics, context);
case DroolsPackage.GAMMA_DISTRIBUTION_TYPE:
return validateGammaDistributionType((GammaDistributionType)value, diagnostics, context);
case DroolsPackage.GLOBAL_TYPE:
return validateGlobalType((GlobalType)value, diagnostics, context);
case DroolsPackage.IMPORT_TYPE:
return validateImportType((ImportType)value, diagnostics, context);
case DroolsPackage.LOG_NORMAL_DISTRIBUTION_TYPE:
return validateLogNormalDistributionType((LogNormalDistributionType)value, diagnostics, context);
case DroolsPackage.METADATA_TYPE:
return validateMetadataType((MetadataType)value, diagnostics, context);
case DroolsPackage.METAENTRY_TYPE:
return validateMetaentryType((MetaentryType)value, diagnostics, context);
case DroolsPackage.NEGATIVE_EXPONENTIAL_DISTRIBUTION_TYPE:
return validateNegativeExponentialDistributionType((NegativeExponentialDistributionType)value, diagnostics, context);
case DroolsPackage.NORMAL_DISTRIBUTION_TYPE:
return validateNormalDistributionType((NormalDistributionType)value, diagnostics, context);
case DroolsPackage.NUMERIC_PARAMETER_TYPE:
return validateNumericParameterType((NumericParameterType)value, diagnostics, context);
case DroolsPackage.ON_ENTRY_SCRIPT_TYPE:
return validateOnEntryScriptType((OnEntryScriptType)value, diagnostics, context);
case DroolsPackage.ON_EXIT_SCRIPT_TYPE:
return validateOnExitScriptType((OnExitScriptType)value, diagnostics, context);
case DroolsPackage.PARAMETER:
return validateParameter((Parameter)value, diagnostics, context);
case DroolsPackage.PARAMETER_VALUE:
return validateParameterValue((ParameterValue)value, diagnostics, context);
case DroolsPackage.POISSON_DISTRIBUTION_TYPE:
return validatePoissonDistributionType((PoissonDistributionType)value, diagnostics, context);
case DroolsPackage.PRIORITY_PARAMETERS:
return validatePriorityParameters((PriorityParameters)value, diagnostics, context);
case DroolsPackage.PROCESS_ANALYSIS_DATA_TYPE:
return validateProcessAnalysisDataType((ProcessAnalysisDataType)value, diagnostics, context);
case DroolsPackage.PROPERTY_PARAMETERS:
return validatePropertyParameters((PropertyParameters)value, diagnostics, context);
case DroolsPackage.PROPERTY_TYPE:
return validatePropertyType((PropertyType)value, diagnostics, context);
case DroolsPackage.RANDOM_DISTRIBUTION_TYPE:
return validateRandomDistributionType((RandomDistributionType)value, diagnostics, context);
case DroolsPackage.RESOURCE_PARAMETERS:
return validateResourceParameters((ResourceParameters)value, diagnostics, context);
case DroolsPackage.SCENARIO:
return validateScenario((Scenario)value, diagnostics, context);
case DroolsPackage.SCENARIO_PARAMETERS:
return validateScenarioParameters((ScenarioParameters)value, diagnostics, context);
case DroolsPackage.SCENARIO_PARAMETERS_TYPE:
return validateScenarioParametersType((ScenarioParametersType)value, diagnostics, context);
case DroolsPackage.STRING_PARAMETER_TYPE:
return validateStringParameterType((StringParameterType)value, diagnostics, context);
case DroolsPackage.TIME_PARAMETERS:
return validateTimeParameters((TimeParameters)value, diagnostics, context);
case DroolsPackage.TRIANGULAR_DISTRIBUTION_TYPE:
return validateTriangularDistributionType((TriangularDistributionType)value, diagnostics, context);
case DroolsPackage.TRUNCATED_NORMAL_DISTRIBUTION_TYPE:
return validateTruncatedNormalDistributionType((TruncatedNormalDistributionType)value, diagnostics, context);
case DroolsPackage.UNIFORM_DISTRIBUTION_TYPE:
return validateUniformDistributionType((UniformDistributionType)value, diagnostics, context);
case DroolsPackage.USER_DISTRIBUTION_DATA_POINT_TYPE:
return validateUserDistributionDataPointType((UserDistributionDataPointType)value, diagnostics, context);
case DroolsPackage.USER_DISTRIBUTION_TYPE:
return validateUserDistributionType((UserDistributionType)value, diagnostics, context);
case DroolsPackage.VENDOR_EXTENSION:
return validateVendorExtension((VendorExtension)value, diagnostics, context);
case DroolsPackage.WEIBULL_DISTRIBUTION_TYPE:
return validateWeibullDistributionType((WeibullDistributionType)value, diagnostics, context);
case DroolsPackage.RESULT_TYPE:
return validateResultType((ResultType)value, diagnostics, context);
case DroolsPackage.TIME_UNIT:
return validateTimeUnit((TimeUnit)value, diagnostics, context);
case DroolsPackage.PACKAGE_NAME_TYPE:
return validatePackageNameType((String)value, diagnostics, context);
case DroolsPackage.PRIORITY_TYPE:
return validatePriorityType((BigInteger)value, diagnostics, context);
case DroolsPackage.RESULT_TYPE_OBJECT:
return validateResultTypeObject((ResultType)value, diagnostics, context);
case DroolsPackage.RULE_FLOW_GROUP_TYPE:
return validateRuleFlowGroupType((String)value, diagnostics, context);
case DroolsPackage.TASK_NAME_TYPE:
return validateTaskNameType((String)value, diagnostics, context);
case DroolsPackage.TIME_UNIT_OBJECT:
return validateTimeUnitObject((TimeUnit)value, diagnostics, context);
case DroolsPackage.VERSION_TYPE:
return validateVersionType((String)value, diagnostics, context);
default:
return true;
}
}
/**
*
*
* @generated
*/
public boolean validateBetaDistributionType(BetaDistributionType betaDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(betaDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateBinomialDistributionType(BinomialDistributionType binomialDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(binomialDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateBooleanParameterType(BooleanParameterType booleanParameterType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(booleanParameterType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateCalendar(Calendar calendar, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(calendar, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateConstantParameter(ConstantParameter constantParameter, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(constantParameter, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateControlParameters(ControlParameters controlParameters, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(controlParameters, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateCostParameters(CostParameters costParameters, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(costParameters, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateDateTimeParameterType(DateTimeParameterType dateTimeParameterType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(dateTimeParameterType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateDecimalParameterType(DecimalParameterType decimalParameterType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(decimalParameterType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateDistributionParameter(DistributionParameter distributionParameter, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(distributionParameter, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateDocumentRoot(DocumentRoot documentRoot, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(documentRoot, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateDurationParameterType(DurationParameterType durationParameterType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(durationParameterType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateElementParameters(ElementParameters elementParameters, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(elementParameters, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateElementParametersType(ElementParametersType elementParametersType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(elementParametersType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateEnumParameterType(EnumParameterType enumParameterType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(enumParameterType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateErlangDistributionType(ErlangDistributionType erlangDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(erlangDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateExpressionParameterType(ExpressionParameterType expressionParameterType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(expressionParameterType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateFloatingParameterType(FloatingParameterType floatingParameterType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(floatingParameterType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateGammaDistributionType(GammaDistributionType gammaDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(gammaDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateGlobalType(GlobalType globalType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(globalType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateImportType(ImportType importType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(importType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateLogNormalDistributionType(LogNormalDistributionType logNormalDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(logNormalDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateMetadataType(MetadataType metadataType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(metadataType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateMetaentryType(MetaentryType metaentryType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(metaentryType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateNegativeExponentialDistributionType(NegativeExponentialDistributionType negativeExponentialDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(negativeExponentialDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateNormalDistributionType(NormalDistributionType normalDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(normalDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateNumericParameterType(NumericParameterType numericParameterType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(numericParameterType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateOnEntryScriptType(OnEntryScriptType onEntryScriptType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(onEntryScriptType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateOnExitScriptType(OnExitScriptType onExitScriptType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(onExitScriptType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateParameter(Parameter parameter, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(parameter, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateParameterValue(ParameterValue parameterValue, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(parameterValue, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validatePoissonDistributionType(PoissonDistributionType poissonDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(poissonDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validatePriorityParameters(PriorityParameters priorityParameters, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(priorityParameters, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateProcessAnalysisDataType(ProcessAnalysisDataType processAnalysisDataType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(processAnalysisDataType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validatePropertyParameters(PropertyParameters propertyParameters, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(propertyParameters, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validatePropertyType(PropertyType propertyType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(propertyType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateRandomDistributionType(RandomDistributionType randomDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(randomDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateResourceParameters(ResourceParameters resourceParameters, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(resourceParameters, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateScenario(Scenario scenario, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(scenario, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateScenarioParameters(ScenarioParameters scenarioParameters, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(scenarioParameters, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateScenarioParametersType(ScenarioParametersType scenarioParametersType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(scenarioParametersType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateStringParameterType(StringParameterType stringParameterType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(stringParameterType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateTimeParameters(TimeParameters timeParameters, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(timeParameters, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateTriangularDistributionType(TriangularDistributionType triangularDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(triangularDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateTruncatedNormalDistributionType(TruncatedNormalDistributionType truncatedNormalDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(truncatedNormalDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateUniformDistributionType(UniformDistributionType uniformDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(uniformDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateUserDistributionDataPointType(UserDistributionDataPointType userDistributionDataPointType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(userDistributionDataPointType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateUserDistributionType(UserDistributionType userDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(userDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateVendorExtension(VendorExtension vendorExtension, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(vendorExtension, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateWeibullDistributionType(WeibullDistributionType weibullDistributionType, DiagnosticChain diagnostics, Map context) {
return validate_EveryDefaultConstraint(weibullDistributionType, diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateResultType(ResultType resultType, DiagnosticChain diagnostics, Map context) {
return true;
}
/**
*
*
* @generated
*/
public boolean validateTimeUnit(TimeUnit timeUnit, DiagnosticChain diagnostics, Map context) {
return true;
}
/**
*
*
* @generated
*/
public boolean validatePackageNameType(String packageNameType, DiagnosticChain diagnostics, Map context) {
return true;
}
/**
*
*
* @generated
*/
public boolean validatePriorityType(BigInteger priorityType, DiagnosticChain diagnostics, Map context) {
boolean result = validatePriorityType_Min(priorityType, diagnostics, context);
return result;
}
/**
*
*
* @generated
* @see #validatePriorityType_Min
*/
public static final BigInteger PRIORITY_TYPE__MIN__VALUE = new BigInteger("1");
/**
* Validates the Min constraint of 'Priority Type '.
*
*
* @generated
*/
public boolean validatePriorityType_Min(BigInteger priorityType, DiagnosticChain diagnostics, Map context) {
boolean result = priorityType.compareTo(PRIORITY_TYPE__MIN__VALUE) >= 0;
if (!result && diagnostics != null)
reportMinViolation(DroolsPackage.Literals.PRIORITY_TYPE, priorityType, PRIORITY_TYPE__MIN__VALUE, true, diagnostics, context);
return result;
}
/**
*
*
* @generated
*/
public boolean validateResultTypeObject(ResultType resultTypeObject, DiagnosticChain diagnostics, Map context) {
return true;
}
/**
*
*
* @generated
*/
public boolean validateRuleFlowGroupType(String ruleFlowGroupType, DiagnosticChain diagnostics, Map context) {
return true;
}
/**
*
*
* @generated
*/
public boolean validateTaskNameType(String taskNameType, DiagnosticChain diagnostics, Map context) {
return true;
}
/**
*
*
* @generated
*/
public boolean validateTimeUnitObject(TimeUnit timeUnitObject, DiagnosticChain diagnostics, Map context) {
return true;
}
/**
*
*
* @generated
*/
public boolean validateVersionType(String versionType, DiagnosticChain diagnostics, Map context) {
return true;
}
} //DroolsValidator