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

x33g5p2x  于2022-02-03 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(88)

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

XSDElementDeclaration.setSubstitutionGroupAffiliation介绍

[英]Sets the value of the ' org.eclipse.xsd.XSDElementDeclaration#getSubstitutionGroupAffiliation' reference.
[中]设置“组织”的值。日食xsd。XSDElementDeclaration#getSubstitutionGroupAffiliation'引用。

代码示例

代码示例来源:origin: geotools/geotools

clone.setTargetNamespace(GML.NAMESPACE);
se.setSubstitutionGroupAffiliation(clone);

代码示例来源:origin: geotools/geotools

element.setSubstitutionGroupAffiliation(_FEATURE);

代码示例来源:origin: org.geoserver/gs-wfs

private void buildSchemaContent(
    FeatureTypeInfo featureTypeMeta, XSDSchema schema, XSDFactory factory, String baseUrl)
    throws IOException {
  if (!findTypeInSchema(featureTypeMeta, schema, factory)) {
    // build the type manually
    FeatureType featureType = featureTypeMeta.getFeatureType();
    if (featureTypeMeta.isCircularArcPresent() && this.getClass().equals(GML3.class)) {
      featureType = new CurveTypeWrapper(featureType);
    }
    XSDComplexTypeDefinition xsdComplexType =
        buildComplexSchemaContent(featureType, schema, factory);
    XSDElementDeclaration element = factory.createXSDElementDeclaration();
    element.setName(featureTypeMeta.getName());
    element.setTargetNamespace(featureTypeMeta.getNamespace().getURI());
    synchronized (Schemas.class) {
      // this call changes the global schemas too, need to be synchronized
      element.setSubstitutionGroupAffiliation(getFeatureElement());
    }
    element.setTypeDefinition(xsdComplexType);
    schema.getContents().add(element);
    schema.updateElement();
  }
}

代码示例来源:origin: org.geoserver/gs-wfs

element.setTargetNamespace(featureTypeMeta.getNamespace().getURI());
synchronized (Schemas.class) {
  element.setSubstitutionGroupAffiliation(getFeatureElement());

代码示例来源:origin: org.geoserver/gs-wfs

element.setName(name);
element.setSubstitutionGroupAffiliation(
    schema.resolveElementDeclaration(GML.NAMESPACE, "_Feature"));
element.setTypeDefinition(complexType);

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

xsdElementDeclaration.setSubstitutionGroupAffiliation(xsdAffiliation);

相关文章

微信公众号

最新文章

更多

XSDElementDeclaration类方法