001/** 002 */ 003package org.nasdanika.html.model.html.impl; 004 005import org.eclipse.emf.ecore.EAttribute; 006import org.eclipse.emf.ecore.EClass; 007import org.eclipse.emf.ecore.EPackage; 008import org.eclipse.emf.ecore.EReference; 009import org.eclipse.emf.ecore.EValidator; 010 011import org.eclipse.emf.ecore.impl.EPackageImpl; 012 013import org.nasdanika.exec.ExecPackage; 014 015import org.nasdanika.exec.content.ContentPackage; 016import org.nasdanika.html.model.html.HtmlElement; 017import org.nasdanika.html.model.html.HtmlFactory; 018import org.nasdanika.html.model.html.HtmlPackage; 019import org.nasdanika.html.model.html.Page; 020import org.nasdanika.html.model.html.Script; 021import org.nasdanika.html.model.html.ScriptReference; 022import org.nasdanika.html.model.html.Stylesheet; 023import org.nasdanika.html.model.html.StylesheetReference; 024import org.nasdanika.html.model.html.Tag; 025 026import org.nasdanika.html.model.html.util.HtmlValidator; 027import org.nasdanika.ncore.NcorePackage; 028 029/** 030 * <!-- begin-user-doc --> 031 * An implementation of the model <b>Package</b>. 032 * <!-- end-user-doc --> 033 * @generated 034 */ 035public class HtmlPackageImpl extends EPackageImpl implements HtmlPackage { 036 /** 037 * <!-- begin-user-doc --> 038 * <!-- end-user-doc --> 039 * @generated 040 */ 041 private EClass htmlElementEClass = null; 042 043 /** 044 * <!-- begin-user-doc --> 045 * <!-- end-user-doc --> 046 * @generated 047 */ 048 private EClass tagEClass = null; 049 050 /** 051 * <!-- begin-user-doc --> 052 * <!-- end-user-doc --> 053 * @generated 054 */ 055 private EClass pageEClass = null; 056 057 /** 058 * <!-- begin-user-doc --> 059 * <!-- end-user-doc --> 060 * @generated 061 */ 062 private EClass stylesheetEClass = null; 063 064 /** 065 * <!-- begin-user-doc --> 066 * <!-- end-user-doc --> 067 * @generated 068 */ 069 private EClass stylesheetReferenceEClass = null; 070 071 /** 072 * <!-- begin-user-doc --> 073 * <!-- end-user-doc --> 074 * @generated 075 */ 076 private EClass scriptEClass = null; 077 078 /** 079 * <!-- begin-user-doc --> 080 * <!-- end-user-doc --> 081 * @generated 082 */ 083 private EClass scriptReferenceEClass = null; 084 085 /** 086 * Creates an instance of the model <b>Package</b>, registered with 087 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package 088 * package URI value. 089 * <p>Note: the correct way to create the package is via the static 090 * factory method {@link #init init()}, which also performs 091 * initialization of the package, or returns the registered package, 092 * if one already exists. 093 * <!-- begin-user-doc --> 094 * <!-- end-user-doc --> 095 * @see org.eclipse.emf.ecore.EPackage.Registry 096 * @see org.nasdanika.html.model.html.HtmlPackage#eNS_URI 097 * @see #init() 098 * @generated 099 */ 100 private HtmlPackageImpl() { 101 super(eNS_URI, HtmlFactory.eINSTANCE); 102 } 103 104 /** 105 * <!-- begin-user-doc --> 106 * <!-- end-user-doc --> 107 * @generated 108 */ 109 private static boolean isInited = false; 110 111 /** 112 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. 113 * 114 * <p>This method is used to initialize {@link HtmlPackage#eINSTANCE} when that field is accessed. 115 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. 116 * <!-- begin-user-doc --> 117 * <!-- end-user-doc --> 118 * @see #eNS_URI 119 * @see #createPackageContents() 120 * @see #initializePackageContents() 121 * @generated 122 */ 123 public static HtmlPackage init() { 124 if (isInited) return (HtmlPackage)EPackage.Registry.INSTANCE.getEPackage(HtmlPackage.eNS_URI); 125 126 // Obtain or create and register package 127 Object registeredHtmlPackage = EPackage.Registry.INSTANCE.get(eNS_URI); 128 HtmlPackageImpl theHtmlPackage = registeredHtmlPackage instanceof HtmlPackageImpl ? (HtmlPackageImpl)registeredHtmlPackage : new HtmlPackageImpl(); 129 130 isInited = true; 131 132 // Initialize simple dependencies 133 ExecPackage.eINSTANCE.eClass(); 134 NcorePackage.eINSTANCE.eClass(); 135 136 // Create package meta-data objects 137 theHtmlPackage.createPackageContents(); 138 139 // Initialize created meta-data 140 theHtmlPackage.initializePackageContents(); 141 142 // Register package validator 143 EValidator.Registry.INSTANCE.put 144 (theHtmlPackage, 145 new EValidator.Descriptor() { 146 @Override 147 public EValidator getEValidator() { 148 return HtmlValidator.INSTANCE; 149 } 150 }); 151 152 // Mark meta-data to indicate it can't be changed 153 theHtmlPackage.freeze(); 154 155 // Update the registry and return the package 156 EPackage.Registry.INSTANCE.put(HtmlPackage.eNS_URI, theHtmlPackage); 157 return theHtmlPackage; 158 } 159 160 /** 161 * <!-- begin-user-doc --> 162 * <!-- end-user-doc --> 163 * @generated 164 */ 165 @Override 166 public EClass getHtmlElement() { 167 return htmlElementEClass; 168 } 169 170 /** 171 * <!-- begin-user-doc --> 172 * <!-- end-user-doc --> 173 * @generated 174 */ 175 @Override 176 public EReference getHtmlElement_Attributes() { 177 return (EReference)htmlElementEClass.getEStructuralFeatures().get(0); 178 } 179 180 /** 181 * <!-- begin-user-doc --> 182 * <!-- end-user-doc --> 183 * @generated 184 */ 185 @Override 186 public EReference getHtmlElement_Content() { 187 return (EReference)htmlElementEClass.getEStructuralFeatures().get(1); 188 } 189 190 /** 191 * <!-- begin-user-doc --> 192 * <!-- end-user-doc --> 193 * @generated 194 */ 195 @Override 196 public EClass getTag() { 197 return tagEClass; 198 } 199 200 /** 201 * <!-- begin-user-doc --> 202 * <!-- end-user-doc --> 203 * @generated 204 */ 205 @Override 206 public EAttribute getTag_Name() { 207 return (EAttribute)tagEClass.getEStructuralFeatures().get(0); 208 } 209 210 /** 211 * <!-- begin-user-doc --> 212 * <!-- end-user-doc --> 213 * @generated 214 */ 215 @Override 216 public EClass getPage() { 217 return pageEClass; 218 } 219 220 /** 221 * <!-- begin-user-doc --> 222 * <!-- end-user-doc --> 223 * @generated 224 */ 225 @Override 226 public EReference getPage_Head() { 227 return (EReference)pageEClass.getEStructuralFeatures().get(0); 228 } 229 230 /** 231 * <!-- begin-user-doc --> 232 * <!-- end-user-doc --> 233 * @generated 234 */ 235 @Override 236 public EReference getPage_Body() { 237 return (EReference)pageEClass.getEStructuralFeatures().get(1); 238 } 239 240 /** 241 * <!-- begin-user-doc --> 242 * <!-- end-user-doc --> 243 * @generated 244 */ 245 @Override 246 public EReference getPage_Builders() { 247 return (EReference)pageEClass.getEStructuralFeatures().get(2); 248 } 249 250 /** 251 * <!-- begin-user-doc --> 252 * <!-- end-user-doc --> 253 * @generated 254 */ 255 @Override 256 public EAttribute getPage_Language() { 257 return (EAttribute)pageEClass.getEStructuralFeatures().get(3); 258 } 259 260 /** 261 * <!-- begin-user-doc --> 262 * <!-- end-user-doc --> 263 * @generated 264 */ 265 @Override 266 public EAttribute getPage_Name() { 267 return (EAttribute)pageEClass.getEStructuralFeatures().get(4); 268 } 269 270 /** 271 * <!-- begin-user-doc --> 272 * <!-- end-user-doc --> 273 * @generated 274 */ 275 @Override 276 public EAttribute getPage_Stylesheets() { 277 return (EAttribute)pageEClass.getEStructuralFeatures().get(5); 278 } 279 280 /** 281 * <!-- begin-user-doc --> 282 * <!-- end-user-doc --> 283 * @generated 284 */ 285 @Override 286 public EAttribute getPage_Scripts() { 287 return (EAttribute)pageEClass.getEStructuralFeatures().get(6); 288 } 289 290 /** 291 * <!-- begin-user-doc --> 292 * <!-- end-user-doc --> 293 * @generated 294 */ 295 @Override 296 public EClass getStylesheet() { 297 return stylesheetEClass; 298 } 299 300 /** 301 * <!-- begin-user-doc --> 302 * <!-- end-user-doc --> 303 * @generated 304 */ 305 @Override 306 public EClass getStylesheetReference() { 307 return stylesheetReferenceEClass; 308 } 309 310 /** 311 * <!-- begin-user-doc --> 312 * <!-- end-user-doc --> 313 * @generated 314 */ 315 @Override 316 public EAttribute getStylesheetReference_Target() { 317 return (EAttribute)stylesheetReferenceEClass.getEStructuralFeatures().get(0); 318 } 319 320 /** 321 * <!-- begin-user-doc --> 322 * <!-- end-user-doc --> 323 * @generated 324 */ 325 @Override 326 public EClass getScript() { 327 return scriptEClass; 328 } 329 330 /** 331 * <!-- begin-user-doc --> 332 * <!-- end-user-doc --> 333 * @generated 334 */ 335 @Override 336 public EClass getScriptReference() { 337 return scriptReferenceEClass; 338 } 339 340 /** 341 * <!-- begin-user-doc --> 342 * <!-- end-user-doc --> 343 * @generated 344 */ 345 @Override 346 public EAttribute getScriptReference_Src() { 347 return (EAttribute)scriptReferenceEClass.getEStructuralFeatures().get(0); 348 } 349 350 /** 351 * <!-- begin-user-doc --> 352 * <!-- end-user-doc --> 353 * @generated 354 */ 355 @Override 356 public HtmlFactory getHtmlFactory() { 357 return (HtmlFactory)getEFactoryInstance(); 358 } 359 360 /** 361 * <!-- begin-user-doc --> 362 * <!-- end-user-doc --> 363 * @generated 364 */ 365 private boolean isCreated = false; 366 367 /** 368 * Creates the meta-model objects for the package. This method is 369 * guarded to have no affect on any invocation but its first. 370 * <!-- begin-user-doc --> 371 * <!-- end-user-doc --> 372 * @generated 373 */ 374 public void createPackageContents() { 375 if (isCreated) return; 376 isCreated = true; 377 378 // Create classes and their features 379 htmlElementEClass = createEClass(HTML_ELEMENT); 380 createEReference(htmlElementEClass, HTML_ELEMENT__ATTRIBUTES); 381 createEReference(htmlElementEClass, HTML_ELEMENT__CONTENT); 382 383 tagEClass = createEClass(TAG); 384 createEAttribute(tagEClass, TAG__NAME); 385 386 pageEClass = createEClass(PAGE); 387 createEReference(pageEClass, PAGE__HEAD); 388 createEReference(pageEClass, PAGE__BODY); 389 createEReference(pageEClass, PAGE__BUILDERS); 390 createEAttribute(pageEClass, PAGE__LANGUAGE); 391 createEAttribute(pageEClass, PAGE__NAME); 392 createEAttribute(pageEClass, PAGE__STYLESHEETS); 393 createEAttribute(pageEClass, PAGE__SCRIPTS); 394 395 stylesheetEClass = createEClass(STYLESHEET); 396 397 stylesheetReferenceEClass = createEClass(STYLESHEET_REFERENCE); 398 createEAttribute(stylesheetReferenceEClass, STYLESHEET_REFERENCE__TARGET); 399 400 scriptEClass = createEClass(SCRIPT); 401 402 scriptReferenceEClass = createEClass(SCRIPT_REFERENCE); 403 createEAttribute(scriptReferenceEClass, SCRIPT_REFERENCE__SRC); 404 } 405 406 /** 407 * <!-- begin-user-doc --> 408 * <!-- end-user-doc --> 409 * @generated 410 */ 411 private boolean isInitialized = false; 412 413 /** 414 * Complete the initialization of the package and its meta-model. This 415 * method is guarded to have no affect on any invocation but its first. 416 * <!-- begin-user-doc --> 417 * <!-- end-user-doc --> 418 * @generated 419 */ 420 public void initializePackageContents() { 421 if (isInitialized) return; 422 isInitialized = true; 423 424 // Initialize package 425 setName(eNAME); 426 setNsPrefix(eNS_PREFIX); 427 setNsURI(eNS_URI); 428 429 // Obtain other dependent packages 430 NcorePackage theNcorePackage = (NcorePackage)EPackage.Registry.INSTANCE.getEPackage(NcorePackage.eNS_URI); 431 ExecPackage theExecPackage = (ExecPackage)EPackage.Registry.INSTANCE.getEPackage(ExecPackage.eNS_URI); 432 ContentPackage theContentPackage = (ContentPackage)EPackage.Registry.INSTANCE.getEPackage(ContentPackage.eNS_URI); 433 434 // Create type parameters 435 436 // Set bounds for type parameters 437 438 // Add supertypes to classes 439 htmlElementEClass.getESuperTypes().add(theNcorePackage.getModelElement()); 440 tagEClass.getESuperTypes().add(this.getHtmlElement()); 441 pageEClass.getESuperTypes().add(theNcorePackage.getModelElement()); 442 stylesheetEClass.getESuperTypes().add(theContentPackage.getFilter()); 443 stylesheetReferenceEClass.getESuperTypes().add(theNcorePackage.getModelElement()); 444 scriptEClass.getESuperTypes().add(theContentPackage.getFilter()); 445 scriptReferenceEClass.getESuperTypes().add(theNcorePackage.getModelElement()); 446 447 // Initialize classes, features, and operations; add parameters 448 initEClass(htmlElementEClass, HtmlElement.class, "HtmlElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 449 initEReference(getHtmlElement_Attributes(), theExecPackage.getProperty(), null, "attributes", null, 0, -1, HtmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 450 initEReference(getHtmlElement_Content(), ecorePackage.getEObject(), null, "content", null, 0, -1, HtmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 451 452 initEClass(tagEClass, Tag.class, "Tag", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 453 initEAttribute(getTag_Name(), ecorePackage.getEString(), "name", "div", 0, 1, Tag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 454 455 initEClass(pageEClass, Page.class, "Page", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 456 initEReference(getPage_Head(), ecorePackage.getEObject(), null, "head", null, 0, -1, Page.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 457 initEReference(getPage_Body(), ecorePackage.getEObject(), null, "body", null, 0, -1, Page.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 458 initEReference(getPage_Builders(), ecorePackage.getEObject(), null, "builders", null, 0, -1, Page.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 459 initEAttribute(getPage_Language(), ecorePackage.getEString(), "language", null, 0, 1, Page.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 460 initEAttribute(getPage_Name(), ecorePackage.getEString(), "name", null, 0, 1, Page.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 461 initEAttribute(getPage_Stylesheets(), ecorePackage.getEString(), "stylesheets", null, 0, -1, Page.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 462 initEAttribute(getPage_Scripts(), ecorePackage.getEString(), "scripts", null, 0, -1, Page.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 463 464 initEClass(stylesheetEClass, Stylesheet.class, "Stylesheet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 465 466 initEClass(stylesheetReferenceEClass, StylesheetReference.class, "StylesheetReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 467 initEAttribute(getStylesheetReference_Target(), ecorePackage.getEString(), "target", null, 1, 1, StylesheetReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 468 469 initEClass(scriptEClass, Script.class, "Script", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 470 471 initEClass(scriptReferenceEClass, ScriptReference.class, "ScriptReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 472 initEAttribute(getScriptReference_Src(), ecorePackage.getEString(), "src", null, 1, 1, ScriptReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 473 474 // Create resource 475 createResource(eNS_URI); 476 477 // Create annotations 478 // http://www.eclipse.org/emf/2002/GenModel 479 createGenModelAnnotations(); 480 // http://www.eclipse.org/emf/2002/Ecore 481 createEcoreAnnotations(); 482 // urn:org.nasdanika 483 createUrnorgAnnotations(); 484 } 485 486 /** 487 * Initializes the annotations for <b>http://www.eclipse.org/emf/2002/GenModel</b>. 488 * <!-- begin-user-doc --> 489 * <!-- end-user-doc --> 490 * @generated 491 */ 492 protected void createGenModelAnnotations() { 493 String source = "http://www.eclipse.org/emf/2002/GenModel"; 494 addAnnotation 495 (this, 496 source, 497 new String[] { 498 "documentation", "HTML model" 499 }); 500 addAnnotation 501 (htmlElementEClass, 502 source, 503 new String[] { 504 "documentation", "Base class for other HTML and bootstrap elements. " 505 }); 506 addAnnotation 507 (getHtmlElement_Attributes(), 508 source, 509 new String[] { 510 "documentation", "Tag attributes.\n\n## Interpolation\n\nAttribute values are interpolated, i.e. tokens in the form of ``${{token name[|default value]}}`` are replaced with the contextual values or default values, if any. Examples:\n\n* ``${my-style}`` - Token without a default value.\n* ``${font-weight|bold}`` - Token with a default value.\n\n## Regular attributes\n\nFor all top-level entries except ``class``, ``style``, and ``data`` attribute value is produced by converting the value to string for scalars and to JSON string for lists and maps. \nFor attributes which do not start with ``data-`` a warning is issued if the value is not a scalar, i.e. a list or a map.\n\n## Class\n\nFor class attribute its value is formed by concantenating elements using space as a separator. If elements are hierarchical then class name is formed by concatenation with a dash (``-``) as a separator.\n\n## Data\n\nIf value of ``data`` attbibute is a map then keys of that map get concatenated with ``data`` using dash (``-``) as a separator, them same applies to nested maps. Non-map values become attribute values - scalars are converted to string, lists are converted to JSON string.\n\n## Style\n\nStyle can be defined as a string, list or map. If style is defined as a list, all list values are concatenated with a space as a separator - it is a convent way for long unstructured definitions.\n\nIf style value is a map then the value and its contained map values are processed in the following fashion:\n\n* Keys are concatenated with dash as a separator.\n* List values are contcatenated wtih space as a separator.\n" 511 }); 512 addAnnotation 513 (getHtmlElement_Content(), 514 source, 515 new String[] { 516 "documentation", "Container content. \n\nContent elements are adapted to ${javadoc/org.nasdanika.common.SupplierFactory} for generation of HTML content." 517 }); 518 addAnnotation 519 (tagEClass, 520 source, 521 new String[] { 522 "documentation", "HTML Tag" 523 }); 524 addAnnotation 525 (getTag_Name(), 526 source, 527 new String[] { 528 "documentation", "Tag name." 529 }); 530 addAnnotation 531 (pageEClass, 532 source, 533 new String[] { 534 "documentation", "HTML page. The name attribute is output as title tag in the head.\n\n[Overview video](https://www.youtube.com/watch?v=S28UszI-2g8) - in Russian." 535 }); 536 addAnnotation 537 (getPage_Head(), 538 source, 539 new String[] { 540 "documentation", "Head content." 541 }); 542 addAnnotation 543 (getPage_Body(), 544 source, 545 new String[] { 546 "documentation", "Body content." 547 }); 548 addAnnotation 549 (getPage_Builders(), 550 source, 551 new String[] { 552 "documentation", "Builders operate on an instance of ``org.nasdanika.html.HTMLPage`` created by the the page element. Builders shall be adaptable to ``org.nasdanika.common.Consumer``." 553 }); 554 addAnnotation 555 (getPage_Language(), 556 source, 557 new String[] { 558 "documentation", "Page language - ``lang`` attribute." 559 }); 560 addAnnotation 561 (getPage_Stylesheets(), 562 source, 563 new String[] { 564 "documentation", "Stylesheet URL\'s" 565 }); 566 addAnnotation 567 (getPage_Scripts(), 568 source, 569 new String[] { 570 "documentation", "Script URL\'s" 571 }); 572 addAnnotation 573 (stylesheetEClass, 574 source, 575 new String[] { 576 "documentation", "CSS stylesheet with code stored in the model element ``code`` attribute." 577 }); 578 addAnnotation 579 (stylesheetReferenceEClass, 580 source, 581 new String[] { 582 "documentation", "Reference to an external stylesheet." 583 }); 584 addAnnotation 585 (getStylesheetReference_Target(), 586 source, 587 new String[] { 588 "documentation", "Stylesheet URL." 589 }); 590 addAnnotation 591 (scriptEClass, 592 source, 593 new String[] { 594 "documentation", "Script with code stored in the model element ``source`` reference." 595 }); 596 addAnnotation 597 (scriptReferenceEClass, 598 source, 599 new String[] { 600 "documentation", "References external script." 601 }); 602 addAnnotation 603 (getScriptReference_Src(), 604 source, 605 new String[] { 606 "documentation", "Script URL." 607 }); 608 } 609 610 /** 611 * Initializes the annotations for <b>http://www.eclipse.org/emf/2002/Ecore</b>. 612 * <!-- begin-user-doc --> 613 * <!-- end-user-doc --> 614 * @generated 615 */ 616 protected void createEcoreAnnotations() { 617 String source = "http://www.eclipse.org/emf/2002/Ecore"; 618 addAnnotation 619 (tagEClass, 620 source, 621 new String[] { 622 "constraints", "attributes" 623 }); 624 } 625 626 /** 627 * Initializes the annotations for <b>urn:org.nasdanika</b>. 628 * <!-- begin-user-doc --> 629 * <!-- end-user-doc --> 630 * @generated 631 */ 632 protected void createUrnorgAnnotations() { 633 String source = "urn:org.nasdanika"; 634 addAnnotation 635 (getStylesheetReference_Target(), 636 source, 637 new String[] { 638 "default-feature", "true" 639 }); 640 addAnnotation 641 (getScriptReference_Src(), 642 source, 643 new String[] { 644 "default-feature", "true" 645 }); 646 } 647 648} //HtmlPackageImpl