protected XSDWildcard createAny(String processContents) { XSDWildcard any = XSDFactory.eINSTANCE.createXSDWildcard(); if ("strict".equals(processContents)) { any.setProcessContents(XSDProcessContents.STRICT_LITERAL); } else if ("skip".equals(processContents)) { any.setProcessContents(XSDProcessContents.SKIP_LITERAL); } else if ("lax".equals(processContents)) { any.setProcessContents(XSDProcessContents.LAX_LITERAL); } return any; }
public static XSDWildcard createWildcard(Node node) { switch (XSDConstants.nodeType(node)) { case XSDConstants.ANY_ELEMENT: case XSDConstants.ANYATTRIBUTE_ELEMENT: { XSDWildcard xsdWildcard = XSDFactory.eINSTANCE.createXSDWildcard(); xsdWildcard.setElement((Element)node); return xsdWildcard; } } return null; }
public static XSDWildcard createWildcard(Node node) { switch (XSDConstants.nodeType(node)) { case XSDConstants.ANY_ELEMENT: case XSDConstants.ANYATTRIBUTE_ELEMENT: { XSDWildcard xsdWildcard = XSDFactory.eINSTANCE.createXSDWildcard(); xsdWildcard.setElement((Element)node); return xsdWildcard; } } return null; }
protected XSDWildcard createAny(String processContents) { XSDWildcard any = XSDFactory.eINSTANCE.createXSDWildcard(); if ("strict".equals(processContents)) { any.setProcessContents(XSDProcessContents.STRICT_LITERAL); } else if ("skip".equals(processContents)) { any.setProcessContents(XSDProcessContents.SKIP_LITERAL); } else if ("lax".equals(processContents)) { any.setProcessContents(XSDProcessContents.LAX_LITERAL); } return any; }
public void execute() { try { beginRecording(parent.getElement()); XSDWildcard wildCard = XSDFactory.eINSTANCE.createXSDWildcard(); XSDParticle particle = XSDFactory.eINSTANCE.createXSDParticle(); particle.setContent(wildCard); parent.getContents().add(particle); addedXSDConcreteComponent = wildCard; formatChild(parent.getElement()); } finally { endRecording(); } } }
protected void handleAnalysis() { List<XSDAttributeUse> newAttributeUses = getAttributeUses(getContents(), Collections.<XSDAttributeUse>emptyList()); List<XSDAttributeUse> remainingAttributeUses = new ArrayList<XSDAttributeUse>(getAttributeUses()); remainingAttributeUses.removeAll(newAttributeUses); if (!remainingAttributeUses.isEmpty()) { getAttributeUses().removeAll(remainingAttributeUses); } setListContentAndOrder(getAttributeUses(), newAttributeUses); XSDWildcard newAttributeWildcard = getAttributeWildcard(null, getAttributeWildcardContent(), getContents()); if (newAttributeWildcard != null && newAttributeWildcard.getContainer() == null) { if (effectiveWildcard == null) { effectiveWildcard = (XSDWildcardImpl)getXSDFactory().createXSDWildcard(); // effectiveWildcard.setOwner(this); setSyntheticWildcard(effectiveWildcard); } effectiveWildcard.setLike(newAttributeWildcard); newAttributeWildcard = effectiveWildcard; } if (newAttributeWildcard != getAttributeWildcard()) { setAttributeWildcard(newAttributeWildcard); } }
protected void handleAnalysis() { List<XSDAttributeUse> newAttributeUses = getAttributeUses(getContents(), Collections.<XSDAttributeUse>emptyList()); List<XSDAttributeUse> remainingAttributeUses = new ArrayList<XSDAttributeUse>(getAttributeUses()); remainingAttributeUses.removeAll(newAttributeUses); if (!remainingAttributeUses.isEmpty()) { getAttributeUses().removeAll(remainingAttributeUses); } setListContentAndOrder(getAttributeUses(), newAttributeUses); XSDWildcard newAttributeWildcard = getAttributeWildcard(null, getAttributeWildcardContent(), getContents()); if (newAttributeWildcard != null && newAttributeWildcard.getContainer() == null) { if (effectiveWildcard == null) { effectiveWildcard = (XSDWildcardImpl)getXSDFactory().createXSDWildcard(); // effectiveWildcard.setOwner(this); setSyntheticWildcard(effectiveWildcard); } effectiveWildcard.setLike(newAttributeWildcard); newAttributeWildcard = effectiveWildcard; } if (newAttributeWildcard != getAttributeWildcard()) { setAttributeWildcard(newAttributeWildcard); } }
protected XSDWildcard buildAttributeWildcard(XSDComplexTypeDefinition xsdComplexTypeDefinition, EStructuralFeature eStructuralFeature) { XSDWildcard xsdWildcard = XSDFactory.eINSTANCE.createXSDWildcard(); xsdWildcard.setStringLexicalNamespaceConstraint (BasicExtendedMetaData.getEncodedWildcards (extendedMetaData.getNamespace(eStructuralFeature.getEContainingClass()), extendedMetaData.getWildcards(eStructuralFeature))); xsdComplexTypeDefinition.setAttributeWildcardContent(xsdWildcard); map(xsdWildcard, eStructuralFeature); createEcoreAnnotation(xsdWildcard, "name", eStructuralFeature.getName()); buildAnnotations(xsdWildcard, eStructuralFeature); return xsdWildcard; }
newChildDescriptors.add(createChildParameter(xsdPackage.getXSDModelGroup_Contents(), createParticle(xsdFactory.createXSDWildcard(), false)));
protected XSDWildcard buildAttributeWildcard(XSDComplexTypeDefinition xsdComplexTypeDefinition, EStructuralFeature eStructuralFeature) { XSDWildcard xsdWildcard = XSDFactory.eINSTANCE.createXSDWildcard(); xsdWildcard.setStringLexicalNamespaceConstraint (BasicExtendedMetaData.getEncodedWildcards (extendedMetaData.getNamespace(eStructuralFeature.getEContainingClass()), extendedMetaData.getWildcards(eStructuralFeature))); xsdComplexTypeDefinition.setAttributeWildcardContent(xsdWildcard); map(xsdWildcard, eStructuralFeature); createEcoreAnnotation(xsdWildcard, "name", eStructuralFeature.getName()); buildAnnotations(xsdWildcard, eStructuralFeature); return xsdWildcard; }
(createChildParameter (xsdPackage.getXSDAttributeGroupDefinition_AttributeWildcardContent(), xsdFactory.createXSDWildcard()));
protected XSDWildcard buildElementWildcard(XSDComplexTypeDefinition xsdComplexTypeDefinition, EStructuralFeature eStructuralFeature) { String name = extendedMetaData.getName(eStructuralFeature); if (":mixed".equals(name)) { xsdComplexTypeDefinition.setMixed(true); return null; } else { XSDWildcard xsdWildcard = XSDFactory.eINSTANCE.createXSDWildcard(); xsdWildcard.setStringLexicalNamespaceConstraint (BasicExtendedMetaData.getEncodedWildcards (extendedMetaData.getNamespace(eStructuralFeature.getEContainingClass()), extendedMetaData.getWildcards(eStructuralFeature))); XSDModelGroup xsdModelGroup = findOrCreateModelGroup(xsdComplexTypeDefinition); XSDParticle particle = XSDFactory.eINSTANCE.createXSDParticle(); particle.setContent(xsdWildcard); xsdModelGroup.getContents().add(particle); map(particle, eStructuralFeature); createEcoreAnnotation(xsdWildcard, "name", eStructuralFeature.getName()); buildAnnotations(xsdWildcard, eStructuralFeature); return xsdWildcard; } }
(XSDWildcardImpl)getXSDFactory().createXSDWildcard(); clonedWildcard.isReconciling = true;
(XSDWildcardImpl)getXSDFactory().createXSDWildcard(); clonedWildcard.isReconciling = true;
public void execute() { try { beginRecording(input.getElement()); XSDWildcard anyAttribute = XSDFactory.eINSTANCE.createXSDWildcard(); if (xsdComplexTypeDefinition != null) { xsdComplexTypeDefinition.setAttributeWildcardContent(anyAttribute); formatChild(xsdComplexTypeDefinition.getElement()); } else if (xsdAttributeGroupDefinition != null) { xsdAttributeGroupDefinition.setAttributeWildcardContent(anyAttribute); formatChild(xsdAttributeGroupDefinition.getElement()); } addedXSDConcreteComponent = anyAttribute; } finally { endRecording(); } }
XSDWildcard result = getXSDFactory().createXSDWildcard(); if (isSetProcessContents()) XSDWildcard result = getXSDFactory().createXSDWildcard(); if (isSetProcessContents()) XSDNamespaceConstraintCategory.SET_LITERAL == otherWildcard.getNamespaceConstraintCategory()) XSDWildcard result = getXSDFactory().createXSDWildcard(); if (isSetProcessContents()) XSDWildcard result = getXSDFactory().createXSDWildcard(); result.setNamespaceConstraintCategory(XSDNamespaceConstraintCategory.NOT_LITERAL); return result; XSDWildcard result = getXSDFactory().createXSDWildcard(); result.setNamespaceConstraintCategory(XSDNamespaceConstraintCategory.NOT_LITERAL); return result;
newChildDescriptors.add(createChildParameter(xsdPackage.getXSDComplexTypeDefinition_AttributeWildcardContent(), xsdFactory.createXSDWildcard()));
/*{@link */XSDWildcard/*}*/ elementWildcard = xsdFactory.createXSDWildcard(); elementWildcard./*{@link XSDWildcard#getLexicalNamespaceConstraint */getLexicalNamespaceConstraint/*}*/().add("##other"); elementWildcard./*{@link XSDWildcard#setProcessContents */setProcessContents/*}*/(XSDProcessContents.LAX_LITERAL);
XSDWildcard xsdWildcard = XSDFactory.eINSTANCE.createXSDWildcard(); xsdWildcard.setStringLexicalNamespaceConstraint (BasicExtendedMetaData.getEncodedWildcards
XSDNamespaceConstraintCategory.SET_LITERAL == otherWildcard.getNamespaceConstraintCategory()) XSDWildcard result = getXSDFactory().createXSDWildcard(); if (isSetProcessContents()) XSDWildcard result = getXSDFactory().createXSDWildcard(); if (isSetProcessContents()) XSDWildcard result = getXSDFactory().createXSDWildcard(); if (isSetProcessContents()) XSDWildcard result = getXSDFactory().createXSDWildcard(); result.setNamespaceConstraintCategory(XSDNamespaceConstraintCategory.NOT_LITERAL); return result;