org.eclipse.emf.ecore.xml.type.XMLTypePackage Java Examples
The following examples show how to use
org.eclipse.emf.ecore.xml.type.XMLTypePackage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbapgitexternalrepoPackageImpl.java From ADT_Frontend with MIT License | 6 votes |
/** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link IAbapgitexternalrepoPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static IAbapgitexternalrepoPackage init() { if (isInited) return (IAbapgitexternalrepoPackage)EPackage.Registry.INSTANCE.getEPackage(IAbapgitexternalrepoPackage.eNS_URI); // Obtain or create and register package Object registeredAbapgitexternalrepoPackage = EPackage.Registry.INSTANCE.get(eNS_URI); AbapgitexternalrepoPackageImpl theAbapgitexternalrepoPackage = registeredAbapgitexternalrepoPackage instanceof AbapgitexternalrepoPackageImpl ? (AbapgitexternalrepoPackageImpl)registeredAbapgitexternalrepoPackage : new AbapgitexternalrepoPackageImpl(); isInited = true; // Initialize simple dependencies XMLTypePackage.eINSTANCE.eClass(); // Create package meta-data objects theAbapgitexternalrepoPackage.createPackageContents(); // Initialize created meta-data theAbapgitexternalrepoPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theAbapgitexternalrepoPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(IAbapgitexternalrepoPackage.eNS_URI, theAbapgitexternalrepoPackage); return theAbapgitexternalrepoPackage; }
Example #2
Source File: ModelValidator.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
/** * Validates the MemberTypes constraint of '<em>TTransaction Method</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateTTransactionMethod_MemberTypes(Object tTransactionMethod, DiagnosticChain diagnostics, Map<Object, Object> context) { if (diagnostics != null) { BasicDiagnostic tempDiagnostics = new BasicDiagnostic(); if (XMLTypePackage.Literals.ANY_URI.isInstance(tTransactionMethod)) { if (xmlTypeValidator.validateAnyURI((String)tTransactionMethod, tempDiagnostics, context)) return true; } if (ModelPackage.Literals.TTRANSACTION_METHOD_MEMBER1.isInstance(tTransactionMethod)) { if (validateTTransactionMethodMember1((TTransactionMethodMember1)tTransactionMethod, tempDiagnostics, context)) return true; } for (Diagnostic diagnostic : tempDiagnostics.getChildren()) { diagnostics.add(diagnostic); } } else { if (XMLTypePackage.Literals.ANY_URI.isInstance(tTransactionMethod)) { if (xmlTypeValidator.validateAnyURI((String)tTransactionMethod, null, context)) return true; } if (ModelPackage.Literals.TTRANSACTION_METHOD_MEMBER1.isInstance(tTransactionMethod)) { if (validateTTransactionMethodMember1((TTransactionMethodMember1)tTransactionMethod, null, context)) return true; } } return false; }
Example #3
Source File: OrganizationPackageImpl.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
/** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link OrganizationPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static OrganizationPackage init() { if (isInited) return (OrganizationPackage)EPackage.Registry.INSTANCE.getEPackage(OrganizationPackage.eNS_URI); // Obtain or create and register package OrganizationPackageImpl theOrganizationPackage = (OrganizationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OrganizationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OrganizationPackageImpl()); isInited = true; // Initialize simple dependencies XMLTypePackage.eINSTANCE.eClass(); // Create package meta-data objects theOrganizationPackage.createPackageContents(); // Initialize created meta-data theOrganizationPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theOrganizationPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(OrganizationPackage.eNS_URI, theOrganizationPackage); return theOrganizationPackage; }
Example #4
Source File: AbstractPortableURIsTest.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
@Before public void setUp() throws Exception { globalStateMemento = GlobalRegistries.makeCopyOfGlobalState(); EPackage.Registry.INSTANCE.put(XMLTypePackage.eNS_URI, XMLTypePackage.eINSTANCE); resourceSet = new XtextResourceSet(); resourceSet.getPackageRegistry().put(EcorePackage.eNS_URI, EcorePackage.eINSTANCE); resourceSet.getPackageRegistry().put(GenModelPackage.eNS_URI, GenModelPackage.eINSTANCE); resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("genmodel", new EcoreResourceFactoryImpl()); resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("ecore", new EcoreResourceFactoryImpl()); resourceSet.getURIConverter().getURIMap().put(URI.createPlatformPluginURI("org.eclipse.xtext/", false), URI.createURI("classpath:/")); resourceSet.getURIConverter().getURIMap().put(URI.createPlatformPluginURI("org.eclipse.xtext.xbase/", false), URI.createURI("classpath:/")); resourceSet.getURIConverter().getURIMap().put(URI.createPlatformPluginURI("org.eclipse.xtext.common.types/", false), URI.createURI("classpath:/")); resourceSet.getURIConverter().getURIMap().put(URI.createPlatformResourceURI("org.eclipse.emf.ecore/", false), URI.createURI("classpath:/")); resourceSet.getURIConverter().getURIMap().put(URI.createPlatformResourceURI("org.eclipse.xtext.xbase/", false), URI.createURI("classpath:/")); resourceSet.getURIConverter().getURIMap().put(URI.createPlatformResourceURI("org.eclipse.xtext.common.types/", false), URI.createURI("classpath:/")); resourceSet.getLoadOptions().put(XMLResource.OPTION_URI_HANDLER, this); resourceSet.setClasspathURIContext(getClasspathURIContext()); }
Example #5
Source File: AbapObjectsPackageImpl.java From ADT_Frontend with MIT License | 6 votes |
/** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link IAbapObjectsPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static IAbapObjectsPackage init() { if (isInited) return (IAbapObjectsPackage)EPackage.Registry.INSTANCE.getEPackage(IAbapObjectsPackage.eNS_URI); // Obtain or create and register package Object registeredAbapObjectsPackage = EPackage.Registry.INSTANCE.get(eNS_URI); AbapObjectsPackageImpl theAbapObjectsPackage = registeredAbapObjectsPackage instanceof AbapObjectsPackageImpl ? (AbapObjectsPackageImpl)registeredAbapObjectsPackage : new AbapObjectsPackageImpl(); isInited = true; // Initialize simple dependencies XMLTypePackage.eINSTANCE.eClass(); // Create package meta-data objects theAbapObjectsPackage.createPackageContents(); // Initialize created meta-data theAbapObjectsPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theAbapObjectsPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(IAbapObjectsPackage.eNS_URI, theAbapObjectsPackage); return theAbapObjectsPackage; }
Example #6
Source File: ModelValidator.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
/** * Validates the MemberTypes constraint of '<em>TImplementation</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateTImplementation_MemberTypes(Object tImplementation, DiagnosticChain diagnostics, Map<Object, Object> context) { if (diagnostics != null) { BasicDiagnostic tempDiagnostics = new BasicDiagnostic(); if (XMLTypePackage.Literals.ANY_URI.isInstance(tImplementation)) { if (xmlTypeValidator.validateAnyURI((String)tImplementation, tempDiagnostics, context)) return true; } if (ModelPackage.Literals.TIMPLEMENTATION_MEMBER1.isInstance(tImplementation)) { if (validateTImplementationMember1((TImplementationMember1)tImplementation, tempDiagnostics, context)) return true; } for (Diagnostic diagnostic : tempDiagnostics.getChildren()) { diagnostics.add(diagnostic); } } else { if (XMLTypePackage.Literals.ANY_URI.isInstance(tImplementation)) { if (xmlTypeValidator.validateAnyURI((String)tImplementation, null, context)) return true; } if (ModelPackage.Literals.TIMPLEMENTATION_MEMBER1.isInstance(tImplementation)) { if (validateTImplementationMember1((TImplementationMember1)tImplementation, null, context)) return true; } } return false; }
Example #7
Source File: BeansPackageImpl.java From hybris-commerce-eclipse-plugin with Apache License 2.0 | 6 votes |
/** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link BeansPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static BeansPackage init() { if (isInited) return (BeansPackage)EPackage.Registry.INSTANCE.getEPackage(BeansPackage.eNS_URI); // Obtain or create and register package BeansPackageImpl theBeansPackage = (BeansPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof BeansPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new BeansPackageImpl()); isInited = true; // Initialize simple dependencies XMLTypePackage.eINSTANCE.eClass(); // Create package meta-data objects theBeansPackage.createPackageContents(); // Initialize created meta-data theBeansPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theBeansPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(BeansPackage.eNS_URI, theBeansPackage); return theBeansPackage; }
Example #8
Source File: ExporterPackageImpl.java From neoscada with Eclipse Public License 1.0 | 5 votes |
/** * Creates, registers, and initializes the <b>Package</b> for this model, * and for any others upon which it depends. * <p> * This method is used to initialize {@link ExporterPackage#eINSTANCE} when * that field is accessed. Clients should not invoke it directly. Instead, * they should simply access that field to obtain the package. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static ExporterPackage init () { if ( isInited ) return (ExporterPackage)EPackage.Registry.INSTANCE.getEPackage ( ExporterPackage.eNS_URI ); // Obtain or create and register package ExporterPackageImpl theExporterPackage = (ExporterPackageImpl) ( EPackage.Registry.INSTANCE.get ( eNS_URI ) instanceof ExporterPackageImpl ? EPackage.Registry.INSTANCE.get ( eNS_URI ) : new ExporterPackageImpl () ); isInited = true; // Initialize simple dependencies XMLTypePackage.eINSTANCE.eClass (); // Create package meta-data objects theExporterPackage.createPackageContents (); // Initialize created meta-data theExporterPackage.initializePackageContents (); // Mark meta-data to indicate it can't be changed theExporterPackage.freeze (); // Update the registry and return the package EPackage.Registry.INSTANCE.put ( ExporterPackage.eNS_URI, theExporterPackage ); return theExporterPackage; }
Example #9
Source File: ModelFactoryImpl.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Double createCoverageTypeFromString( EDataType eDataType, String initialValue ) { return (Double) XMLTypeFactory.eINSTANCE.createFromString( XMLTypePackage.Literals.DOUBLE, initialValue ); }
Example #10
Source File: ModelFactoryImpl.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String convertCoverageTypeToString( EDataType eDataType, Object instanceValue ) { return XMLTypeFactory.eINSTANCE.convertToString( XMLTypePackage.Literals.DOUBLE, instanceValue ); }
Example #11
Source File: LayoutFactoryImpl.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Integer createEllipsisTypeFromString( EDataType eDataType, String initialValue ) { return (Integer) XMLTypeFactory.eINSTANCE.createFromString( XMLTypePackage.Literals.INT, initialValue ); }
Example #12
Source File: LayoutFactoryImpl.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Double createTitlePercentTypeFromString( EDataType eDataType, String initialValue ) { return (Double) XMLTypeFactory.eINSTANCE.createFromString( XMLTypePackage.Literals.DOUBLE, initialValue ); }
Example #13
Source File: LayoutFactoryImpl.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String convertTitlePercentTypeToString( EDataType eDataType, Object instanceValue ) { return XMLTypeFactory.eINSTANCE.convertToString( XMLTypePackage.Literals.DOUBLE, instanceValue ); }
Example #14
Source File: N4JSStandaloneSetup.java From n4js with Eclipse Public License 1.0 | 5 votes |
/** * Registers all dependent packages (N4JS, Types, ProjectDescription, XML) and file extensions (n4js, js) * * @param injector * the injector to get the resource service provider from */ public void register(Injector injector) { EPackage.Registry.INSTANCE.put(N4JSPackage.eINSTANCE.getNsURI(), N4JSPackage.eINSTANCE); EPackage.Registry.INSTANCE.put(TypeRefsPackage.eINSTANCE.getNsURI(), TypeRefsPackage.eINSTANCE); EPackage.Registry.INSTANCE.put(TypesPackage.eINSTANCE.getNsURI(), TypesPackage.eINSTANCE); EPackage.Registry.INSTANCE.put(ProjectDescriptionPackage.eINSTANCE.getNsURI(), ProjectDescriptionPackage.eINSTANCE); EPackage.Registry.INSTANCE.put(XMLTypePackage.eINSTANCE.getNsURI(), XMLTypePackage.eINSTANCE); org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector .getInstance(org.eclipse.xtext.resource.IResourceFactory.class); org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector .getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class); Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("n4js", resourceFactory); org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("n4js", serviceProvider); Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("n4jsx", resourceFactory); org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("n4jsx", serviceProvider); Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("js", resourceFactory); org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("js", serviceProvider); Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("jsx", resourceFactory); org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("jsx", serviceProvider); Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("n4jsd", resourceFactory); org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("n4jsd", serviceProvider); Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("n4idl", resourceFactory); org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("n4idl", serviceProvider); }
Example #15
Source File: AbstractURIHandlerTest.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@Before public void setUp() { globalState = GlobalRegistries.makeCopyOfGlobalState(); EPackage.Registry.INSTANCE.put(XMLTypePackage.eNS_URI, XMLTypePackage.eINSTANCE); EPackage.Registry.INSTANCE.put(XMLNamespacePackage.eNS_URI, XMLNamespacePackage.eINSTANCE); resourceSet = getNewResourceSet(); primaryResource = resourceSet.createResource(getResourceURI()); referencedResource = resourceSet.createResource(getReferencedURI()); }
Example #16
Source File: ModbusPackageImpl.java From neoscada with Eclipse Public License 1.0 | 5 votes |
/** * Creates, registers, and initializes the <b>Package</b> for this model, * and for any others upon which it depends. * <p> * This method is used to initialize {@link ModbusPackage#eINSTANCE} when * that field is accessed. Clients should not invoke it directly. Instead, * they should simply access that field to obtain the package. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static ModbusPackage init () { if ( isInited ) return (ModbusPackage)EPackage.Registry.INSTANCE.getEPackage ( ModbusPackage.eNS_URI ); // Obtain or create and register package ModbusPackageImpl theModbusPackage = (ModbusPackageImpl) ( EPackage.Registry.INSTANCE.get ( eNS_URI ) instanceof ModbusPackageImpl ? EPackage.Registry.INSTANCE.get ( eNS_URI ) : new ModbusPackageImpl () ); isInited = true; // Initialize simple dependencies ComponentPackage.eINSTANCE.eClass (); MemoryPackage.eINSTANCE.eClass (); XMLTypePackage.eINSTANCE.eClass (); // Create package meta-data objects theModbusPackage.createPackageContents (); // Initialize created meta-data theModbusPackage.initializePackageContents (); // Mark meta-data to indicate it can't be changed theModbusPackage.freeze (); // Update the registry and return the package EPackage.Registry.INSTANCE.put ( ModbusPackage.eNS_URI, theModbusPackage ); return theModbusPackage; }
Example #17
Source File: CommonPackageImpl.java From neoscada with Eclipse Public License 1.0 | 5 votes |
/** * Creates, registers, and initializes the <b>Package</b> for this model, * and for any others upon which it depends. * <p> * This method is used to initialize {@link CommonPackage#eINSTANCE} when * that field is accessed. Clients should not invoke it directly. Instead, * they should simply access that field to obtain the package. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated NOT */ public static CommonPackage init () { if ( isInited ) { return (CommonPackage)EPackage.Registry.INSTANCE.getEPackage ( CommonPackage.eNS_URI ); } // Obtain or create and register package final CommonPackageImpl theCommonPackage = (CommonPackageImpl) ( EPackage.Registry.INSTANCE.get ( eNS_URI ) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.get ( eNS_URI ) : new CommonPackageImpl () ); isInited = true; // Initialize simple dependencies ComponentPackage.eINSTANCE.eClass (); EcorePackage.eINSTANCE.eClass (); XMLTypePackage.eINSTANCE.eClass (); // Create package meta-data objects theCommonPackage.createPackageContents (); // Initialize created meta-data theCommonPackage.initializePackageContents (); // register validation registerPackageValidator ( theCommonPackage ); // Mark meta-data to indicate it can't be changed theCommonPackage.freeze (); // Update the registry and return the package EPackage.Registry.INSTANCE.put ( CommonPackage.eNS_URI, theCommonPackage ); return theCommonPackage; }
Example #18
Source File: AbapgitstagingPackageImpl.java From ADT_Frontend with MIT License | 5 votes |
/** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link IAbapgitstagingPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static IAbapgitstagingPackage init() { if (isInited) return (IAbapgitstagingPackage)EPackage.Registry.INSTANCE.getEPackage(IAbapgitstagingPackage.eNS_URI); // Obtain or create and register package Object registeredAbapgitstagingPackage = EPackage.Registry.INSTANCE.get(eNS_URI); AbapgitstagingPackageImpl theAbapgitstagingPackage = registeredAbapgitstagingPackage instanceof AbapgitstagingPackageImpl ? (AbapgitstagingPackageImpl)registeredAbapgitstagingPackage : new AbapgitstagingPackageImpl(); isInited = true; // Initialize simple dependencies IAdtCorePackage.eINSTANCE.eClass(); IAtomPackage.eINSTANCE.eClass(); XMLNamespacePackage.eINSTANCE.eClass(); XMLTypePackage.eINSTANCE.eClass(); // Create package meta-data objects theAbapgitstagingPackage.createPackageContents(); // Initialize created meta-data theAbapgitstagingPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theAbapgitstagingPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(IAbapgitstagingPackage.eNS_URI, theAbapgitstagingPackage); return theAbapgitstagingPackage; }
Example #19
Source File: AbapgitrepositoriesPackageImpl.java From ADT_Frontend with MIT License | 5 votes |
/** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link IAbapgitrepositoriesPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static IAbapgitrepositoriesPackage init() { if (isInited) return (IAbapgitrepositoriesPackage)EPackage.Registry.INSTANCE.getEPackage(IAbapgitrepositoriesPackage.eNS_URI); // Obtain or create and register package Object registeredAbapgitrepositoriesPackage = EPackage.Registry.INSTANCE.get(eNS_URI); AbapgitrepositoriesPackageImpl theAbapgitrepositoriesPackage = registeredAbapgitrepositoriesPackage instanceof AbapgitrepositoriesPackageImpl ? (AbapgitrepositoriesPackageImpl)registeredAbapgitrepositoriesPackage : new AbapgitrepositoriesPackageImpl(); isInited = true; // Initialize simple dependencies IAtomPackage.eINSTANCE.eClass(); XMLTypePackage.eINSTANCE.eClass(); // Create package meta-data objects theAbapgitrepositoriesPackage.createPackageContents(); // Initialize created meta-data theAbapgitrepositoriesPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theAbapgitrepositoriesPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(IAbapgitrepositoriesPackage.eNS_URI, theAbapgitrepositoriesPackage); return theAbapgitrepositoriesPackage; }
Example #20
Source File: ConfigurationPackageImpl.java From neoscada with Eclipse Public License 1.0 | 5 votes |
/** * Creates, registers, and initializes the <b>Package</b> for this model, * and for any others upon which it depends. * <p> * This method is used to initialize {@link ConfigurationPackage#eINSTANCE} * when that field is accessed. Clients should not invoke it directly. * Instead, they should simply access that field to obtain the package. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static ConfigurationPackage init () { if ( isInited ) return (ConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage ( ConfigurationPackage.eNS_URI ); // Obtain or create and register package ConfigurationPackageImpl theConfigurationPackage = (ConfigurationPackageImpl) ( EPackage.Registry.INSTANCE.get ( eNS_URI ) instanceof ConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get ( eNS_URI ) : new ConfigurationPackageImpl () ); isInited = true; // Initialize simple dependencies XMLTypePackage.eINSTANCE.eClass (); // Create package meta-data objects theConfigurationPackage.createPackageContents (); // Initialize created meta-data theConfigurationPackage.initializePackageContents (); // Register package validator EValidator.Registry.INSTANCE.put ( theConfigurationPackage, new EValidator.Descriptor () { public EValidator getEValidator () { return ConfigurationValidator.INSTANCE; } } ); // Mark meta-data to indicate it can't be changed theConfigurationPackage.freeze (); // Update the registry and return the package EPackage.Registry.INSTANCE.put ( ConfigurationPackage.eNS_URI, theConfigurationPackage ); return theConfigurationPackage; }
Example #21
Source File: RadarTypePackageImpl.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link RadarTypePackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static RadarTypePackage init() { if (isInited) return (RadarTypePackage) EPackage.Registry.INSTANCE .getEPackage(RadarTypePackage.eNS_URI); // Obtain or create and register package RadarTypePackageImpl theRadarTypePackage = (RadarTypePackageImpl) (EPackage.Registry.INSTANCE .get(eNS_URI) instanceof RadarTypePackageImpl ? EPackage.Registry.INSTANCE .get(eNS_URI) : new RadarTypePackageImpl()); isInited = true; // Initialize simple dependencies AttributePackage.eINSTANCE.eClass(); ComponentPackage.eINSTANCE.eClass(); DataPackage.eINSTANCE.eClass(); TypePackage.eINSTANCE.eClass(); LayoutPackage.eINSTANCE.eClass(); ModelPackage.eINSTANCE.eClass(); XMLTypePackage.eINSTANCE.eClass(); // Create package meta-data objects theRadarTypePackage.createPackageContents(); // Initialize created meta-data theRadarTypePackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theRadarTypePackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(RadarTypePackage.eNS_URI, theRadarTypePackage); return theRadarTypePackage; }
Example #22
Source File: AbstractPortableURIsTest.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@Before public void setUp() throws Exception { globalStateMemento = GlobalRegistries.makeCopyOfGlobalState(); EPackage.Registry.INSTANCE.put(XMLTypePackage.eNS_URI, XMLTypePackage.eINSTANCE); resourceSet = new XtextResourceSet(); resourceSet.getPackageRegistry().put(EcorePackage.eNS_URI, EcorePackage.eINSTANCE); resourceSet.getPackageRegistry().put(GenModelPackage.eNS_URI, GenModelPackage.eINSTANCE); resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("genmodel", new EcoreResourceFactoryImpl()); resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("ecore", new EcoreResourceFactoryImpl()); resourceSet.getURIConverter().getURIMap().put(URI.createPlatformPluginURI("org.eclipse.xtext/", false), URI.createURI("classpath:/")); resourceSet.getURIConverter().getURIMap().put(URI.createPlatformResourceURI("org.eclipse.emf.ecore/", false), URI.createURI("classpath:/")); resourceSet.getLoadOptions().put(XMLResource.OPTION_URI_HANDLER, this); }
Example #23
Source File: EMFGeneratorFragment2.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
protected Set<EPackage> getReferencedEPackages(final List<EPackage> packs) { final HashSet<EPackage> result = CollectionLiterals.<EPackage>newHashSet(); for (final EPackage pkg : packs) { { final TreeIterator<EObject> iterator = pkg.eAllContents(); while (iterator.hasNext()) { { final EObject obj = iterator.next(); EList<EObject> _eCrossReferences = obj.eCrossReferences(); for (final EObject crossRef : _eCrossReferences) { boolean _eIsProxy = crossRef.eIsProxy(); if (_eIsProxy) { URI _eProxyURI = ((InternalEObject) crossRef).eProxyURI(); String _plus = ("Proxy \'" + _eProxyURI); String _plus_1 = (_plus + "\' could not be resolved"); EMFGeneratorFragment2.LOG.error(_plus_1); } else { final EPackage p = EcoreUtil2.<EPackage>getContainerOfType(crossRef, EPackage.class); if ((p != null)) { result.add(p); } } } } } } } result.removeAll(packs); result.remove(EcorePackage.eINSTANCE); result.remove(XMLTypePackage.eINSTANCE); result.remove(XMLNamespacePackage.eINSTANCE); return result; }
Example #24
Source File: KeywordHelperTest.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@Before @Override public void setUp() throws Exception { globalStateMemento = GlobalRegistries.makeCopyOfGlobalState(); super.setUp(); EPackage.Registry.INSTANCE.put(XMLTypePackage.eNS_URI, XMLTypePackage.eINSTANCE); with(XtextStandaloneSetup.class); }
Example #25
Source File: AttributeFactoryImpl.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public String convertRGBValueToString( EDataType eDataType, Object instanceValue ) { return XMLTypeFactory.eINSTANCE.convertToString( XMLTypePackage.Literals.INT, instanceValue ); }
Example #26
Source File: CamelPropertiesPackageImpl.java From tesb-studio-se with Apache License 2.0 | 5 votes |
/** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p> * This method is used to initialize {@link CamelPropertiesPackage#eINSTANCE} when that field is accessed. Clients * should not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static CamelPropertiesPackage init() { if (isInited) return (CamelPropertiesPackage)EPackage.Registry.INSTANCE.getEPackage(CamelPropertiesPackage.eNS_URI); // Obtain or create and register package CamelPropertiesPackageImpl theCamelPropertiesPackage = (CamelPropertiesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CamelPropertiesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CamelPropertiesPackageImpl()); isInited = true; // Initialize simple dependencies PropertiesPackage.eINSTANCE.eClass(); XMLTypePackage.eINSTANCE.eClass(); // Create package meta-data objects theCamelPropertiesPackage.createPackageContents(); // Initialize created meta-data theCamelPropertiesPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theCamelPropertiesPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(CamelPropertiesPackage.eNS_URI, theCamelPropertiesPackage); return theCamelPropertiesPackage; }
Example #27
Source File: AttributeFactoryImpl.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public Integer createRGBValueFromString( EDataType eDataType, String initialValue ) { return (Integer) XMLTypeFactory.eINSTANCE.createFromString( XMLTypePackage.Literals.INT, initialValue ); }
Example #28
Source File: AttributeFactoryImpl.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public String convertPercentageToString( EDataType eDataType, Object instanceValue ) { return XMLTypeFactory.eINSTANCE.convertToString( XMLTypePackage.Literals.DOUBLE, instanceValue ); }
Example #29
Source File: AttributeFactoryImpl.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public Double createPercentageFromString( EDataType eDataType, String initialValue ) { return (Double) XMLTypeFactory.eINSTANCE.createFromString( XMLTypePackage.Literals.DOUBLE, initialValue ); }
Example #30
Source File: AttributeFactoryImpl.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String convertPatternBitmapToString( EDataType eDataType, Object instanceValue ) { return XMLTypeFactory.eINSTANCE.convertToString( XMLTypePackage.Literals.LONG, instanceValue ); }