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

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

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

XSDInclude.setSchemaLocation介绍

暂无

代码示例

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

/**
 * Add include statement to schema.
 *
 * @param schema Output schema
 * @param factory XSD factory used to produce schema
 * @param schemaLocation The schema location to be included
 */
private void addInclude(XSDSchema schema, XSDFactory factory, String schemaLocation) {
  XSDInclude xsdInclude = factory.createXSDInclude();
  xsdInclude.setSchemaLocation(schemaLocation);
  schema.getContents().add(xsdInclude);
}

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

public void execute()
 {
  try
  {
   super.execute();
   // Add this after if we don't have a DOM Node yet
   beginRecording(xsdSchema.getElement());
   XSDInclude xsdInclude = XSDFactory.eINSTANCE.createXSDInclude();
   xsdInclude.setSchemaLocation(""); //$NON-NLS-1$
   xsdSchema.getContents().add(findNextPositionToInsert(), xsdInclude);
   addedXSDConcreteComponent = xsdInclude;
   formatChild(xsdSchema.getElement());
  }
  finally
  {
   endRecording();
  }
 }
}

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

i.setSchemaLocation("");
newChildDescriptors.add(createChildParameter(schemaContents, i));

相关文章