java.lang.Object
org.eclipse.emf.ecore.util.EObjectValidator
org.nasdanika.html.model.html.util.HtmlValidator
- All Implemented Interfaces:
org.eclipse.emf.ecore.EValidator
The Validator for the model.
- See Also:
-
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.DynamicEDataTypeValidatorNested 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
FieldsModifier and TypeFieldDescriptionprotected static final intA constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.static final Stringstatic final HtmlValidatorThe cached model packageFields 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_OBJECTFields inherited from interface org.eclipse.emf.ecore.EValidator
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.emf.ecore.EPackageReturns the package of this validator switch.Returns the resource locator that will be used to fetch messages for this validator's diagnostics.protected booleanCallsvalidateXXXfor the corresponding classifier of the model.booleanvalidateHtmlElement(HtmlElement htmlElement, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidatePage(Page page, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateScript(Script script, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateScriptReference(ScriptReference scriptReference, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateStylesheet(Stylesheet stylesheet, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateStylesheetReference(StylesheetReference stylesheetReference, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateTag(Tag tag, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateTag_attributes(Tag tag, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the attributes constraint of 'Tag'.Methods inherited from class org.eclipse.emf.ecore.util.EObjectValidator
createBadDataValueDiagnostic, createDiagnostic, getAvailableChoices, getEcoreResourceLocator, getEcoreString, getFeatureLabel, getObjectLabel, 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 Details
-
INSTANCE
The cached model package -
DIAGNOSTIC_SOURCE
-
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:
-
-
Constructor Details
-
HtmlValidator
public HtmlValidator()Creates an instance of the switch.
-
-
Method Details
-
getEPackage
Returns the package of this validator switch.- Overrides:
getEPackagein classorg.eclipse.emf.ecore.util.EObjectValidator
-
validate
protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) CallsvalidateXXXfor the corresponding classifier of the model.- Overrides:
validatein classorg.eclipse.emf.ecore.util.EObjectValidator
-
validateHtmlElement
public boolean validateHtmlElement(HtmlElement htmlElement, DiagnosticChain diagnostics, Map<Object, Object> context) -
validateTag
-
validateTag_attributes
public boolean validateTag_attributes(Tag tag, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the attributes constraint of 'Tag'. -
validatePage
-
validateStylesheet
public boolean validateStylesheet(Stylesheet stylesheet, DiagnosticChain diagnostics, Map<Object, Object> context) -
validateStylesheetReference
public boolean validateStylesheetReference(StylesheetReference stylesheetReference, DiagnosticChain diagnostics, Map<Object, Object> context) -
validateScript
public boolean validateScript(Script script, DiagnosticChain diagnostics, Map<Object, Object> context) -
validateScriptReference
public boolean validateScriptReference(ScriptReference scriptReference, DiagnosticChain diagnostics, Map<Object, Object> context) -
getResourceLocator
Returns the resource locator that will be used to fetch messages for this validator's diagnostics.- Overrides:
getResourceLocatorin classorg.eclipse.emf.ecore.util.EObjectValidator
-