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

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

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

XSDModelGroupDefinition.setModelGroup介绍

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

代码示例

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

modelGroupDef.setModelGroup(modelGroup);
((XSDSchema)component).getContents().add(modelGroupDef);
((XSDModelGroupDefinition)component).setModelGroup(modelGroup);

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

modelGroupDef.setModelGroup(modelGroup);
((XSDSchema)component).getContents().add(modelGroupDef);
((XSDModelGroupDefinition)component).setModelGroup(modelGroup);

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

protected XSDModelGroupDefinition createUnresolvedModelGroupDefinition(String namespace, String localName)
{
 XSDModelGroupDefinition xsdModelGroupDefinition = XSDFactory.eINSTANCE.createXSDModelGroupDefinition();
 if (localName != null)
 {
  xsdModelGroupDefinition.setName(localName);
 }
 if (namespace != null)
 {
  xsdModelGroupDefinition.setTargetNamespace(namespace);
 }
 xsdModelGroupDefinition.setResolvedModelGroupDefinition(xsdModelGroupDefinition);
 XSDModelGroup xsdModelGroup = XSDFactory.eINSTANCE.createXSDModelGroup();
 xsdModelGroup.setCompositor(XSDCompositor.SEQUENCE_LITERAL);
 xsdModelGroupDefinition.setModelGroup(xsdModelGroup);
 return xsdModelGroupDefinition;
}

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

protected XSDModelGroupDefinition createUnresolvedModelGroupDefinition(String namespace, String localName)
{
 XSDModelGroupDefinition xsdModelGroupDefinition = XSDFactory.eINSTANCE.createXSDModelGroupDefinition();
 if (localName != null)
 {
  xsdModelGroupDefinition.setName(localName);
 }
 if (namespace != null)
 {
  xsdModelGroupDefinition.setTargetNamespace(namespace);
 }
 xsdModelGroupDefinition.setResolvedModelGroupDefinition(xsdModelGroupDefinition);
 XSDModelGroup xsdModelGroup = XSDFactory.eINSTANCE.createXSDModelGroup();
 xsdModelGroup.setCompositor(XSDCompositor.SEQUENCE_LITERAL);
 xsdModelGroupDefinition.setModelGroup(xsdModelGroup);
 return xsdModelGroupDefinition;
}

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

protected XSDModelGroupDefinition createXSDModelGroupDefinition()
{
 XSDFactory factory = XSDSchemaBuildingTools.getXSDFactory();
 XSDModelGroupDefinition def = factory.createXSDModelGroupDefinition();
 List list = parent.getSchema().getModelGroupDefinitions();
 String newName = XSDCommonUIUtils.createUniqueElementName("ModelGroupDefinition", list); //$NON-NLS-1$
 def.setName(newName);
 XSDModelGroup modelGroup = createModelGroup();
 def.setModelGroup(modelGroup);
 Text textNode = parent.getSchema().getDocument().createTextNode("\n"); //$NON-NLS-1$
 parent.getSchema().getElement().appendChild(textNode);
 parent.getSchema().getContents().add(def);
 formatChild(def.getElement());
 return def;
}

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

simpleRecursiveModelGroupDefinition./*{@link XSDModelGroupDefinition#setModelGroup */setModelGroup/*}*/(modelGroup);

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

simpleRecursiveModelGroupDefinition./*{@link XSDModelGroupDefinition#setModelGroup */setModelGroup/*}*/(modelGroup);

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

xsdModelGroup.setCompositor(XSDCompositor.SEQUENCE_LITERAL);
particle.setContent(xsdModelGroup);
xsdModelGroupDefinition.setModelGroup(xsdModelGroup);

相关文章