protected XSDAttributeGroupDefinition createUnresolvedAttributeGroupDefinition(String namespace, String localName) { XSDAttributeGroupDefinition xsdAttributeGroupDefinition = XSDFactory.eINSTANCE.createXSDAttributeGroupDefinition(); if (localName != null) { xsdAttributeGroupDefinition.setName(localName); } if (namespace != null) { xsdAttributeGroupDefinition.setTargetNamespace(namespace); } xsdAttributeGroupDefinition.setResolvedAttributeGroupDefinition(xsdAttributeGroupDefinition); return xsdAttributeGroupDefinition; }
protected XSDAttributeGroupDefinition createUnresolvedAttributeGroupDefinition(String namespace, String localName) { XSDAttributeGroupDefinition xsdAttributeGroupDefinition = XSDFactory.eINSTANCE.createXSDAttributeGroupDefinition(); if (localName != null) { xsdAttributeGroupDefinition.setName(localName); } if (namespace != null) { xsdAttributeGroupDefinition.setTargetNamespace(namespace); } xsdAttributeGroupDefinition.setResolvedAttributeGroupDefinition(xsdAttributeGroupDefinition); return xsdAttributeGroupDefinition; }
attributeGroup.setName(getNewName("AttributeGroup")); //$NON-NLS-1$ attributeGroup.setName(null); XSDAttributeGroupDefinition attributeGroup2 = XSDFactory.eINSTANCE.createXSDAttributeGroupDefinition(); 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);
simpleAttributeGroupDefinition./*{@link XSDNamedComponent#getName */setName/*}*/("simpleAttributeGroupDefinition");
simpleAttributeGroupDefinition./*{@link XSDNamedComponent#getName */setName/*}*/("simpleAttributeGroupDefinition");
xmiIdentityAttribs.setName("IdentityAttribs"); List<XSDAttributeGroupContent> contents = xmiIdentityAttribs.getContents(); contents.add(createAttributeUse(xmiSchema, "label", "string", "optional", "qualified", null)); xmiLinkAttribs.setName("LinkAttribs"); contents = xmiLinkAttribs.getContents(); contents.add(createAttributeUse(xmiSchema, "href", "string", "optional", null, null)); xmiObjectAttribs.setName("ObjectAttribs"); contents = xmiObjectAttribs.getContents(); contents.add(createAttributeGroupReference(xmiSchema, "IdentityAttribs"));
xmiIdentityAttribs.setName("IdentityAttribs"); List<XSDAttributeGroupContent> contents = xmiIdentityAttribs.getContents(); contents.add(createAttributeUse(xmiSchema, "label", "string", "optional", "qualified", null)); xmiLinkAttribs.setName("LinkAttribs"); contents = xmiLinkAttribs.getContents(); contents.add(createAttributeUse(xmiSchema, "href", "string", "optional", null, null)); xmiObjectAttribs.setName("ObjectAttribs"); contents = xmiObjectAttribs.getContents(); contents.add(createAttributeGroupReference(xmiSchema, "IdentityAttribs"));