コード例 #1
0
  /**
   * The result of this is supposed to be put into the save-option-map when saving the model in
   * XML-format
   *
   * @return
   */
  private ExtendedMetaData createExtendedMetaData() {
    final ExtendedMetaData ext =
        new BasicExtendedMetaData(
            ExtendedMetaData.ANNOTATION_URI, EPackage.Registry.INSTANCE, new HashMap());

    //		ext.setQualified(AnyfeatureadaptedPackage.eINSTANCE, false);
    ext.setFeatureKind(
        AnyfeatureadaptedPackage.Literals.ANY_GENERIC_ELEMENT__ELEM_NAME,
        ExtendedMetaData.ELEMENT_FEATURE);

    //		ext.setFeatureKind(AnyfeatureadaptedPackage.Literals.ANY_GENERIC_ELEMENT__ELEM_VALUE,
    // ExtendedMetaData.ELEMENT_FEATURE);

    return ext;
  }
コード例 #2
0
 /**
  * Creates an instance of the resource factory.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public Library3ResourceFactoryImpl() {
   super();
   extendedMetaData =
       new BasicExtendedMetaData(new EPackageRegistryImpl(EPackage.Registry.INSTANCE));
   extendedMetaData.putPackage(null, Library3Package.eINSTANCE);
 }