org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(78)

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

ResourceImpl.attached介绍

暂无

代码示例

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

@Override
public NotificationChain inverseAdd(E object, NotificationChain notifications)
{
 InternalEObject eObject = (InternalEObject)object;
 notifications = eObject.eSetResource(ResourceImpl.this, notifications);
 ResourceImpl.this.attached(eObject);
 return notifications;
}

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

@Override
public NotificationChain inverseAdd(E object, NotificationChain notifications)
{
 InternalEObject eObject = (InternalEObject)object;
 notifications = eObject.eSetResource(ResourceImpl.this, notifications);
 ResourceImpl.this.attached(eObject);
 return notifications;
}

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

@Override
public void attached(EObject eObject)
{
 super.attached(eObject);
 if (eObject instanceof XSDSchema)
 {
  if (attachedSchemas != null)
  {
   attachedSchemas.add((XSDSchema)eObject);
  }
  else if (!(eObject instanceof XSDSchemaImpl) || ((XSDSchemaImpl)eObject).getPendingSchemaLocation() == null)
  {
   ((XSDSchema)eObject).setSchemaLocation(getURI().toString());
  }
 }
}

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

@Override
public void attached(EObject eObject)
{
 super.attached(eObject);
 if (eObject instanceof XSDSchema)
 {
  if (attachedSchemas != null)
  {
   attachedSchemas.add((XSDSchema)eObject);
  }
  else if (!(eObject instanceof XSDSchemaImpl) || ((XSDSchemaImpl)eObject).getPendingSchemaLocation() == null)
  {
   ((XSDSchema)eObject).setSchemaLocation(getURI().toString());
  }
 }
}

代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator

public void attached(EObject eObject)
{
 super.attached(eObject);
 // we need to attach a XSDSchemaLocator in order to resolve inline schema locations
 // if there's not already one attached
 XSDSchemaLocator xsdSchemaLocator = (XSDSchemaLocator)EcoreUtil.getRegisteredAdapter(this, XSDSchemaLocator.class);
 if (xsdSchemaLocator == null)
 {
  getResourceSet().getAdapterFactories().add(new XSDSchemaLocatorAdapterFactory());
 }
 if (eObject instanceof DefinitionImpl)
 {
  DefinitionImpl definition = (DefinitionImpl)eObject;
  definition.setInlineSchemaLocations(this);
 }
}
/*

相关文章

微信公众号

最新文章

更多