001/** 002 */ 003package org.nasdanika.html.model.bootstrap.util; 004 005import java.util.Map; 006 007import org.eclipse.emf.common.util.Diagnostic; 008import org.eclipse.emf.common.util.DiagnosticChain; 009import org.eclipse.emf.common.util.ResourceLocator; 010 011import org.eclipse.emf.ecore.EObject; 012import org.eclipse.emf.ecore.EPackage; 013 014import org.eclipse.emf.ecore.util.EObjectValidator; 015import org.nasdanika.emf.DiagnosticHelper; 016import org.nasdanika.html.bootstrap.Breakpoint; 017import org.nasdanika.html.bootstrap.Color; 018import org.nasdanika.html.bootstrap.Size; 019import org.nasdanika.html.bootstrap.Text.Alignment; 020import org.nasdanika.html.bootstrap.Text.Transform; 021import org.nasdanika.html.bootstrap.Text.Weight; 022import org.nasdanika.html.bootstrap.Theme; 023import org.nasdanika.html.model.bootstrap.Accordion; 024import org.nasdanika.html.model.bootstrap.ActionGroup; 025import org.nasdanika.html.model.bootstrap.ActionGroupItem; 026import org.nasdanika.html.model.bootstrap.Alert; 027import org.nasdanika.html.model.bootstrap.Appearance; 028import org.nasdanika.html.model.bootstrap.Badge; 029import org.nasdanika.html.model.bootstrap.BootstrapElement; 030import org.nasdanika.html.model.bootstrap.BootstrapPackage; 031import org.nasdanika.html.model.bootstrap.Border; 032import org.nasdanika.html.model.bootstrap.Breadcrumb; 033import org.nasdanika.html.model.bootstrap.Button; 034import org.nasdanika.html.model.bootstrap.ButtonGroup; 035import org.nasdanika.html.model.bootstrap.ButtonToolbar; 036import org.nasdanika.html.model.bootstrap.Card; 037import org.nasdanika.html.model.bootstrap.Carousel; 038import org.nasdanika.html.model.bootstrap.Collapse; 039import org.nasdanika.html.model.bootstrap.Column; 040import org.nasdanika.html.model.bootstrap.ColumnWidth; 041import org.nasdanika.html.model.bootstrap.Container; 042import org.nasdanika.html.model.bootstrap.ContentActionGroupItem; 043import org.nasdanika.html.model.bootstrap.Div; 044import org.nasdanika.html.model.bootstrap.Dropdown; 045import org.nasdanika.html.model.bootstrap.Form; 046import org.nasdanika.html.model.bootstrap.FormGroup; 047import org.nasdanika.html.model.bootstrap.InputGroup; 048import org.nasdanika.html.model.bootstrap.Item; 049import org.nasdanika.html.model.bootstrap.LinkActionGroupItem; 050import org.nasdanika.html.model.bootstrap.ListGroup; 051import org.nasdanika.html.model.bootstrap.Modal; 052import org.nasdanika.html.model.bootstrap.Navbar; 053import org.nasdanika.html.model.bootstrap.Navs; 054import org.nasdanika.html.model.bootstrap.Page; 055import org.nasdanika.html.model.bootstrap.Row; 056import org.nasdanika.html.model.bootstrap.Slide; 057import org.nasdanika.html.model.bootstrap.Spacing; 058import org.nasdanika.html.model.bootstrap.Table; 059import org.nasdanika.html.model.bootstrap.TableCell; 060import org.nasdanika.html.model.bootstrap.TableConfiguration; 061import org.nasdanika.html.model.bootstrap.TableHeader; 062import org.nasdanika.html.model.bootstrap.TableRow; 063import org.nasdanika.html.model.bootstrap.TableRowContainer; 064import org.nasdanika.html.model.bootstrap.TableSection; 065import org.nasdanika.html.model.bootstrap.Tag; 066import org.nasdanika.html.model.bootstrap.Text; 067import org.nasdanika.html.model.bootstrap.Tooltip; 068 069import org.nasdanika.html.model.html.util.HtmlValidator; 070 071/** 072 * <!-- begin-user-doc --> 073 * The <b>Validator</b> for the model. 074 * <!-- end-user-doc --> 075 * @see org.nasdanika.html.model.bootstrap.BootstrapPackage 076 * @generated 077 */ 078public class BootstrapValidator extends EObjectValidator { 079 /** 080 * The cached model package 081 * <!-- begin-user-doc --> 082 * <!-- end-user-doc --> 083 * @generated 084 */ 085 public static final BootstrapValidator INSTANCE = new BootstrapValidator(); 086 087 /** 088 * 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. 089 * <!-- begin-user-doc --> 090 * <!-- end-user-doc --> 091 * @see org.eclipse.emf.common.util.Diagnostic#getSource() 092 * @see org.eclipse.emf.common.util.Diagnostic#getCode() 093 * @generated 094 */ 095 public static final String DIAGNOSTIC_SOURCE = "org.nasdanika.html.model.bootstrap"; 096 097 /** 098 * A constant with a fixed name that can be used as the base value for additional hand written constants. 099 * <!-- begin-user-doc --> 100 * <!-- end-user-doc --> 101 * @generated 102 */ 103 private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 0; 104 105 /** 106 * A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class. 107 * <!-- begin-user-doc --> 108 * <!-- end-user-doc --> 109 * @generated 110 */ 111 protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT; 112 113 /** 114 * The cached base package validator. 115 * <!-- begin-user-doc --> 116 * <!-- end-user-doc --> 117 * @generated 118 */ 119 protected HtmlValidator htmlValidator; 120 121 /** 122 * Creates an instance of the switch. 123 * <!-- begin-user-doc --> 124 * <!-- end-user-doc --> 125 * @generated 126 */ 127 public BootstrapValidator() { 128 super(); 129 htmlValidator = HtmlValidator.INSTANCE; 130 } 131 132 /** 133 * Returns the package of this validator switch. 134 * <!-- begin-user-doc --> 135 * <!-- end-user-doc --> 136 * @generated 137 */ 138 @Override 139 protected EPackage getEPackage() { 140 return BootstrapPackage.eINSTANCE; 141 } 142 143 /** 144 * Calls <code>validateXXX</code> for the corresponding classifier of the model. 145 * <!-- begin-user-doc --> 146 * <!-- end-user-doc --> 147 * @generated 148 */ 149 @Override 150 protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) { 151 switch (classifierID) { 152 case BootstrapPackage.BOOTSTRAP_ELEMENT: 153 return validateBootstrapElement((BootstrapElement)value, diagnostics, context); 154 case BootstrapPackage.PAGE: 155 return validatePage((Page)value, diagnostics, context); 156 case BootstrapPackage.APPEARANCE: 157 return validateAppearance((Appearance)value, diagnostics, context); 158 case BootstrapPackage.APPEARANCE_ENTRY: 159 return validateAppearanceEntry((Map.Entry<?, ?>)value, diagnostics, context); 160 case BootstrapPackage.BORDER: 161 return validateBorder((Border)value, diagnostics, context); 162 case BootstrapPackage.SPACING: 163 return validateSpacing((Spacing)value, diagnostics, context); 164 case BootstrapPackage.TEXT: 165 return validateText((Text)value, diagnostics, context); 166 case BootstrapPackage.FLOAT: 167 return validateFloat((org.nasdanika.html.model.bootstrap.Float)value, diagnostics, context); 168 case BootstrapPackage.TAG: 169 return validateTag((Tag)value, diagnostics, context); 170 case BootstrapPackage.MODAL: 171 return validateModal((Modal)value, diagnostics, context); 172 case BootstrapPackage.DIV: 173 return validateDiv((Div)value, diagnostics, context); 174 case BootstrapPackage.ITEM: 175 return validateItem((Item)value, diagnostics, context); 176 case BootstrapPackage.ACTION_GROUP_ITEM: 177 return validateActionGroupItem((ActionGroupItem)value, diagnostics, context); 178 case BootstrapPackage.LINK_ACTION_GROUP_ITEM: 179 return validateLinkActionGroupItem((LinkActionGroupItem)value, diagnostics, context); 180 case BootstrapPackage.CONTENT_ACTION_GROUP_ITEM: 181 return validateContentActionGroupItem((ContentActionGroupItem)value, diagnostics, context); 182 case BootstrapPackage.ACTION_GROUP: 183 return validateActionGroup((ActionGroup)value, diagnostics, context); 184 case BootstrapPackage.CONTAINER: 185 return validateContainer((Container)value, diagnostics, context); 186 case BootstrapPackage.ROW: 187 return validateRow((Row)value, diagnostics, context); 188 case BootstrapPackage.COLUMN_WIDTH: 189 return validateColumnWidth((ColumnWidth)value, diagnostics, context); 190 case BootstrapPackage.COLUMN: 191 return validateColumn((Column)value, diagnostics, context); 192 case BootstrapPackage.TABLE_ROW_CONTAINER: 193 return validateTableRowContainer((TableRowContainer)value, diagnostics, context); 194 case BootstrapPackage.TABLE_SECTION: 195 return validateTableSection((TableSection)value, diagnostics, context); 196 case BootstrapPackage.TABLE_HEADER: 197 return validateTableHeader((TableHeader)value, diagnostics, context); 198 case BootstrapPackage.TABLE_CONFIGURATION: 199 return validateTableConfiguration((TableConfiguration)value, diagnostics, context); 200 case BootstrapPackage.TABLE: 201 return validateTable((Table)value, diagnostics, context); 202 case BootstrapPackage.TABLE_ROW: 203 return validateTableRow((TableRow)value, diagnostics, context); 204 case BootstrapPackage.TABLE_CELL: 205 return validateTableCell((TableCell)value, diagnostics, context); 206 case BootstrapPackage.CARD: 207 return validateCard((Card)value, diagnostics, context); 208 case BootstrapPackage.ALERT: 209 return validateAlert((Alert)value, diagnostics, context); 210 case BootstrapPackage.BADGE: 211 return validateBadge((Badge)value, diagnostics, context); 212 case BootstrapPackage.BREADCRUMB: 213 return validateBreadcrumb((Breadcrumb)value, diagnostics, context); 214 case BootstrapPackage.BUTTON: 215 return validateButton((Button)value, diagnostics, context); 216 case BootstrapPackage.BUTTON_GROUP: 217 return validateButtonGroup((ButtonGroup)value, diagnostics, context); 218 case BootstrapPackage.BUTTON_TOOLBAR: 219 return validateButtonToolbar((ButtonToolbar)value, diagnostics, context); 220 case BootstrapPackage.DROPDOWN: 221 return validateDropdown((Dropdown)value, diagnostics, context); 222 case BootstrapPackage.FORM: 223 return validateForm((Form)value, diagnostics, context); 224 case BootstrapPackage.LIST_GROUP: 225 return validateListGroup((ListGroup)value, diagnostics, context); 226 case BootstrapPackage.NAVS: 227 return validateNavs((Navs)value, diagnostics, context); 228 case BootstrapPackage.NAVBAR: 229 return validateNavbar((Navbar)value, diagnostics, context); 230 case BootstrapPackage.TOOLTIP: 231 return validateTooltip((Tooltip)value, diagnostics, context); 232 case BootstrapPackage.INPUT_GROUP: 233 return validateInputGroup((InputGroup)value, diagnostics, context); 234 case BootstrapPackage.FORM_GROUP: 235 return validateFormGroup((FormGroup)value, diagnostics, context); 236 case BootstrapPackage.COLLAPSE: 237 return validateCollapse((Collapse)value, diagnostics, context); 238 case BootstrapPackage.ACCORDION: 239 return validateAccordion((Accordion)value, diagnostics, context); 240 case BootstrapPackage.CAROUSEL: 241 return validateCarousel((Carousel)value, diagnostics, context); 242 case BootstrapPackage.SLIDE: 243 return validateSlide((Slide)value, diagnostics, context); 244 case BootstrapPackage.THEME: 245 return validateTheme((Theme)value, diagnostics, context); 246 case BootstrapPackage.COLOR: 247 return validateColor((Color)value, diagnostics, context); 248 case BootstrapPackage.SIZE: 249 return validateSize((Size)value, diagnostics, context); 250 case BootstrapPackage.BREAKPOINT: 251 return validateBreakpoint((Breakpoint)value, diagnostics, context); 252 case BootstrapPackage.TEXT_ALIGNMENT: 253 return validateTextAlignment((Alignment)value, diagnostics, context); 254 case BootstrapPackage.TEXT_TRANSFORM: 255 return validateTextTransform((Transform)value, diagnostics, context); 256 case BootstrapPackage.TEXT_WEIGHT: 257 return validateTextWeight((Weight)value, diagnostics, context); 258 default: 259 return true; 260 } 261 } 262 263 /** 264 * <!-- begin-user-doc --> 265 * <!-- end-user-doc --> 266 * @generated 267 */ 268 public boolean validateBootstrapElement(BootstrapElement bootstrapElement, DiagnosticChain diagnostics, Map<Object, Object> context) { 269 return validate_EveryDefaultConstraint(bootstrapElement, diagnostics, context); 270 } 271 272 /** 273 * <!-- begin-user-doc --> 274 * <!-- end-user-doc --> 275 * @generated 276 */ 277 public boolean validatePage(Page page, DiagnosticChain diagnostics, Map<Object, Object> context) { 278 if (!validate_NoCircularContainment(page, diagnostics, context)) return false; 279 boolean result = validate_EveryMultiplicityConforms(page, diagnostics, context); 280 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(page, diagnostics, context); 281 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(page, diagnostics, context); 282 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(page, diagnostics, context); 283 if (result || diagnostics != null) result &= validate_EveryProxyResolves(page, diagnostics, context); 284 if (result || diagnostics != null) result &= validate_UniqueID(page, diagnostics, context); 285 if (result || diagnostics != null) result &= validate_EveryKeyUnique(page, diagnostics, context); 286 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(page, diagnostics, context); 287 if (result || diagnostics != null) result &= validatePage_theme(page, diagnostics, context); 288 return result; 289 } 290 291 /** 292 * Validates the theme constraint of '<em>Page</em>'. 293 * <!-- begin-user-doc --> 294 * <!-- end-user-doc --> 295 * @generated NOT 296 */ 297 public boolean validatePage_theme(Page page, DiagnosticChain diagnostics, Map<Object, Object> context) { 298 if (diagnostics != null && !page.isCdn() && page.getTheme() != null) { 299 DiagnosticHelper helper = new DiagnosticHelper(diagnostics, DIAGNOSTIC_SOURCE, 0, page); 300 helper.error("Theme can only be specified with cdn set to 'true'", BootstrapPackage.Literals.PAGE__THEME); 301 return helper.isSuccess(); 302 } 303 return true; 304 } 305 306 /** 307 * <!-- begin-user-doc --> 308 * <!-- end-user-doc --> 309 * @generated 310 */ 311 public boolean validateAppearance(Appearance appearance, DiagnosticChain diagnostics, Map<Object, Object> context) { 312 if (!validate_NoCircularContainment(appearance, diagnostics, context)) return false; 313 boolean result = validate_EveryMultiplicityConforms(appearance, diagnostics, context); 314 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(appearance, diagnostics, context); 315 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(appearance, diagnostics, context); 316 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(appearance, diagnostics, context); 317 if (result || diagnostics != null) result &= validate_EveryProxyResolves(appearance, diagnostics, context); 318 if (result || diagnostics != null) result &= validate_UniqueID(appearance, diagnostics, context); 319 if (result || diagnostics != null) result &= validate_EveryKeyUnique(appearance, diagnostics, context); 320 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(appearance, diagnostics, context); 321 if (result || diagnostics != null) result &= validateAppearance_border_overlap(appearance, diagnostics, context); 322 if (result || diagnostics != null) result &= validateAppearance_background(appearance, diagnostics, context); 323 if (result || diagnostics != null) result &= validateAppearance_attributes(appearance, diagnostics, context); 324 return result; 325 } 326 327 /** 328 * Validates the border_overlap constraint of '<em>Appearance</em>'. 329 * <!-- begin-user-doc --> 330 * <!-- end-user-doc --> 331 * @generated 332 */ 333 public boolean validateAppearance_border_overlap(Appearance appearance, DiagnosticChain diagnostics, Map<Object, Object> context) { 334 // TODO implement the constraint 335 // -> specify the condition that violates the constraint 336 // -> verify the diagnostic details, including severity, code, and message 337 // Ensure that you remove @generated or mark it @generated NOT 338 if (false) { 339 if (diagnostics != null) { 340 diagnostics.add 341 (createDiagnostic 342 (Diagnostic.ERROR, 343 DIAGNOSTIC_SOURCE, 344 0, 345 "_UI_GenericConstraint_diagnostic", 346 new Object[] { "border_overlap", getObjectLabel(appearance, context) }, 347 new Object[] { appearance }, 348 context)); 349 } 350 return false; 351 } 352 return true; 353 } 354 355 /** 356 * Validates the background constraint of '<em>Appearance</em>'. 357 * <!-- begin-user-doc --> 358 * <!-- end-user-doc --> 359 * @generated 360 */ 361 public boolean validateAppearance_background(Appearance appearance, DiagnosticChain diagnostics, Map<Object, Object> context) { 362 // TODO implement the constraint 363 // -> specify the condition that violates the constraint 364 // -> verify the diagnostic details, including severity, code, and message 365 // Ensure that you remove @generated or mark it @generated NOT 366 if (false) { 367 if (diagnostics != null) { 368 diagnostics.add 369 (createDiagnostic 370 (Diagnostic.ERROR, 371 DIAGNOSTIC_SOURCE, 372 0, 373 "_UI_GenericConstraint_diagnostic", 374 new Object[] { "background", getObjectLabel(appearance, context) }, 375 new Object[] { appearance }, 376 context)); 377 } 378 return false; 379 } 380 return true; 381 } 382 383 /** 384 * Validates the attributes constraint of '<em>Appearance</em>'. 385 * <!-- begin-user-doc --> 386 * <!-- end-user-doc --> 387 * @generated 388 */ 389 public boolean validateAppearance_attributes(Appearance appearance, DiagnosticChain diagnostics, Map<Object, Object> context) { 390 // TODO implement the constraint 391 // -> specify the condition that violates the constraint 392 // -> verify the diagnostic details, including severity, code, and message 393 // Ensure that you remove @generated or mark it @generated NOT 394 if (false) { 395 if (diagnostics != null) { 396 diagnostics.add 397 (createDiagnostic 398 (Diagnostic.ERROR, 399 DIAGNOSTIC_SOURCE, 400 0, 401 "_UI_GenericConstraint_diagnostic", 402 new Object[] { "attributes", getObjectLabel(appearance, context) }, 403 new Object[] { appearance }, 404 context)); 405 } 406 return false; 407 } 408 return true; 409 } 410 411 /** 412 * <!-- begin-user-doc --> 413 * <!-- end-user-doc --> 414 * @generated 415 */ 416 public boolean validateAppearanceEntry(Map.Entry<?, ?> appearanceEntry, DiagnosticChain diagnostics, Map<Object, Object> context) { 417 return validate_EveryDefaultConstraint((EObject)appearanceEntry, diagnostics, context); 418 } 419 420 /** 421 * <!-- begin-user-doc --> 422 * <!-- end-user-doc --> 423 * @generated 424 */ 425 public boolean validateBorder(Border border, DiagnosticChain diagnostics, Map<Object, Object> context) { 426 if (!validate_NoCircularContainment(border, diagnostics, context)) return false; 427 boolean result = validate_EveryMultiplicityConforms(border, diagnostics, context); 428 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(border, diagnostics, context); 429 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(border, diagnostics, context); 430 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(border, diagnostics, context); 431 if (result || diagnostics != null) result &= validate_EveryProxyResolves(border, diagnostics, context); 432 if (result || diagnostics != null) result &= validate_UniqueID(border, diagnostics, context); 433 if (result || diagnostics != null) result &= validate_EveryKeyUnique(border, diagnostics, context); 434 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(border, diagnostics, context); 435 if (result || diagnostics != null) result &= validateBorder_placement(border, diagnostics, context); 436 if (result || diagnostics != null) result &= validateBorder_color(border, diagnostics, context); 437 return result; 438 } 439 440 /** 441 * Validates the placement constraint of '<em>Border</em>'. 442 * <!-- begin-user-doc --> 443 * <!-- end-user-doc --> 444 * @generated 445 */ 446 public boolean validateBorder_placement(Border border, DiagnosticChain diagnostics, Map<Object, Object> context) { 447 // TODO implement the constraint 448 // -> specify the condition that violates the constraint 449 // -> verify the diagnostic details, including severity, code, and message 450 // Ensure that you remove @generated or mark it @generated NOT 451 if (false) { 452 if (diagnostics != null) { 453 diagnostics.add 454 (createDiagnostic 455 (Diagnostic.ERROR, 456 DIAGNOSTIC_SOURCE, 457 0, 458 "_UI_GenericConstraint_diagnostic", 459 new Object[] { "placement", getObjectLabel(border, context) }, 460 new Object[] { border }, 461 context)); 462 } 463 return false; 464 } 465 return true; 466 } 467 468 /** 469 * Validates the color constraint of '<em>Border</em>'. 470 * <!-- begin-user-doc --> 471 * <!-- end-user-doc --> 472 * @generated 473 */ 474 public boolean validateBorder_color(Border border, DiagnosticChain diagnostics, Map<Object, Object> context) { 475 // TODO implement the constraint 476 // -> specify the condition that violates the constraint 477 // -> verify the diagnostic details, including severity, code, and message 478 // Ensure that you remove @generated or mark it @generated NOT 479 if (false) { 480 if (diagnostics != null) { 481 diagnostics.add 482 (createDiagnostic 483 (Diagnostic.ERROR, 484 DIAGNOSTIC_SOURCE, 485 0, 486 "_UI_GenericConstraint_diagnostic", 487 new Object[] { "color", getObjectLabel(border, context) }, 488 new Object[] { border }, 489 context)); 490 } 491 return false; 492 } 493 return true; 494 } 495 496 /** 497 * <!-- begin-user-doc --> 498 * <!-- end-user-doc --> 499 * @generated 500 */ 501 public boolean validateSpacing(Spacing spacing, DiagnosticChain diagnostics, Map<Object, Object> context) { 502 if (!validate_NoCircularContainment(spacing, diagnostics, context)) return false; 503 boolean result = validate_EveryMultiplicityConforms(spacing, diagnostics, context); 504 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(spacing, diagnostics, context); 505 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(spacing, diagnostics, context); 506 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(spacing, diagnostics, context); 507 if (result || diagnostics != null) result &= validate_EveryProxyResolves(spacing, diagnostics, context); 508 if (result || diagnostics != null) result &= validate_UniqueID(spacing, diagnostics, context); 509 if (result || diagnostics != null) result &= validate_EveryKeyUnique(spacing, diagnostics, context); 510 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(spacing, diagnostics, context); 511 if (result || diagnostics != null) result &= validateSpacing_size(spacing, diagnostics, context); 512 if (result || diagnostics != null) result &= validateSpacing_breakpoint(spacing, diagnostics, context); 513 return result; 514 } 515 516 /** 517 * Validates the size constraint of '<em>Spacing</em>'. 518 * <!-- begin-user-doc --> 519 * <!-- end-user-doc --> 520 * @generated 521 */ 522 public boolean validateSpacing_size(Spacing spacing, DiagnosticChain diagnostics, Map<Object, Object> context) { 523 // TODO implement the constraint 524 // -> specify the condition that violates the constraint 525 // -> verify the diagnostic details, including severity, code, and message 526 // Ensure that you remove @generated or mark it @generated NOT 527 if (false) { 528 if (diagnostics != null) { 529 diagnostics.add 530 (createDiagnostic 531 (Diagnostic.ERROR, 532 DIAGNOSTIC_SOURCE, 533 0, 534 "_UI_GenericConstraint_diagnostic", 535 new Object[] { "size", getObjectLabel(spacing, context) }, 536 new Object[] { spacing }, 537 context)); 538 } 539 return false; 540 } 541 return true; 542 } 543 544 /** 545 * Validates the breakpoint constraint of '<em>Spacing</em>'. 546 * <!-- begin-user-doc --> 547 * <!-- end-user-doc --> 548 * @generated 549 */ 550 public boolean validateSpacing_breakpoint(Spacing spacing, DiagnosticChain diagnostics, Map<Object, Object> context) { 551 // TODO implement the constraint 552 // -> specify the condition that violates the constraint 553 // -> verify the diagnostic details, including severity, code, and message 554 // Ensure that you remove @generated or mark it @generated NOT 555 if (false) { 556 if (diagnostics != null) { 557 diagnostics.add 558 (createDiagnostic 559 (Diagnostic.ERROR, 560 DIAGNOSTIC_SOURCE, 561 0, 562 "_UI_GenericConstraint_diagnostic", 563 new Object[] { "breakpoint", getObjectLabel(spacing, context) }, 564 new Object[] { spacing }, 565 context)); 566 } 567 return false; 568 } 569 return true; 570 } 571 572 /** 573 * <!-- begin-user-doc --> 574 * <!-- end-user-doc --> 575 * @generated 576 */ 577 public boolean validateText(Text text, DiagnosticChain diagnostics, Map<Object, Object> context) { 578 if (!validate_NoCircularContainment(text, diagnostics, context)) return false; 579 boolean result = validate_EveryMultiplicityConforms(text, diagnostics, context); 580 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(text, diagnostics, context); 581 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(text, diagnostics, context); 582 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(text, diagnostics, context); 583 if (result || diagnostics != null) result &= validate_EveryProxyResolves(text, diagnostics, context); 584 if (result || diagnostics != null) result &= validate_UniqueID(text, diagnostics, context); 585 if (result || diagnostics != null) result &= validate_EveryKeyUnique(text, diagnostics, context); 586 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(text, diagnostics, context); 587 if (result || diagnostics != null) result &= validateText_attributes(text, diagnostics, context); 588 return result; 589 } 590 591 /** 592 * Validates the attributes constraint of '<em>Text</em>'. 593 * <!-- begin-user-doc --> 594 * <!-- end-user-doc --> 595 * @generated 596 */ 597 public boolean validateText_attributes(Text text, DiagnosticChain diagnostics, Map<Object, Object> context) { 598 // TODO implement the constraint 599 // -> specify the condition that violates the constraint 600 // -> verify the diagnostic details, including severity, code, and message 601 // Ensure that you remove @generated or mark it @generated NOT 602 if (false) { 603 if (diagnostics != null) { 604 diagnostics.add 605 (createDiagnostic 606 (Diagnostic.ERROR, 607 DIAGNOSTIC_SOURCE, 608 0, 609 "_UI_GenericConstraint_diagnostic", 610 new Object[] { "attributes", getObjectLabel(text, context) }, 611 new Object[] { text }, 612 context)); 613 } 614 return false; 615 } 616 return true; 617 } 618 619 /** 620 * <!-- begin-user-doc --> 621 * <!-- end-user-doc --> 622 * @generated 623 */ 624 public boolean validateFloat(org.nasdanika.html.model.bootstrap.Float float_, DiagnosticChain diagnostics, Map<Object, Object> context) { 625 if (!validate_NoCircularContainment(float_, diagnostics, context)) return false; 626 boolean result = validate_EveryMultiplicityConforms(float_, diagnostics, context); 627 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(float_, diagnostics, context); 628 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(float_, diagnostics, context); 629 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(float_, diagnostics, context); 630 if (result || diagnostics != null) result &= validate_EveryProxyResolves(float_, diagnostics, context); 631 if (result || diagnostics != null) result &= validate_UniqueID(float_, diagnostics, context); 632 if (result || diagnostics != null) result &= validate_EveryKeyUnique(float_, diagnostics, context); 633 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(float_, diagnostics, context); 634 if (result || diagnostics != null) result &= validateFloat_attributes(float_, diagnostics, context); 635 return result; 636 } 637 638 /** 639 * Validates the attributes constraint of '<em>Float</em>'. 640 * <!-- begin-user-doc --> 641 * <!-- end-user-doc --> 642 * @generated 643 */ 644 public boolean validateFloat_attributes(org.nasdanika.html.model.bootstrap.Float float_, DiagnosticChain diagnostics, Map<Object, Object> context) { 645 // TODO implement the constraint 646 // -> specify the condition that violates the constraint 647 // -> verify the diagnostic details, including severity, code, and message 648 // Ensure that you remove @generated or mark it @generated NOT 649 if (false) { 650 if (diagnostics != null) { 651 diagnostics.add 652 (createDiagnostic 653 (Diagnostic.ERROR, 654 DIAGNOSTIC_SOURCE, 655 0, 656 "_UI_GenericConstraint_diagnostic", 657 new Object[] { "attributes", getObjectLabel(float_, context) }, 658 new Object[] { float_ }, 659 context)); 660 } 661 return false; 662 } 663 return true; 664 } 665 666 /** 667 * <!-- begin-user-doc --> 668 * <!-- end-user-doc --> 669 * @generated 670 */ 671 public boolean validateTag(Tag tag, DiagnosticChain diagnostics, Map<Object, Object> context) { 672 if (!validate_NoCircularContainment(tag, diagnostics, context)) return false; 673 boolean result = validate_EveryMultiplicityConforms(tag, diagnostics, context); 674 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(tag, diagnostics, context); 675 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(tag, diagnostics, context); 676 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(tag, diagnostics, context); 677 if (result || diagnostics != null) result &= validate_EveryProxyResolves(tag, diagnostics, context); 678 if (result || diagnostics != null) result &= validate_UniqueID(tag, diagnostics, context); 679 if (result || diagnostics != null) result &= validate_EveryKeyUnique(tag, diagnostics, context); 680 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(tag, diagnostics, context); 681 if (result || diagnostics != null) result &= htmlValidator.validateTag_attributes(tag, diagnostics, context); 682 return result; 683 } 684 685 /** 686 * <!-- begin-user-doc --> 687 * <!-- end-user-doc --> 688 * @generated 689 */ 690 public boolean validateDiv(Div div, DiagnosticChain diagnostics, Map<Object, Object> context) { 691 if (!validate_NoCircularContainment(div, diagnostics, context)) return false; 692 boolean result = validate_EveryMultiplicityConforms(div, diagnostics, context); 693 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(div, diagnostics, context); 694 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(div, diagnostics, context); 695 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(div, diagnostics, context); 696 if (result || diagnostics != null) result &= validate_EveryProxyResolves(div, diagnostics, context); 697 if (result || diagnostics != null) result &= validate_UniqueID(div, diagnostics, context); 698 if (result || diagnostics != null) result &= validate_EveryKeyUnique(div, diagnostics, context); 699 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(div, diagnostics, context); 700 if (result || diagnostics != null) result &= htmlValidator.validateTag_attributes(div, diagnostics, context); 701 return result; 702 } 703 704 /** 705 * <!-- begin-user-doc --> 706 * <!-- end-user-doc --> 707 * @generated 708 */ 709 public boolean validateItem(Item item, DiagnosticChain diagnostics, Map<Object, Object> context) { 710 if (!validate_NoCircularContainment(item, diagnostics, context)) return false; 711 boolean result = validate_EveryMultiplicityConforms(item, diagnostics, context); 712 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(item, diagnostics, context); 713 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(item, diagnostics, context); 714 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(item, diagnostics, context); 715 if (result || diagnostics != null) result &= validate_EveryProxyResolves(item, diagnostics, context); 716 if (result || diagnostics != null) result &= validate_UniqueID(item, diagnostics, context); 717 if (result || diagnostics != null) result &= validate_EveryKeyUnique(item, diagnostics, context); 718 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(item, diagnostics, context); 719 if (result || diagnostics != null) result &= validateItem_color(item, diagnostics, context); 720 if (result || diagnostics != null) result &= validateItem_activeAndDisabled(item, diagnostics, context); 721 return result; 722 } 723 724 /** 725 * Validates the color constraint of '<em>Item</em>'. 726 * <!-- begin-user-doc --> 727 * <!-- end-user-doc --> 728 * @generated 729 */ 730 public boolean validateItem_color(Item item, DiagnosticChain diagnostics, Map<Object, Object> context) { 731 // TODO implement the constraint 732 // -> specify the condition that violates the constraint 733 // -> verify the diagnostic details, including severity, code, and message 734 // Ensure that you remove @generated or mark it @generated NOT 735 if (false) { 736 if (diagnostics != null) { 737 diagnostics.add 738 (createDiagnostic 739 (Diagnostic.ERROR, 740 DIAGNOSTIC_SOURCE, 741 0, 742 "_UI_GenericConstraint_diagnostic", 743 new Object[] { "color", getObjectLabel(item, context) }, 744 new Object[] { item }, 745 context)); 746 } 747 return false; 748 } 749 return true; 750 } 751 752 /** 753 * Validates the activeAndDisabled constraint of '<em>Item</em>'. 754 * <!-- begin-user-doc --> 755 * <!-- end-user-doc --> 756 * @generated 757 */ 758 public boolean validateItem_activeAndDisabled(Item item, DiagnosticChain diagnostics, Map<Object, Object> context) { 759 // TODO implement the constraint 760 // -> specify the condition that violates the constraint 761 // -> verify the diagnostic details, including severity, code, and message 762 // Ensure that you remove @generated or mark it @generated NOT 763 if (false) { 764 if (diagnostics != null) { 765 diagnostics.add 766 (createDiagnostic 767 (Diagnostic.ERROR, 768 DIAGNOSTIC_SOURCE, 769 0, 770 "_UI_GenericConstraint_diagnostic", 771 new Object[] { "activeAndDisabled", getObjectLabel(item, context) }, 772 new Object[] { item }, 773 context)); 774 } 775 return false; 776 } 777 return true; 778 } 779 780 /** 781 * <!-- begin-user-doc --> 782 * <!-- end-user-doc --> 783 * @generated 784 */ 785 public boolean validateActionGroupItem(ActionGroupItem actionGroupItem, DiagnosticChain diagnostics, Map<Object, Object> context) { 786 if (!validate_NoCircularContainment(actionGroupItem, diagnostics, context)) return false; 787 boolean result = validate_EveryMultiplicityConforms(actionGroupItem, diagnostics, context); 788 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(actionGroupItem, diagnostics, context); 789 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(actionGroupItem, diagnostics, context); 790 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(actionGroupItem, diagnostics, context); 791 if (result || diagnostics != null) result &= validate_EveryProxyResolves(actionGroupItem, diagnostics, context); 792 if (result || diagnostics != null) result &= validate_UniqueID(actionGroupItem, diagnostics, context); 793 if (result || diagnostics != null) result &= validate_EveryKeyUnique(actionGroupItem, diagnostics, context); 794 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(actionGroupItem, diagnostics, context); 795 if (result || diagnostics != null) result &= validateItem_color(actionGroupItem, diagnostics, context); 796 if (result || diagnostics != null) result &= validateItem_activeAndDisabled(actionGroupItem, diagnostics, context); 797 return result; 798 } 799 800 /** 801 * <!-- begin-user-doc --> 802 * <!-- end-user-doc --> 803 * @generated 804 */ 805 public boolean validateLinkActionGroupItem(LinkActionGroupItem linkActionGroupItem, DiagnosticChain diagnostics, Map<Object, Object> context) { 806 if (!validate_NoCircularContainment(linkActionGroupItem, diagnostics, context)) return false; 807 boolean result = validate_EveryMultiplicityConforms(linkActionGroupItem, diagnostics, context); 808 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(linkActionGroupItem, diagnostics, context); 809 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(linkActionGroupItem, diagnostics, context); 810 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(linkActionGroupItem, diagnostics, context); 811 if (result || diagnostics != null) result &= validate_EveryProxyResolves(linkActionGroupItem, diagnostics, context); 812 if (result || diagnostics != null) result &= validate_UniqueID(linkActionGroupItem, diagnostics, context); 813 if (result || diagnostics != null) result &= validate_EveryKeyUnique(linkActionGroupItem, diagnostics, context); 814 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(linkActionGroupItem, diagnostics, context); 815 if (result || diagnostics != null) result &= validateItem_color(linkActionGroupItem, diagnostics, context); 816 if (result || diagnostics != null) result &= validateItem_activeAndDisabled(linkActionGroupItem, diagnostics, context); 817 return result; 818 } 819 820 /** 821 * <!-- begin-user-doc --> 822 * <!-- end-user-doc --> 823 * @generated 824 */ 825 public boolean validateContentActionGroupItem(ContentActionGroupItem contentActionGroupItem, DiagnosticChain diagnostics, Map<Object, Object> context) { 826 if (!validate_NoCircularContainment(contentActionGroupItem, diagnostics, context)) return false; 827 boolean result = validate_EveryMultiplicityConforms(contentActionGroupItem, diagnostics, context); 828 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(contentActionGroupItem, diagnostics, context); 829 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(contentActionGroupItem, diagnostics, context); 830 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(contentActionGroupItem, diagnostics, context); 831 if (result || diagnostics != null) result &= validate_EveryProxyResolves(contentActionGroupItem, diagnostics, context); 832 if (result || diagnostics != null) result &= validate_UniqueID(contentActionGroupItem, diagnostics, context); 833 if (result || diagnostics != null) result &= validate_EveryKeyUnique(contentActionGroupItem, diagnostics, context); 834 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(contentActionGroupItem, diagnostics, context); 835 if (result || diagnostics != null) result &= validateItem_color(contentActionGroupItem, diagnostics, context); 836 if (result || diagnostics != null) result &= validateItem_activeAndDisabled(contentActionGroupItem, diagnostics, context); 837 return result; 838 } 839 840 /** 841 * <!-- begin-user-doc --> 842 * <!-- end-user-doc --> 843 * @generated 844 */ 845 public boolean validateActionGroup(ActionGroup actionGroup, DiagnosticChain diagnostics, Map<Object, Object> context) { 846 if (!validate_NoCircularContainment(actionGroup, diagnostics, context)) return false; 847 boolean result = validate_EveryMultiplicityConforms(actionGroup, diagnostics, context); 848 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(actionGroup, diagnostics, context); 849 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(actionGroup, diagnostics, context); 850 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(actionGroup, diagnostics, context); 851 if (result || diagnostics != null) result &= validate_EveryProxyResolves(actionGroup, diagnostics, context); 852 if (result || diagnostics != null) result &= validate_UniqueID(actionGroup, diagnostics, context); 853 if (result || diagnostics != null) result &= validate_EveryKeyUnique(actionGroup, diagnostics, context); 854 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(actionGroup, diagnostics, context); 855 if (result || diagnostics != null) result &= htmlValidator.validateTag_attributes(actionGroup, diagnostics, context); 856 return result; 857 } 858 859 /** 860 * <!-- begin-user-doc --> 861 * <!-- end-user-doc --> 862 * @generated 863 */ 864 public boolean validateContainer(Container container, DiagnosticChain diagnostics, Map<Object, Object> context) { 865 return validate_EveryDefaultConstraint(container, diagnostics, context); 866 } 867 868 /** 869 * <!-- begin-user-doc --> 870 * <!-- end-user-doc --> 871 * @generated 872 */ 873 public boolean validateRow(Row row, DiagnosticChain diagnostics, Map<Object, Object> context) { 874 return validate_EveryDefaultConstraint(row, diagnostics, context); 875 } 876 877 /** 878 * <!-- begin-user-doc --> 879 * <!-- end-user-doc --> 880 * @generated 881 */ 882 public boolean validateColumnWidth(ColumnWidth columnWidth, DiagnosticChain diagnostics, Map<Object, Object> context) { 883 if (!validate_NoCircularContainment(columnWidth, diagnostics, context)) return false; 884 boolean result = validate_EveryMultiplicityConforms(columnWidth, diagnostics, context); 885 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(columnWidth, diagnostics, context); 886 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(columnWidth, diagnostics, context); 887 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(columnWidth, diagnostics, context); 888 if (result || diagnostics != null) result &= validate_EveryProxyResolves(columnWidth, diagnostics, context); 889 if (result || diagnostics != null) result &= validate_UniqueID(columnWidth, diagnostics, context); 890 if (result || diagnostics != null) result &= validate_EveryKeyUnique(columnWidth, diagnostics, context); 891 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(columnWidth, diagnostics, context); 892 if (result || diagnostics != null) result &= validateColumnWidth_breakpoint(columnWidth, diagnostics, context); 893 if (result || diagnostics != null) result &= validateColumnWidth_width(columnWidth, diagnostics, context); 894 return result; 895 } 896 897 /** 898 * Validates the breakpoint constraint of '<em>Column Width</em>'. 899 * <!-- begin-user-doc --> 900 * <!-- end-user-doc --> 901 * @generated 902 */ 903 public boolean validateColumnWidth_breakpoint(ColumnWidth columnWidth, DiagnosticChain diagnostics, Map<Object, Object> context) { 904 // TODO implement the constraint 905 // -> specify the condition that violates the constraint 906 // -> verify the diagnostic details, including severity, code, and message 907 // Ensure that you remove @generated or mark it @generated NOT 908 if (false) { 909 if (diagnostics != null) { 910 diagnostics.add 911 (createDiagnostic 912 (Diagnostic.ERROR, 913 DIAGNOSTIC_SOURCE, 914 0, 915 "_UI_GenericConstraint_diagnostic", 916 new Object[] { "breakpoint", getObjectLabel(columnWidth, context) }, 917 new Object[] { columnWidth }, 918 context)); 919 } 920 return false; 921 } 922 return true; 923 } 924 925 /** 926 * Validates the width constraint of '<em>Column Width</em>'. 927 * <!-- begin-user-doc --> 928 * <!-- end-user-doc --> 929 * @generated 930 */ 931 public boolean validateColumnWidth_width(ColumnWidth columnWidth, DiagnosticChain diagnostics, Map<Object, Object> context) { 932 // TODO implement the constraint 933 // -> specify the condition that violates the constraint 934 // -> verify the diagnostic details, including severity, code, and message 935 // Ensure that you remove @generated or mark it @generated NOT 936 if (false) { 937 if (diagnostics != null) { 938 diagnostics.add 939 (createDiagnostic 940 (Diagnostic.ERROR, 941 DIAGNOSTIC_SOURCE, 942 0, 943 "_UI_GenericConstraint_diagnostic", 944 new Object[] { "width", getObjectLabel(columnWidth, context) }, 945 new Object[] { columnWidth }, 946 context)); 947 } 948 return false; 949 } 950 return true; 951 } 952 953 /** 954 * <!-- begin-user-doc --> 955 * <!-- end-user-doc --> 956 * @generated 957 */ 958 public boolean validateColumn(Column column, DiagnosticChain diagnostics, Map<Object, Object> context) { 959 return validate_EveryDefaultConstraint(column, diagnostics, context); 960 } 961 962 /** 963 * <!-- begin-user-doc --> 964 * <!-- end-user-doc --> 965 * @generated 966 */ 967 public boolean validateTableRowContainer(TableRowContainer tableRowContainer, DiagnosticChain diagnostics, Map<Object, Object> context) { 968 return validate_EveryDefaultConstraint(tableRowContainer, diagnostics, context); 969 } 970 971 /** 972 * <!-- begin-user-doc --> 973 * <!-- end-user-doc --> 974 * @generated 975 */ 976 public boolean validateTableSection(TableSection tableSection, DiagnosticChain diagnostics, Map<Object, Object> context) { 977 return validate_EveryDefaultConstraint(tableSection, diagnostics, context); 978 } 979 980 /** 981 * <!-- begin-user-doc --> 982 * <!-- end-user-doc --> 983 * @generated 984 */ 985 public boolean validateTableHeader(TableHeader tableHeader, DiagnosticChain diagnostics, Map<Object, Object> context) { 986 return validate_EveryDefaultConstraint(tableHeader, diagnostics, context); 987 } 988 989 /** 990 * <!-- begin-user-doc --> 991 * <!-- end-user-doc --> 992 * @generated 993 */ 994 public boolean validateTableConfiguration(TableConfiguration tableConfiguration, DiagnosticChain diagnostics, Map<Object, Object> context) { 995 return validate_EveryDefaultConstraint(tableConfiguration, diagnostics, context); 996 } 997 998 /** 999 * <!-- begin-user-doc --> 1000 * <!-- end-user-doc --> 1001 * @generated 1002 */ 1003 public boolean validateTable(Table table, DiagnosticChain diagnostics, Map<Object, Object> context) { 1004 return validate_EveryDefaultConstraint(table, diagnostics, context); 1005 } 1006 1007 /** 1008 * <!-- begin-user-doc --> 1009 * <!-- end-user-doc --> 1010 * @generated 1011 */ 1012 public boolean validateTableRow(TableRow tableRow, DiagnosticChain diagnostics, Map<Object, Object> context) { 1013 return validate_EveryDefaultConstraint(tableRow, diagnostics, context); 1014 } 1015 1016 /** 1017 * <!-- begin-user-doc --> 1018 * <!-- end-user-doc --> 1019 * @generated 1020 */ 1021 public boolean validateTableCell(TableCell tableCell, DiagnosticChain diagnostics, Map<Object, Object> context) { 1022 return validate_EveryDefaultConstraint(tableCell, diagnostics, context); 1023 } 1024 1025 /** 1026 * <!-- begin-user-doc --> 1027 * <!-- end-user-doc --> 1028 * @generated 1029 */ 1030 public boolean validateCard(Card card, DiagnosticChain diagnostics, Map<Object, Object> context) { 1031 if (!validate_NoCircularContainment(card, diagnostics, context)) return false; 1032 boolean result = validate_EveryMultiplicityConforms(card, diagnostics, context); 1033 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(card, diagnostics, context); 1034 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(card, diagnostics, context); 1035 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(card, diagnostics, context); 1036 if (result || diagnostics != null) result &= validate_EveryProxyResolves(card, diagnostics, context); 1037 if (result || diagnostics != null) result &= validate_UniqueID(card, diagnostics, context); 1038 if (result || diagnostics != null) result &= validate_EveryKeyUnique(card, diagnostics, context); 1039 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(card, diagnostics, context); 1040 if (result || diagnostics != null) result &= htmlValidator.validateTag_attributes(card, diagnostics, context); 1041 return result; 1042 } 1043 1044 /** 1045 * <!-- begin-user-doc --> 1046 * <!-- end-user-doc --> 1047 * @generated 1048 */ 1049 public boolean validateAlert(Alert alert, DiagnosticChain diagnostics, Map<Object, Object> context) { 1050 if (!validate_NoCircularContainment(alert, diagnostics, context)) return false; 1051 boolean result = validate_EveryMultiplicityConforms(alert, diagnostics, context); 1052 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(alert, diagnostics, context); 1053 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(alert, diagnostics, context); 1054 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(alert, diagnostics, context); 1055 if (result || diagnostics != null) result &= validate_EveryProxyResolves(alert, diagnostics, context); 1056 if (result || diagnostics != null) result &= validate_UniqueID(alert, diagnostics, context); 1057 if (result || diagnostics != null) result &= validate_EveryKeyUnique(alert, diagnostics, context); 1058 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(alert, diagnostics, context); 1059 if (result || diagnostics != null) result &= htmlValidator.validateTag_attributes(alert, diagnostics, context); 1060 return result; 1061 } 1062 1063 /** 1064 * <!-- begin-user-doc --> 1065 * <!-- end-user-doc --> 1066 * @generated 1067 */ 1068 public boolean validateBadge(Badge badge, DiagnosticChain diagnostics, Map<Object, Object> context) { 1069 if (!validate_NoCircularContainment(badge, diagnostics, context)) return false; 1070 boolean result = validate_EveryMultiplicityConforms(badge, diagnostics, context); 1071 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(badge, diagnostics, context); 1072 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(badge, diagnostics, context); 1073 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(badge, diagnostics, context); 1074 if (result || diagnostics != null) result &= validate_EveryProxyResolves(badge, diagnostics, context); 1075 if (result || diagnostics != null) result &= validate_UniqueID(badge, diagnostics, context); 1076 if (result || diagnostics != null) result &= validate_EveryKeyUnique(badge, diagnostics, context); 1077 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(badge, diagnostics, context); 1078 if (result || diagnostics != null) result &= htmlValidator.validateTag_attributes(badge, diagnostics, context); 1079 return result; 1080 } 1081 1082 /** 1083 * <!-- begin-user-doc --> 1084 * <!-- end-user-doc --> 1085 * @generated 1086 */ 1087 public boolean validateBreadcrumb(Breadcrumb breadcrumb, DiagnosticChain diagnostics, Map<Object, Object> context) { 1088 return validate_EveryDefaultConstraint(breadcrumb, diagnostics, context); 1089 } 1090 1091 /** 1092 * <!-- begin-user-doc --> 1093 * <!-- end-user-doc --> 1094 * @generated 1095 */ 1096 public boolean validateButton(Button button, DiagnosticChain diagnostics, Map<Object, Object> context) { 1097 if (!validate_NoCircularContainment(button, diagnostics, context)) return false; 1098 boolean result = validate_EveryMultiplicityConforms(button, diagnostics, context); 1099 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(button, diagnostics, context); 1100 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(button, diagnostics, context); 1101 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(button, diagnostics, context); 1102 if (result || diagnostics != null) result &= validate_EveryProxyResolves(button, diagnostics, context); 1103 if (result || diagnostics != null) result &= validate_UniqueID(button, diagnostics, context); 1104 if (result || diagnostics != null) result &= validate_EveryKeyUnique(button, diagnostics, context); 1105 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(button, diagnostics, context); 1106 if (result || diagnostics != null) result &= htmlValidator.validateTag_attributes(button, diagnostics, context); 1107 return result; 1108 } 1109 1110 /** 1111 * <!-- begin-user-doc --> 1112 * <!-- end-user-doc --> 1113 * @generated 1114 */ 1115 public boolean validateButtonGroup(ButtonGroup buttonGroup, DiagnosticChain diagnostics, Map<Object, Object> context) { 1116 return validate_EveryDefaultConstraint(buttonGroup, diagnostics, context); 1117 } 1118 1119 /** 1120 * <!-- begin-user-doc --> 1121 * <!-- end-user-doc --> 1122 * @generated 1123 */ 1124 public boolean validateButtonToolbar(ButtonToolbar buttonToolbar, DiagnosticChain diagnostics, Map<Object, Object> context) { 1125 return validate_EveryDefaultConstraint(buttonToolbar, diagnostics, context); 1126 } 1127 1128 /** 1129 * <!-- begin-user-doc --> 1130 * <!-- end-user-doc --> 1131 * @generated 1132 */ 1133 public boolean validateDropdown(Dropdown dropdown, DiagnosticChain diagnostics, Map<Object, Object> context) { 1134 return validate_EveryDefaultConstraint(dropdown, diagnostics, context); 1135 } 1136 1137 /** 1138 * <!-- begin-user-doc --> 1139 * <!-- end-user-doc --> 1140 * @generated 1141 */ 1142 public boolean validateForm(Form form, DiagnosticChain diagnostics, Map<Object, Object> context) { 1143 return validate_EveryDefaultConstraint(form, diagnostics, context); 1144 } 1145 1146 /** 1147 * <!-- begin-user-doc --> 1148 * <!-- end-user-doc --> 1149 * @generated 1150 */ 1151 public boolean validateListGroup(ListGroup listGroup, DiagnosticChain diagnostics, Map<Object, Object> context) { 1152 return validate_EveryDefaultConstraint(listGroup, diagnostics, context); 1153 } 1154 1155 /** 1156 * <!-- begin-user-doc --> 1157 * <!-- end-user-doc --> 1158 * @generated 1159 */ 1160 public boolean validateNavs(Navs navs, DiagnosticChain diagnostics, Map<Object, Object> context) { 1161 return validate_EveryDefaultConstraint(navs, diagnostics, context); 1162 } 1163 1164 /** 1165 * <!-- begin-user-doc --> 1166 * <!-- end-user-doc --> 1167 * @generated 1168 */ 1169 public boolean validateNavbar(Navbar navbar, DiagnosticChain diagnostics, Map<Object, Object> context) { 1170 return validate_EveryDefaultConstraint(navbar, diagnostics, context); 1171 } 1172 1173 /** 1174 * <!-- begin-user-doc --> 1175 * <!-- end-user-doc --> 1176 * @generated 1177 */ 1178 public boolean validateTooltip(Tooltip tooltip, DiagnosticChain diagnostics, Map<Object, Object> context) { 1179 return validate_EveryDefaultConstraint(tooltip, diagnostics, context); 1180 } 1181 1182 /** 1183 * <!-- begin-user-doc --> 1184 * <!-- end-user-doc --> 1185 * @generated 1186 */ 1187 public boolean validateInputGroup(InputGroup inputGroup, DiagnosticChain diagnostics, Map<Object, Object> context) { 1188 return validate_EveryDefaultConstraint(inputGroup, diagnostics, context); 1189 } 1190 1191 /** 1192 * <!-- begin-user-doc --> 1193 * <!-- end-user-doc --> 1194 * @generated 1195 */ 1196 public boolean validateFormGroup(FormGroup formGroup, DiagnosticChain diagnostics, Map<Object, Object> context) { 1197 return validate_EveryDefaultConstraint(formGroup, diagnostics, context); 1198 } 1199 1200 /** 1201 * <!-- begin-user-doc --> 1202 * <!-- end-user-doc --> 1203 * @generated 1204 */ 1205 public boolean validateCollapse(Collapse collapse, DiagnosticChain diagnostics, Map<Object, Object> context) { 1206 return validate_EveryDefaultConstraint(collapse, diagnostics, context); 1207 } 1208 1209 /** 1210 * <!-- begin-user-doc --> 1211 * <!-- end-user-doc --> 1212 * @generated 1213 */ 1214 public boolean validateModal(Modal modal, DiagnosticChain diagnostics, Map<Object, Object> context) { 1215 return validate_EveryDefaultConstraint(modal, diagnostics, context); 1216 } 1217 1218 /** 1219 * <!-- begin-user-doc --> 1220 * <!-- end-user-doc --> 1221 * @generated 1222 */ 1223 public boolean validateAccordion(Accordion accordion, DiagnosticChain diagnostics, Map<Object, Object> context) { 1224 return validate_EveryDefaultConstraint(accordion, diagnostics, context); 1225 } 1226 1227 /** 1228 * <!-- begin-user-doc --> 1229 * <!-- end-user-doc --> 1230 * @generated 1231 */ 1232 public boolean validateCarousel(Carousel carousel, DiagnosticChain diagnostics, Map<Object, Object> context) { 1233 if (!validate_NoCircularContainment(carousel, diagnostics, context)) return false; 1234 boolean result = validate_EveryMultiplicityConforms(carousel, diagnostics, context); 1235 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(carousel, diagnostics, context); 1236 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(carousel, diagnostics, context); 1237 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(carousel, diagnostics, context); 1238 if (result || diagnostics != null) result &= validate_EveryProxyResolves(carousel, diagnostics, context); 1239 if (result || diagnostics != null) result &= validate_UniqueID(carousel, diagnostics, context); 1240 if (result || diagnostics != null) result &= validate_EveryKeyUnique(carousel, diagnostics, context); 1241 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(carousel, diagnostics, context); 1242 if (result || diagnostics != null) result &= htmlValidator.validateTag_attributes(carousel, diagnostics, context); 1243 return result; 1244 } 1245 1246 /** 1247 * <!-- begin-user-doc --> 1248 * <!-- end-user-doc --> 1249 * @generated 1250 */ 1251 public boolean validateSlide(Slide slide, DiagnosticChain diagnostics, Map<Object, Object> context) { 1252 if (!validate_NoCircularContainment(slide, diagnostics, context)) return false; 1253 boolean result = validate_EveryMultiplicityConforms(slide, diagnostics, context); 1254 if (result || diagnostics != null) result &= validate_EveryDataValueConforms(slide, diagnostics, context); 1255 if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(slide, diagnostics, context); 1256 if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(slide, diagnostics, context); 1257 if (result || diagnostics != null) result &= validate_EveryProxyResolves(slide, diagnostics, context); 1258 if (result || diagnostics != null) result &= validate_UniqueID(slide, diagnostics, context); 1259 if (result || diagnostics != null) result &= validate_EveryKeyUnique(slide, diagnostics, context); 1260 if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(slide, diagnostics, context); 1261 if (result || diagnostics != null) result &= htmlValidator.validateTag_attributes(slide, diagnostics, context); 1262 return result; 1263 } 1264 1265 /** 1266 * <!-- begin-user-doc --> 1267 * <!-- end-user-doc --> 1268 * @generated 1269 */ 1270 public boolean validateTheme(Theme theme, DiagnosticChain diagnostics, Map<Object, Object> context) { 1271 return true; 1272 } 1273 1274 /** 1275 * <!-- begin-user-doc --> 1276 * <!-- end-user-doc --> 1277 * @generated 1278 */ 1279 public boolean validateColor(Color color, DiagnosticChain diagnostics, Map<Object, Object> context) { 1280 return true; 1281 } 1282 1283 /** 1284 * <!-- begin-user-doc --> 1285 * <!-- end-user-doc --> 1286 * @generated 1287 */ 1288 public boolean validateSize(Size size, DiagnosticChain diagnostics, Map<Object, Object> context) { 1289 return true; 1290 } 1291 1292 /** 1293 * <!-- begin-user-doc --> 1294 * <!-- end-user-doc --> 1295 * @generated 1296 */ 1297 public boolean validateBreakpoint(Breakpoint breakpoint, DiagnosticChain diagnostics, Map<Object, Object> context) { 1298 return true; 1299 } 1300 1301 /** 1302 * <!-- begin-user-doc --> 1303 * <!-- end-user-doc --> 1304 * @generated 1305 */ 1306 public boolean validateTextAlignment(Alignment textAlignment, DiagnosticChain diagnostics, Map<Object, Object> context) { 1307 return true; 1308 } 1309 1310 /** 1311 * <!-- begin-user-doc --> 1312 * <!-- end-user-doc --> 1313 * @generated 1314 */ 1315 public boolean validateTextTransform(Transform textTransform, DiagnosticChain diagnostics, Map<Object, Object> context) { 1316 return true; 1317 } 1318 1319 /** 1320 * <!-- begin-user-doc --> 1321 * <!-- end-user-doc --> 1322 * @generated 1323 */ 1324 public boolean validateTextWeight(Weight textWeight, DiagnosticChain diagnostics, Map<Object, Object> context) { 1325 return true; 1326 } 1327 1328 /** 1329 * Returns the resource locator that will be used to fetch messages for this validator's diagnostics. 1330 * <!-- begin-user-doc --> 1331 * <!-- end-user-doc --> 1332 * @generated 1333 */ 1334 @Override 1335 public ResourceLocator getResourceLocator() { 1336 // TODO 1337 // Specialize this to return a resource locator for messages specific to this validator. 1338 // Ensure that you remove @generated or mark it @generated NOT 1339 return super.getResourceLocator(); 1340 } 1341 1342} //BootstrapValidator