wrapper.setResolvedElementDeclaration(elementDecl); particle.setContent(wrapper);
XSDElementDeclaration wrapper = XSDFactory.eINSTANCE.createXSDElementDeclaration(); wrapper.setResolvedElementDeclaration( (XSDElementDeclaration) propertyElement); substitutedChildParticle.setContent(wrapper); XSDElementDeclaration wrapper = XSDFactory.eINSTANCE.createXSDElementDeclaration(); wrapper.setResolvedElementDeclaration(e); substitutedChildParticle.setContent(wrapper); for (Property property : nameProperties) { XSDElementDeclaration wrapper = XSDFactory.eINSTANCE.createXSDElementDeclaration(); wrapper.setResolvedElementDeclaration( (XSDElementDeclaration) propertyElement); substitutedChildParticle.setContent(wrapper); XSDElementDeclaration wrapper = XSDFactory.eINSTANCE.createXSDElementDeclaration(); wrapper.setResolvedElementDeclaration( (XSDElementDeclaration) propertyElement); substitutedChildParticle.setContent(wrapper);
public void execute() { try { beginRecording(element.getElement()); element.setResolvedElementDeclaration(ref); } finally { endRecording(); } }
protected XSDElementDeclaration createUnresolvedElementDeclaration(String namespace, String localName) { XSDElementDeclaration xsdElementDeclaration = XSDFactory.eINSTANCE.createXSDElementDeclaration(); if (localName != null) { xsdElementDeclaration.setName(localName); } if (namespace != null) { xsdElementDeclaration.setTargetNamespace(namespace); } xsdElementDeclaration.setResolvedElementDeclaration(xsdElementDeclaration); return xsdElementDeclaration; }
protected XSDElementDeclaration createUnresolvedElementDeclaration(String namespace, String localName) { XSDElementDeclaration xsdElementDeclaration = XSDFactory.eINSTANCE.createXSDElementDeclaration(); if (localName != null) { xsdElementDeclaration.setName(localName); } if (namespace != null) { xsdElementDeclaration.setTargetNamespace(namespace); } xsdElementDeclaration.setResolvedElementDeclaration(xsdElementDeclaration); return xsdElementDeclaration; }
protected void addElementDeclarationReference(XSDSchema schema, XSDModelGroup modelGroup, String reference) { XSDParticle particle = XSDFactory.eINSTANCE.createXSDParticle(); XSDElementDeclaration elementDeclaration = XSDFactory.eINSTANCE.createXSDElementDeclaration(); elementDeclaration.setResolvedElementDeclaration(schema.resolveElementDeclaration(reference)); particle.setContent(elementDeclaration); modelGroup.getContents().add(particle); }
protected void addElementDeclarationReference(XSDSchema schema, XSDModelGroup modelGroup, String reference) { XSDParticle particle = XSDFactory.eINSTANCE.createXSDParticle(); XSDElementDeclaration elementDeclaration = XSDFactory.eINSTANCE.createXSDElementDeclaration(); elementDeclaration.setResolvedElementDeclaration(schema.resolveElementDeclaration(reference)); particle.setContent(elementDeclaration); modelGroup.getContents().add(particle); }
protected void addXMIExtension(XSDModelGroup modelGroup) { if (!minimizedXMI) { importXMI(); XSDParticle particle = XSDFactory.eINSTANCE.createXSDParticle(); XSDElementDeclaration xsdElementDeclaration = XSDFactory.eINSTANCE.createXSDElementDeclaration(); xsdElementDeclaration.setResolvedElementDeclaration(xsdElementDeclaration.resolveElementDeclaration(XMI_URI, "Extension")); particle.setContent(xsdElementDeclaration); modelGroup.getContents().add(particle); } }
protected void addXMIExtension(XSDModelGroup modelGroup) { if (!minimizedXMI) { importXMI(); XSDParticle particle = XSDFactory.eINSTANCE.createXSDParticle(); XSDElementDeclaration xsdElementDeclaration = XSDFactory.eINSTANCE.createXSDElementDeclaration(); xsdElementDeclaration.setResolvedElementDeclaration(xsdElementDeclaration.resolveElementDeclaration(XMI_URI, "Extension")); particle.setContent(xsdElementDeclaration); modelGroup.getContents().add(particle); } }
protected XSDParticle createXSDElementReference() { List list = xsdModelGroup.getSchema().getElementDeclarations(); XSDElementDeclaration referencedElement = null; if (list.size() > 0) { referencedElement = (XSDElementDeclaration)list.get(0); } else { referencedElement = createGlobalXSDElementDeclaration(); Text textNode = xsdSchema.getDocument().createTextNode("\n"); //$NON-NLS-1$ xsdSchema.getElement().appendChild(textNode); xsdSchema.getContents().add(referencedElement); } XSDElementDeclaration element = XSDFactory.eINSTANCE.createXSDElementDeclaration(); element.setResolvedElementDeclaration(referencedElement); XSDParticle particle = XSDFactory.eINSTANCE.createXSDParticle(); particle.setContent(element); addedXSDConcreteComponent = element; return particle; }
wrapper.setResolvedElementDeclaration( elementDecl ); particle.setContent(wrapper);
if (editingDomain == null) xsdElementDeclaration.setResolvedElementDeclaration(newResolvedElementDeclaration);
ref.setResolvedElementDeclaration((XSDElementDeclaration) particleContent); p.setContent(ref);
@Override public void setPropertyValue(Object o, Object value) { XSDElementDeclaration xsdElementDeclaration = (XSDElementDeclaration)o; if (xsdElementDeclaration.isElementDeclarationReference()) { XSDElementDeclaration newResolvedElementDeclaration = xsdElementDeclaration.resolveElementDeclaration(xsdElementDeclaration.getTargetNamespace(), (String)value); EditingDomain editingDomain = getEditingDomain(xsdElementDeclaration); if (editingDomain == null) { xsdElementDeclaration.setResolvedElementDeclaration(newResolvedElementDeclaration); } else { editingDomain.getCommandStack().execute (SetCommand.create (editingDomain, xsdElementDeclaration, xsdPackage.getXSDElementDeclaration_ResolvedElementDeclaration(), newResolvedElementDeclaration)); } } else { super.setPropertyValue(o, value); } } });
.createXSDElementDeclaration(); wrapper .setResolvedElementDeclaration((XSDElementDeclaration) propertyElement); substitutedChildParticle.setContent(wrapper); properties.add(new Object[] { substitutedChildParticle, complex }); XSDElementDeclaration wrapper = XSDFactory.eINSTANCE .createXSDElementDeclaration(); wrapper.setResolvedElementDeclaration(e); substitutedChildParticle.setContent(wrapper); for (Property property : nameProperties) { .createXSDElementDeclaration(); wrapper .setResolvedElementDeclaration((XSDElementDeclaration) propertyElement); substitutedChildParticle.setContent(wrapper); properties.add(new Object[] { substitutedChildParticle, .createXSDElementDeclaration(); wrapper .setResolvedElementDeclaration((XSDElementDeclaration) propertyElement); substitutedChildParticle.setContent(wrapper); boolean propertyExist = false;
simpleRecursiveElementDeclarationReference./*{@link XSDElementDeclaration#setResolvedElementDeclaration */setResolvedElementDeclaration/*}*/ (prototypeSchema./*{@link XSDConcreteComponent#resolveElementDeclaration(String) */resolveElementDeclaration/*}*/("simpleRecursiveElementDeclaration"));
simpleRecursiveElementDeclarationReference./*{@link XSDElementDeclaration#setResolvedElementDeclaration */setResolvedElementDeclaration/*}*/ (prototypeSchema./*{@link XSDConcreteComponent#resolveElementDeclaration(String) */resolveElementDeclaration/*}*/("simpleRecursiveElementDeclaration"));
XSDFactory.eINSTANCE.createXSDElementDeclaration(); elementRef.setValue(element.getValue()); elementRef.setResolvedElementDeclaration((XSDElementDeclaration)elementDecl);
xsdElementDeclaration.setResolvedElementDeclaration(referencedXSDElementDeclaration);