/** * <copyright> * </copyright> * * $Id$ */ package org.jboss.tools.smooks.model.freemarker.impl; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EDataType; import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.impl.EPackageImpl; import org.eclipse.emf.ecore.xml.type.XMLTypePackage; import org.jboss.tools.smooks.model.common.CommonPackage; import org.jboss.tools.smooks.model.common.impl.CommonPackageImpl; import org.jboss.tools.smooks.model.freemarker.BindTo; import org.jboss.tools.smooks.model.freemarker.DocumentRoot; import org.jboss.tools.smooks.model.freemarker.Freemarker; import org.jboss.tools.smooks.model.freemarker.FreemarkerFactory; import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage; import org.jboss.tools.smooks.model.freemarker.Inline; import org.jboss.tools.smooks.model.freemarker.InlineDirective; import org.jboss.tools.smooks.model.freemarker.OutputTo; import org.jboss.tools.smooks.model.freemarker.Template; import org.jboss.tools.smooks.model.freemarker.Use; import org.jboss.tools.smooks.model.smooks.SmooksPackage; import org.jboss.tools.smooks.model.smooks.impl.SmooksPackageImpl; /** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> * @generated */ public class FreemarkerPackageImpl extends EPackageImpl implements FreemarkerPackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass bindToEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass documentRootEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass freemarkerEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass inlineEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass outputToEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass templateEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass useEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum inlineDirectiveEEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EDataType inlineDirectiveObjectEDataType = null; /** * Creates an instance of the model <b>Package</b>, registered with * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package * package URI value. * <p>Note: the correct way to create the package is via the static * factory method {@link #init init()}, which also performs * initialization of the package, or returns the registered package, * if one already exists. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.eclipse.emf.ecore.EPackage.Registry * @see org.jboss.tools.smooks.model.freemarker.FreemarkerPackage#eNS_URI * @see #init() * @generated */ private FreemarkerPackageImpl() { super(eNS_URI, FreemarkerFactory.eINSTANCE); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static boolean isInited = false; /** * Creates, registers, and initializes the <b>Package</b> for this * model, and for any others upon which it depends. Simple * dependencies are satisfied by calling this method on all * dependent packages before doing anything else. This method drives * initialization for interdependent packages directly, in parallel * with this package, itself. * <p>Of this package and its interdependencies, all packages which * have not yet been registered by their URI values are first created * and registered. The packages are then initialized in two steps: * meta-model objects for all of the packages are created before any * are initialized, since one package's meta-model objects may refer to * those of another. * <p>Invocation of this method will not affect any packages that have * already been initialized. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static FreemarkerPackage init() { if (isInited) return (FreemarkerPackage)EPackage.Registry.INSTANCE.getEPackage(FreemarkerPackage.eNS_URI); // Obtain or create and register package FreemarkerPackageImpl theFreemarkerPackage = (FreemarkerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof FreemarkerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new FreemarkerPackageImpl()); isInited = true; // Initialize simple dependencies XMLTypePackage.eINSTANCE.eClass(); // Obtain or create and register interdependencies CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE); SmooksPackageImpl theSmooksPackage = (SmooksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) instanceof SmooksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) : SmooksPackage.eINSTANCE); // Create package meta-data objects theFreemarkerPackage.createPackageContents(); theCommonPackage.createPackageContents(); theSmooksPackage.createPackageContents(); // Initialize created meta-data theFreemarkerPackage.initializePackageContents(); theCommonPackage.initializePackageContents(); theSmooksPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theFreemarkerPackage.freeze(); return theFreemarkerPackage; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getBindTo() { return bindToEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBindTo_Id() { return (EAttribute)bindToEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getDocumentRoot() { return documentRootEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getDocumentRoot_Mixed() { return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_XMLNSPrefixMap() { return (EReference)documentRootEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_XSISchemaLocation() { return (EReference)documentRootEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_Freemarker() { return (EReference)documentRootEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getFreemarker() { return freemarkerEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getFreemarker_Template() { return (EReference)freemarkerEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getFreemarker_Use() { return (EReference)freemarkerEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getFreemarker_Param() { return (EReference)freemarkerEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getFreemarker_ApplyBefore() { return (EAttribute)freemarkerEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getFreemarker_ApplyOnElement() { return (EAttribute)freemarkerEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getFreemarker_ApplyOnElementNS() { return (EAttribute)freemarkerEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getInline() { return inlineEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getInline_Directive() { return (EAttribute)inlineEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getOutputTo() { return outputToEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getOutputTo_OutputStreamResource() { return (EAttribute)outputToEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getTemplate() { return templateEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getTemplate_Value() { return (EAttribute)templateEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getTemplate_Encoding() { return (EAttribute)templateEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getUse() { return useEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getUse_Inline() { return (EReference)useEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getUse_BindTo() { return (EReference)useEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getUse_OutputTo() { return (EReference)useEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getInlineDirective() { return inlineDirectiveEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EDataType getInlineDirectiveObject() { return inlineDirectiveObjectEDataType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public FreemarkerFactory getFreemarkerFactory() { return (FreemarkerFactory)getEFactoryInstance(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private boolean isCreated = false; /** * Creates the meta-model objects for the package. This method is * guarded to have no affect on any invocation but its first. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features bindToEClass = createEClass(BIND_TO); createEAttribute(bindToEClass, BIND_TO__ID); documentRootEClass = createEClass(DOCUMENT_ROOT); createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); createEReference(documentRootEClass, DOCUMENT_ROOT__FREEMARKER); freemarkerEClass = createEClass(FREEMARKER); createEReference(freemarkerEClass, FREEMARKER__TEMPLATE); createEReference(freemarkerEClass, FREEMARKER__USE); createEReference(freemarkerEClass, FREEMARKER__PARAM); createEAttribute(freemarkerEClass, FREEMARKER__APPLY_BEFORE); createEAttribute(freemarkerEClass, FREEMARKER__APPLY_ON_ELEMENT); createEAttribute(freemarkerEClass, FREEMARKER__APPLY_ON_ELEMENT_NS); inlineEClass = createEClass(INLINE); createEAttribute(inlineEClass, INLINE__DIRECTIVE); outputToEClass = createEClass(OUTPUT_TO); createEAttribute(outputToEClass, OUTPUT_TO__OUTPUT_STREAM_RESOURCE); templateEClass = createEClass(TEMPLATE); createEAttribute(templateEClass, TEMPLATE__VALUE); createEAttribute(templateEClass, TEMPLATE__ENCODING); useEClass = createEClass(USE); createEReference(useEClass, USE__INLINE); createEReference(useEClass, USE__BIND_TO); createEReference(useEClass, USE__OUTPUT_TO); // Create enums inlineDirectiveEEnum = createEEnum(INLINE_DIRECTIVE); // Create data types inlineDirectiveObjectEDataType = createEDataType(INLINE_DIRECTIVE_OBJECT); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private boolean isInitialized = false; /** * Complete the initialization of the package and its meta-model. This * method is guarded to have no affect on any invocation but its first. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages CommonPackage theCommonPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); SmooksPackage theSmooksPackage = (SmooksPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes bindToEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType()); freemarkerEClass.getESuperTypes().add(theSmooksPackage.getElementVisitor()); inlineEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType()); outputToEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType()); templateEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType()); useEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType()); // Initialize classes and features; add operations and parameters initEClass(bindToEClass, BindTo.class, "BindTo", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ initEAttribute(getBindTo_Id(), theXMLTypePackage.getString(), "id", null, 1, 1, BindTo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getDocumentRoot_Freemarker(), this.getFreemarker(), null, "freemarker", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEClass(freemarkerEClass, Freemarker.class, "Freemarker", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ initEReference(getFreemarker_Template(), this.getTemplate(), null, "template", null, 1, 1, Freemarker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getFreemarker_Use(), this.getUse(), null, "use", null, 0, 1, Freemarker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getFreemarker_Param(), theSmooksPackage.getParamType(), null, "param", null, 0, -1, Freemarker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEAttribute(getFreemarker_ApplyBefore(), theXMLTypePackage.getBoolean(), "applyBefore", "false", 0, 1, Freemarker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ initEAttribute(getFreemarker_ApplyOnElement(), theXMLTypePackage.getString(), "applyOnElement", null, 1, 1, Freemarker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEAttribute(getFreemarker_ApplyOnElementNS(), theXMLTypePackage.getAnyURI(), "applyOnElementNS", null, 0, 1, Freemarker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEClass(inlineEClass, Inline.class, "Inline", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ initEAttribute(getInline_Directive(), this.getInlineDirective(), "directive", null, 1, 1, Inline.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEClass(outputToEClass, OutputTo.class, "OutputTo", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ initEAttribute(getOutputTo_OutputStreamResource(), theXMLTypePackage.getString(), "outputStreamResource", null, 1, 1, OutputTo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEClass(templateEClass, Template.class, "Template", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ initEAttribute(getTemplate_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Template.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEAttribute(getTemplate_Encoding(), theXMLTypePackage.getString(), "encoding", "UTF-8", 0, 1, Template.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ initEClass(useEClass, Use.class, "Use", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ initEReference(getUse_Inline(), this.getInline(), null, "inline", null, 0, 1, Use.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getUse_BindTo(), this.getBindTo(), null, "bindTo", null, 0, 1, Use.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getUse_OutputTo(), this.getOutputTo(), null, "outputTo", null, 0, 1, Use.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ // Initialize enums and add enum literals initEEnum(inlineDirectiveEEnum, InlineDirective.class, "InlineDirective"); //$NON-NLS-1$ addEEnumLiteral(inlineDirectiveEEnum, InlineDirective.ADDTO); addEEnumLiteral(inlineDirectiveEEnum, InlineDirective.REPLACE); addEEnumLiteral(inlineDirectiveEEnum, InlineDirective.INSERTBEFORE); addEEnumLiteral(inlineDirectiveEEnum, InlineDirective.INSERTAFTER); // Initialize data types initEDataType(inlineDirectiveObjectEDataType, InlineDirective.class, "InlineDirectiveObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ // Create resource createResource(eNS_URI); // Create annotations // http:///org/eclipse/emf/ecore/util/ExtendedMetaData createExtendedMetaDataAnnotations(); } /** * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected void createExtendedMetaDataAnnotations() { String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; //$NON-NLS-1$ addAnnotation (bindToEClass, source, new String[] { "name", "bindTo", //$NON-NLS-1$ //$NON-NLS-2$ "kind", "empty" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getBindTo_Id(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (documentRootEClass, source, new String[] { "name", "", //$NON-NLS-1$ //$NON-NLS-2$ "kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getDocumentRoot_Mixed(), source, new String[] { "kind", "elementWildcard", //$NON-NLS-1$ //$NON-NLS-2$ "name", ":mixed" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getDocumentRoot_XMLNSPrefixMap(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "xmlns:prefix" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getDocumentRoot_XSISchemaLocation(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "xsi:schemaLocation" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getDocumentRoot_Freemarker(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "freemarker", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ "affiliation", "http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (freemarkerEClass, source, new String[] { "name", "freemarker", //$NON-NLS-1$ //$NON-NLS-2$ "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getFreemarker_Template(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "template", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getFreemarker_Use(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "use", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getFreemarker_Param(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "param", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "http://www.milyn.org/xsd/smooks-1.1.xsd" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getFreemarker_ApplyBefore(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "applyBefore" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getFreemarker_ApplyOnElement(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "applyOnElement" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getFreemarker_ApplyOnElementNS(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "applyOnElementNS" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (inlineEClass, source, new String[] { "name", "inline", //$NON-NLS-1$ //$NON-NLS-2$ "kind", "empty" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getInline_Directive(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "directive" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (inlineDirectiveEEnum, source, new String[] { "name", "inlineDirective" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (inlineDirectiveObjectEDataType, source, new String[] { "name", "inlineDirective:Object", //$NON-NLS-1$ //$NON-NLS-2$ "baseType", "inlineDirective" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (outputToEClass, source, new String[] { "name", "outputTo", //$NON-NLS-1$ //$NON-NLS-2$ "kind", "empty" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getOutputTo_OutputStreamResource(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "outputStreamResource" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (templateEClass, source, new String[] { "name", "template", //$NON-NLS-1$ //$NON-NLS-2$ "kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getTemplate_Value(), source, new String[] { "name", ":0", //$NON-NLS-1$ //$NON-NLS-2$ "kind", "simple" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getTemplate_Encoding(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "encoding" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (useEClass, source, new String[] { "name", "use", //$NON-NLS-1$ //$NON-NLS-2$ "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getUse_Inline(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "inline", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getUse_BindTo(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "bindTo", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getUse_OutputTo(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "outputTo", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); } } //FreemarkerPackageImpl