protected void buildAttributeGroupIndex() { attributeGroupIndex = new HashMap(); for (int i = 0; i < schemas.length; i++) { XSDSchema schema = schemas[i]; for (Iterator g = schema.getAttributeGroupDefinitions().iterator(); g.hasNext(); ) { XSDAttributeGroupDefinition group = (XSDAttributeGroupDefinition) g.next(); QName qName = new QName(group.getTargetNamespace(), group.getName()); attributeGroupIndex.put(qName, group); } } }
protected void buildAttributeGroupIndex() { attributeGroupIndex = new HashMap(); for (int i = 0; i < schemas.length; i++) { XSDSchema schema = schemas[i]; for (Iterator g = schema.getAttributeGroupDefinitions().iterator(); g.hasNext();) { XSDAttributeGroupDefinition group = (XSDAttributeGroupDefinition) g.next(); QName qName = new QName(group.getTargetNamespace(), group.getName()); attributeGroupIndex.put(qName, group); } } }
protected void buildAttributeGroupIndex() { attributeGroupIndex = new HashMap(); for (int i = 0; i < schemas.length; i++) { XSDSchema schema = schemas[i]; for (Iterator g = schema.getAttributeGroupDefinitions().iterator(); g.hasNext();) { XSDAttributeGroupDefinition group = (XSDAttributeGroupDefinition) g.next(); QName qName = new QName(group.getTargetNamespace(), group.getName()); attributeGroupIndex.put(qName, group); } } }
protected void buildAttributeGroupIndex() { attributeGroupIndex = new HashMap(); for (int i = 0; i < schemas.length; i++) { XSDSchema schema = schemas[i]; for (Iterator g = schema.getAttributeGroupDefinitions().iterator(); g.hasNext();) { XSDAttributeGroupDefinition group = (XSDAttributeGroupDefinition) g .next(); QName qName = new QName(group.getTargetNamespace(), group.getName()); attributeGroupIndex.put(qName, group); } } }
public java.util.List getGlobalAttributeGroups() { Vector items = new Vector(); if (xsdSchema != null) { updateExternalImportGlobals(); if (xsdSchema.getAttributeGroupDefinitions() != null) { Iterator i = xsdSchema.getAttributeGroupDefinitions().iterator(); while (i.hasNext()) { XSDAttributeGroupDefinition attributeGroupDefinition = (XSDAttributeGroupDefinition) i.next(); String name = attributeGroupDefinition.getQName(xsdSchema); if (name != null) { items.add(name); } } } // items = addExternalImportedAttributeGroups(items); items = (Vector) sortList(items); } return items; }
public List getAttributeGroupList(XSDSchema xsdSchema, boolean showFromIncludes) { List attributeGroupList = new ArrayList(); for (Iterator i = xsdSchema.getAttributeGroupDefinitions().iterator(); i.hasNext();) { XSDAttributeGroupDefinition attrGroup = (XSDAttributeGroupDefinition) i.next(); if (isSameNamespace(attrGroup.getTargetNamespace(), xsdSchema.getTargetNamespace()) && (attrGroup.getRootContainer() == xsdSchema || showFromIncludes)) { attributeGroupList.add(attrGroup); } } List adapterList = new ArrayList(); populateAdapterList(attributeGroupList, adapterList); return adapterList; }
visitModelGroupDefinition(modelGroup); for (Iterator iterator = schema.getAttributeGroupDefinitions().iterator(); iterator.hasNext();)
visitModelGroupDefinition(modelGroup); for (Iterator iterator = schema.getAttributeGroupDefinitions().iterator(); iterator.hasNext();)
schema.getAttributeDeclarations().clear(); schema.getModelGroupDefinitions().clear(); schema.getAttributeGroupDefinitions().clear();
objects = schema.getAttributeGroupDefinitions();
attributeGroup.setName(getNewName("AttributeGroup")); //$NON-NLS-1$ List list = xsdComplexTypeDefinition.getSchema().getAttributeGroupDefinitions(); if (list.size() > 0) attributeGroup2.setName(XSDCommonUIUtils.createUniqueElementName("NewAttributeGroup", xsdComplexTypeDefinition.getSchema().getAttributeGroupDefinitions())); //$NON-NLS-1$ xsdComplexTypeDefinition.getSchema().getContents().add(attributeGroup2); attributeGroup.setResolvedAttributeGroupDefinition(attributeGroup2); attributeGroup.setName(XSDCommonUIUtils.createUniqueElementName("NewAttributeGroup", xsdSchema.getAttributeGroupDefinitions())); //$NON-NLS-1$ Text textNode = xsdSchema.getDocument().createTextNode("\n"); //$NON-NLS-1$ xsdSchema.getElement().appendChild(textNode);
(XSDEditPlugin.INSTANCE.getString("_UI_AttributeGroups_label"), XSDEditPlugin.INSTANCE.getImage("full/obj16/XSDAttributeGroupDefinition"), xsdSchema.getAttributeGroupDefinitions())); children.add (new ChildItemProvider
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()); }
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()); }