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