gpt4 book ai didi

org.eclipse.xsd.XSDConcreteComponent.updateElement()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 18:05:05 24 4
gpt4 key购买 nike

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

XSDConcreteComponent.updateElement介绍

[英]Ensures that the underlying DOM #getElement both exists and is up-to-date with respect to the model, i.e., it serializes the component and maintains an association with that serialization.
[中]确保底层DOM#getElement既存在,又相对于模型是最新的,即它序列化组件并维护与该序列化的关联。

代码示例

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

concreteComp.updateElement();
    try
     xsdConcreteComponent.updateElement();
     xsdConcreteComponent.updateElement();

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

if (element == null)
 xsdConcreteComponent./*{@link XSDConcreteComponent#updateElement */updateElement/*}*/();
 element = xsdConcreteComponent.getElement();

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

if (element == null)
 xsdConcreteComponent./*{@link XSDConcreteComponent#updateElement */updateElement/*}*/();
 element = xsdConcreteComponent.getElement();

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

public Element createElement()
{
 if (schema == null) // kb Note: This case is not supposed to happen.
 {
  // cs ... why do we do this if its not supposed to happen?
  // Is there a scenario where this is a usefull fallback?
  // Under what conditions does this code get executed (i.e. why would schema == null)?
  schema = XSDFactory.eINSTANCE.createXSDSchema();
  schema.setSchemaForSchemaQNamePrefix("xsd");
  schema.setTargetNamespace("http://tempuri.org/");
  java.util.Map qNamePrefixToNamespaceMap = schema.getQNamePrefixToNamespaceMap();
  qNamePrefixToNamespaceMap.put("", schema.getTargetNamespace());
  qNamePrefixToNamespaceMap.put(schema.getSchemaForSchemaQNamePrefix(), org.eclipse.xsd.util.XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001);
  adopt(schema);
  schema.updateElement(true);
  return schema.getElement();
 }
 else
 {
  element = schema.getElement();
  if (element == null)
  {
   adopt(schema);
   schema.updateElement(true);
   element = schema.getElement();
  }
  return element;
 }
}

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

protected void adoptContent(EReference eReference, XSDConcreteComponent xsdConcreteComponent)
{
 if (isReconciling)
 {
  if (xsdConcreteComponent.getElement() != null)
  { 
   xsdConcreteComponent.elementChanged(xsdConcreteComponent.getElement());
  }
 }
 else
 {
  Element childElement = xsdConcreteComponent.getElement();
  if (getElement() != null && (childElement == null || childElement.getParentNode() == null))
  {
   if (childElement != null && childElement.getOwnerDocument() != getElement().getOwnerDocument())
   {
    xsdConcreteComponent.setElement(null);
    childElement = null;
   }
   handleElementForAdopt(eReference, xsdConcreteComponent);
   xsdConcreteComponent.updateElement();
  }
 }
 XSDSchema xsdSchema = getSchema();
 if (xsdSchema != null)
 {
  ((XSDConcreteComponentImpl)xsdConcreteComponent).adoptBy(xsdSchema);
 }
}

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

protected void adoptContent(EReference eReference, XSDConcreteComponent xsdConcreteComponent)
{
 if (isReconciling)
 {
  if (xsdConcreteComponent.getElement() != null)
  { 
   xsdConcreteComponent.elementChanged(xsdConcreteComponent.getElement());
  }
 }
 else
 {
  Element childElement = xsdConcreteComponent.getElement();
  if (getElement() != null && (childElement == null || childElement.getParentNode() == null))
  {
   if (childElement != null && childElement.getOwnerDocument() != getElement().getOwnerDocument())
   {
    xsdConcreteComponent.setElement(null);
    childElement = null;
   }
   handleElementForAdopt(eReference, xsdConcreteComponent);
   xsdConcreteComponent.updateElement();
  }
 }
 XSDSchema xsdSchema = getSchema();
 if (xsdSchema != null)
 {
  ((XSDConcreteComponentImpl)xsdConcreteComponent).adoptBy(xsdSchema);
 }
}

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

container.updateElement();
return;
  xsdConcreteComponent.updateElement();
  xsdConcreteComponent.updateElement();

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

container.updateElement();
return;
  xsdConcreteComponent.updateElement();
  xsdConcreteComponent.updateElement();

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

protected void changeAttribute(EAttribute eAttribute)
 {
  if (isReconciling)
   return;

  // TODO... revist this block of code
  //
  if (eAttribute == null || eAttribute == WSDLPackage.Literals.XSD_SCHEMA_EXTENSIBILITY_ELEMENT__SCHEMA)
  {
   // We got a new schema so re-parent it.
   // cs... are we really doing the right thing here?  this seems strange
   if (schema != null)
   {
    if ((schema.getElement() == null && getElement() == null) || (schema.getElement() != getElement()))
    {
     schema.setDocument(null);
     schema.setElement(null);
     adopt(schema);
     schema.updateElement();
    }
   }
  }
  else if (eAttribute == WSDLPackage.Literals.WSDL_ELEMENT__ELEMENT)
  {
   setSchema(createSchema(element)); // element is not null
  }
 }
} //XSDSchemaExtensibilityElementImpl

代码示例来源:origin: org.geoserver/wfsv

public void write(Object value, OutputStream output,
    Operation describeFeatureType) throws IOException {
  VersionedDescribeResults results = (VersionedDescribeResults) value;
  // create the schema
  DescribeFeatureTypeType req = (DescribeFeatureTypeType) describeFeatureType
      .getParameters()[0];
  String proxifiedBaseUrl = RequestUtils.proxifiedBaseURL(req
      .getBaseUrl(), wfs.getGeoServer().getProxyBaseUrl());
  FeatureTypeSchemaBuilder builder = null;
  if (results.isVersioned()) {
    builder = new VersionedSchemaBuilder(wfs, catalog, resourceLoader,
        configuration);
  } else {
    builder = new FeatureTypeSchemaBuilder.GML3(wfs, catalog,
        resourceLoader);
  }
  XSDSchema schema = builder.build(results.getFeatureTypeInfo(),
      proxifiedBaseUrl);
  // serialize
  schema.updateElement();
  XSDResourceImpl.serialize(output, schema.getElement());
}

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