本文整理了Java中org.eclipse.xsd.XSDElementDeclaration.setSubstitutionGroupAffiliation()
方法的一些代码示例,展示了XSDElementDeclaration.setSubstitutionGroupAffiliation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDElementDeclaration.setSubstitutionGroupAffiliation()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDElementDeclaration
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!