gpt4 book ai didi

org.eclipse.emf.ecore.xmi.impl.XMIHelperImpl类的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 05:11:05 27 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.emf.ecore.xmi.impl.XMIHelperImpl类的一些代码示例,展示了XMIHelperImpl类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMIHelperImpl类的具体详情如下:
包路径:org.eclipse.emf.ecore.xmi.impl.XMIHelperImpl
类名称:XMIHelperImpl

XMIHelperImpl介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore.xmi

@Override
protected XMLHelper createXMLHelper()
{
 return new XMIHelperImpl(this);
}

代码示例来源:origin: org.andromda.bootstrap.metafacades/andromda-metafacades-emf-uml22

/**
 * @see org.andromda.metafacades.uml.ModelElementFacade#getId()
 */
@Override
protected String handleGetId()
{
  return xmiHelper.getID(this.metaObject);
}

代码示例来源:origin: org.eclipse.uml2/org.eclipse.uml2.uml

@Override
public String getHREF(EObject obj) {
  String href = super.getHREF(obj);
  if (href.startsWith(UMLResource.UML_METAMODEL_URI)) {
    href = XMI2UMLResource.UML_METAMODEL_URI + href.substring(href.indexOf('#'));
  } else if (href.startsWith(UMLResource.UML_PRIMITIVE_TYPES_LIBRARY_URI)) {
    href = XMI2UMLResource.UML_PRIMITIVE_TYPES_LIBRARY_URI + href.substring(href.indexOf('#'));
  } else if (href.startsWith(UMLResource.STANDARD_PROFILE_URI)) {
    href = XMI2UMLResource.STANDARD_PROFILE_URI + href.substring(href.indexOf('#'));
  }
  return href;
}

代码示例来源:origin: org.eclipse.elk/org.eclipse.elk.core

@Override
protected Object createFromString(final EFactory eFactory, final EDataType eDataType, final String value) {
  // We know how to obtain IProperty and parse option values
  if (eDataType.equals(ElkGraphPackage.Literals.IPROPERTY)) {
    return createIPropertyFromString(value);
  } else if (eDataType.equals(ElkGraphPackage.Literals.PROPERTY_VALUE)) {
    return createPropertyValueFromString(value);
  } else {
    return super.createFromString(eFactory, eDataType, value);
  }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.e4.ui.workbench

@Override
public EClassifier getType(EFactory eFactory, String typeName) {
  if (deprecatedTypeMappings.containsKey(typeName)) {
    // need a temp instance of the now removed EClass so that
    // createObject, above, can do it's work.
    final EClass tempEClass = EcoreFactory.eINSTANCE.createEClass();
    tempEClass.setName(typeName);
    return tempEClass;
  }
  return super.getType(eFactory, typeName);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.e4.ui.workbench

@Override
public EObject createObject(EFactory eFactory, EClassifier type) {
  if (MMenuFactory.INSTANCE == eFactory && type != null && type.getName() != null) {
    final ObjectCreator objectCreator = deprecatedTypeMappings.get(type.getName());
    if (objectCreator != null) {
      return (EObject) objectCreator.create();
    }
  }
  return super.createObject(eFactory, type);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore.xmi

@Override
protected XMLHelper createXMLHelper()
{
 return new XMIHelperImpl(this);
}

代码示例来源:origin: org.andromda.metafacades/andromda-metafacades-emf-uml22

/**
 * @see org.andromda.metafacades.uml.ModelElementFacade#getId()
 */
@Override
protected String handleGetId()
{
  return xmiHelper.getID(this.metaObject);
}

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore.xmi

helper = new XMIHelperImpl();

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore.xmi

helper = new XMIHelperImpl();

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com