本文整理了Java中org.eclipse.xsd.XSDSchema.getModelGroupDefinitions()
方法的一些代码示例,展示了XSDSchema.getModelGroupDefinitions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDSchema.getModelGroupDefinitions()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDSchema
类名称:XSDSchema
方法名:getModelGroupDefinitions
[英]Returns the value of the 'Model Group Definitions' reference list. The list contents are of type org.eclipse.xsd.XSDModelGroupDefinition.
This represents the model group definitions infoset property. It is computed from the #getContents() and should typically not be set directly.
[中]返回“模型组定义”引用列表的值。列表内容的类型为org。日食xsd。XSDModelGroupDefinition。
这表示model group definitionsinfoset属性。它是根据#getContents()计算的,通常不应直接设置。
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public java.util.List getModelGroups()
{
Vector items = new Vector();
if (xsdSchema != null)
{
updateExternalImportGlobals();
if (xsdSchema.getModelGroupDefinitions() != null)
{
Iterator i = xsdSchema.getModelGroupDefinitions().iterator();
while (i.hasNext())
{
XSDModelGroupDefinition modelGroupDefinition = (XSDModelGroupDefinition) i.next();
String name = modelGroupDefinition.getQName(xsdSchema);
if (name != null)
{
items.add(name);
}
}
}
// items = addExternalImportedGroups(items);
items = (Vector) sortList(items);
}
return items;
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public List getGroups(XSDSchema schema, boolean showFromIncludes)
{
List groups = schema.getModelGroupDefinitions();
List list = new ArrayList();
for (Iterator i = groups.iterator(); i.hasNext();)
{
XSDModelGroupDefinition group = (XSDModelGroupDefinition) i.next();
if (isSameNamespace(group.getTargetNamespace(),schema.getTargetNamespace()) && (group.getRootContainer() == schema || showFromIncludes))
{
list.add(group);
}
}
List adapterList = new ArrayList();
populateAdapterList(list, adapterList);
return adapterList;
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
visitIdentityConstraintDefinition(identityConstraint);
for (Iterator iterator = schema.getModelGroupDefinitions().iterator(); iterator.hasNext();)
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
visitIdentityConstraintDefinition(identityConstraint);
for (Iterator iterator = schema.getModelGroupDefinitions().iterator(); iterator.hasNext();)
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
schema.getTypeDefinitions().clear();
schema.getAttributeDeclarations().clear();
schema.getModelGroupDefinitions().clear();
schema.getAttributeGroupDefinitions().clear();
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
objects = schema.getModelGroupDefinitions();
代码示例来源: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.emf/org.eclipse.xsd.edit
(XSDEditPlugin.INSTANCE.getString("_UI_ModelGroups_label"),
XSDEditPlugin.INSTANCE.getImage("full/obj16/XSDModelGroupDefinition"),
xsdSchema.getModelGroupDefinitions()));
children.add
(new ChildItemProvider
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
XSDParticle particle = XSDFactory.eINSTANCE.createXSDParticle();
particle.setContent(def);
List list = parent.getSchema().getModelGroupDefinitions();
int length = list.size();
if (length > 1)
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
public void propogateComponents(XSDSchema otherXSDSchema)
{
otherXSDSchema.getAnnotations().addAll(getAnnotations());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getAttributeDeclarations(), getAttributeDeclarations());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getAttributeGroupDefinitions(), getAttributeGroupDefinitions());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getElementDeclarations(), getElementDeclarations());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getModelGroupDefinitions(), getModelGroupDefinitions());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getTypeDefinitions(), getTypeDefinitions());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getNotationDeclarations(), getNotationDeclarations());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getIdentityConstraintDefinitions(), getIdentityConstraintDefinitions());
}
代码示例来源:origin: org.eclipse/org.eclipse.xsd
public void propogateComponents(XSDSchema otherXSDSchema)
{
otherXSDSchema.getAnnotations().addAll(getAnnotations());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getAttributeDeclarations(), getAttributeDeclarations());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getAttributeGroupDefinitions(), getAttributeGroupDefinitions());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getElementDeclarations(), getElementDeclarations());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getModelGroupDefinitions(), getModelGroupDefinitions());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getTypeDefinitions(), getTypeDefinitions());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getNotationDeclarations(), getNotationDeclarations());
XSDNamedComponentImpl.mergeToSortedList
(otherXSDSchema.getIdentityConstraintDefinitions(), getIdentityConstraintDefinitions());
}
内容来源于网络,如有侵权,请联系作者删除!