Package org.jboss.drools.util
Class DroolsValidator
- java.lang.Object
-
- org.eclipse.emf.ecore.util.EObjectValidator
-
- org.jboss.drools.util.DroolsValidator
-
- All Implemented Interfaces:
org.eclipse.emf.ecore.EValidator
public class DroolsValidator extends org.eclipse.emf.ecore.util.EObjectValidatorThe Validator for the model.- See Also:
DroolsPackage- Generated code
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.EObjectValidator
org.eclipse.emf.ecore.util.EObjectValidator.DynamicEClassValidator, org.eclipse.emf.ecore.util.EObjectValidator.DynamicEDataTypeValidator
-
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator
org.eclipse.emf.ecore.EValidator.Descriptor, org.eclipse.emf.ecore.EValidator.PatternMatcher, org.eclipse.emf.ecore.EValidator.Registry, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider, org.eclipse.emf.ecore.EValidator.ValidationDelegate
-
-
Field Summary
Fields Modifier and Type Field Description protected static intDIAGNOSTIC_CODE_COUNTA constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.static StringDIAGNOSTIC_SOURCEA constant for thesourceof diagnosticcodesfrom this package.static DroolsValidatorINSTANCEThe cached model packagestatic BigIntegerPRIORITY_TYPE__MIN__VALUEprotected org.eclipse.emf.ecore.xml.type.util.XMLTypeValidatorxmlTypeValidatorThe cached base package validator.-
Fields inherited from class org.eclipse.emf.ecore.util.EObjectValidator
DATA_VALUE__FRACTION_DIGITS_IN_RANGE, DATA_VALUE__LENGTH_IN_RANGE, DATA_VALUE__MATCHES_PATTERN, DATA_VALUE__TOTAL_DIGITS_IN_RANGE, DATA_VALUE__TYPE_CORRECT, DATA_VALUE__VALUE_IN_ENUMERATION, DATA_VALUE__VALUE_IN_RANGE, EOBJECT__EVERY_BIDIRECTIONAL_REFERENCE_IS_PAIRED, EOBJECT__EVERY_DATA_VALUE_CONFORMS, EOBJECT__EVERY_KEY_UNIQUE, EOBJECT__EVERY_MAP_ENTRY_UNIQUE, EOBJECT__EVERY_MULTIPCITY_CONFORMS, EOBJECT__EVERY_PROXY_RESOLVES, EOBJECT__EVERY_REFERENCE_IS_CONTAINED, EOBJECT__NO_CIRCULAR_CONTAINMENT, EOBJECT__UNIQUE_ID, ROOT_OBJECT
-
-
Constructor Summary
Constructors Constructor Description DroolsValidator()Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.emf.ecore.EPackagegetEPackage()Returns the package of this validator switch.protected booleanvalidate(int classifierID, Object value, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)CallsvalidateXXXfor the corresponding classifier of the model.booleanvalidateDocumentRoot(DocumentRoot documentRoot, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateGlobalType(GlobalType globalType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateImportType(ImportType importType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateMetaDataType(MetaDataType metaDataType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateOnEntryScriptType(OnEntryScriptType onEntryScriptType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateOnExitScriptType(OnExitScriptType onExitScriptType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidatePackageNameType(String packageNameType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidatePriorityType(BigInteger priorityType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidatePriorityType_Min(BigInteger priorityType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)Validates the Min constraint of 'Priority Type'.booleanvalidateRuleFlowGroupType(String ruleFlowGroupType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateTaskNameType(String taskNameType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateVersionType(String versionType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)-
Methods inherited from class org.eclipse.emf.ecore.util.EObjectValidator
createBadDataValueDiagnostic, createDiagnostic, getEcoreResourceLocator, getEcoreString, getFeatureLabel, getObjectLabel, getResourceLocator, getRootEValidator, getString, getValidationDelegateRegistry, getValueLabel, isEcoreString, reportConstraintDelegateException, reportConstraintDelegateException, reportConstraintDelegateNotFound, reportConstraintDelegateNotFound, reportConstraintDelegateViolation, reportConstraintDelegateViolation, reportDataValuePatternViolation, reportDataValueTypeViolation, reportEnumerationViolation, reportFractionDigitsViolation, reportInvariantDelegateException, reportInvariantDelegateNotFound, reportInvariantDelegateViolation, reportMaxLengthViolation, reportMaxViolation, reportMinLengthViolation, reportMinViolation, reportTotalDigitsViolation, validate, validate, validate, validate, validate, validate, validate_BidirectionalReferenceIsPaired, validate_DataValueConforms, validate_EveryBidirectionalReferenceIsPaired, validate_EveryDataValueConforms, validate_EveryDefaultConstraint, validate_EveryKeyUnique, validate_EveryMapEntryUnique, validate_EveryMultiplicityConforms, validate_EveryProxyResolves, validate_EveryReferenceIsContained, validate_KeyUnique, validate_MapEntryUnique, validate_MultiplicityConforms, validate_NoCircularContainment, validate_UniqueID, validatePattern, wrapEnumerationValues
-
-
-
-
Field Detail
-
INSTANCE
public static final DroolsValidator INSTANCE
The cached model package- Generated code
-
DIAGNOSTIC_SOURCE
public static final String DIAGNOSTIC_SOURCE
A constant for thesourceof diagnosticcodesfrom this package.- See Also:
Diagnostic.getSource(),Diagnostic.getCode(), Constant Field Values- Generated code
-
DIAGNOSTIC_CODE_COUNT
protected static final int DIAGNOSTIC_CODE_COUNT
A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.- See Also:
- Constant Field Values
- Generated code
-
xmlTypeValidator
protected org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator xmlTypeValidator
The cached base package validator.- Generated code
-
PRIORITY_TYPE__MIN__VALUE
public static final BigInteger PRIORITY_TYPE__MIN__VALUE
-
-
Method Detail
-
getEPackage
protected org.eclipse.emf.ecore.EPackage getEPackage()
Returns the package of this validator switch.- Overrides:
getEPackagein classorg.eclipse.emf.ecore.util.EObjectValidator- Generated code
-
validate
protected boolean validate(int classifierID, Object value, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)CallsvalidateXXXfor the corresponding classifier of the model.- Overrides:
validatein classorg.eclipse.emf.ecore.util.EObjectValidator- Generated code
-
validateDocumentRoot
public boolean validateDocumentRoot(DocumentRoot documentRoot, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
- Generated code
-
validateGlobalType
public boolean validateGlobalType(GlobalType globalType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
- Generated code
-
validateImportType
public boolean validateImportType(ImportType importType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
- Generated code
-
validateMetaDataType
public boolean validateMetaDataType(MetaDataType metaDataType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
- Generated code
-
validateOnEntryScriptType
public boolean validateOnEntryScriptType(OnEntryScriptType onEntryScriptType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
- Generated code
-
validateOnExitScriptType
public boolean validateOnExitScriptType(OnExitScriptType onExitScriptType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
- Generated code
-
validatePackageNameType
public boolean validatePackageNameType(String packageNameType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
- Generated code
-
validatePriorityType
public boolean validatePriorityType(BigInteger priorityType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
- Generated code
-
validatePriorityType_Min
public boolean validatePriorityType_Min(BigInteger priorityType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
Validates the Min constraint of 'Priority Type'.- Generated code
-
validateRuleFlowGroupType
public boolean validateRuleFlowGroupType(String ruleFlowGroupType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
- Generated code
-
validateTaskNameType
public boolean validateTaskNameType(String taskNameType, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,Object> context)
- Generated code
-
-