gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-27 03:17:05 26 4
gpt4 key购买 nike

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

XSDModelGroupDefinition.setName介绍

暂无

代码示例

代码示例来源: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.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/org.eclipse.xsd

modelGroupDef.setName(localName);
modelGroupDef.setModelGroup(modelGroup);
((XSDSchema)component).getContents().add(modelGroupDef);

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

modelGroupDef.setName(localName);
modelGroupDef.setModelGroup(modelGroup);
((XSDSchema)component).getContents().add(modelGroupDef);

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

simpleRecursiveModelGroupDefinition./*{@link XSDNamedComponent#setName */setName/*}*/("simpleRecursiveModelGroupDefinition");

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

simpleRecursiveModelGroupDefinition./*{@link XSDNamedComponent#setName */setName/*}*/("simpleRecursiveModelGroupDefinition");

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com