@Override protected boolean shouldSaveFeature(EObject o, EStructuralFeature f) { return o.eIsSet(f) || (keepDefaults && f.getDefaultValueLiteral() != null && f.getLowerBound() > 0); }
/** * <!-- begin-user-doc --> * Indicates whether the contents of this Slot can fit in the * specified EStructuralFeature. * <!-- end-user-doc --> * @model * @generated NOT */ public boolean multiplicityCompatibleWith(EStructuralFeature feature) { return getNumberOfValues() >= feature.getLowerBound() && getNumberOfValues() <= feature.getUpperBound(); }
images.add(imageToCompose); String imageName = "full/obj16/EOccurrence"; int minOccurs = eStructuralFeature.getLowerBound(); int maxOccurs = eStructuralFeature.getUpperBound(); if (minOccurs >= 0 && (minOccurs <= maxOccurs || maxOccurs == -1))
if (feature.isMany()) int lowerBound = feature.getLowerBound(); if (lowerBound > 0 && size < lowerBound)
xsdListTypeDefinition.setItemTypeDefinition(xsdSimpleTypeDefinition); if (eStructuralFeature.getLowerBound() > 1 || eStructuralFeature.getUpperBound() > 1) if (eStructuralFeature.getLowerBound() == eStructuralFeature.getUpperBound()) xsdLengthFacet.setLexicalValue(Integer.toString(eStructuralFeature.getLowerBound())); xsdRestrictedTypeDefinition.getFacetContents().add(xsdLengthFacet); if (eStructuralFeature.getLowerBound() > 1) xsdMinLengthFacet.setLexicalValue(Integer.toString(eStructuralFeature.getLowerBound())); xsdRestrictedTypeDefinition.getFacetContents().add(xsdMinLengthFacet);
xsdListTypeDefinition.setItemTypeDefinition(xsdSimpleTypeDefinition); if (eStructuralFeature.getLowerBound() > 1 || eStructuralFeature.getUpperBound() > 1) if (eStructuralFeature.getLowerBound() == eStructuralFeature.getUpperBound()) xsdLengthFacet.setLexicalValue(Integer.toString(eStructuralFeature.getLowerBound())); xsdRestrictedTypeDefinition.getFacetContents().add(xsdLengthFacet); if (eStructuralFeature.getLowerBound() > 1) xsdMinLengthFacet.setLexicalValue(Integer.toString(eStructuralFeature.getLowerBound())); xsdRestrictedTypeDefinition.getFacetContents().add(xsdMinLengthFacet);
map(xsdParticle, eStructuralFeature); if (eStructuralFeature.getLowerBound() != 1) xsdParticle.setMinOccurs(eStructuralFeature.getLowerBound());
int minOccurs = eStructuralFeature.getLowerBound(); int maxOccurs = eStructuralFeature.getUpperBound(); if (minOccurs >= 0 && (minOccurs <= maxOccurs || maxOccurs == -1))
if (eStructuralFeature.getLowerBound() != 0) createEcoreAnnotation(xsdParticle, "lowerBound", Integer.toString(eStructuralFeature.getLowerBound())); else if (eStructuralFeature.getLowerBound() != 1) xsdParticle.setMinOccurs(eStructuralFeature.getLowerBound()); if (eStructuralFeature.getLowerBound() != 0) createEcoreAnnotation(xsdParticle, "lowerBound", Integer.toString(eStructuralFeature.getLowerBound())); else if (eStructuralFeature.getLowerBound() != 1) createEcoreAnnotation(xsdParticle, "lowerBound", Integer.toString(eStructuralFeature.getLowerBound()));
if (eStructuralFeature.getLowerBound() != 0) createEcoreAnnotation(xsdParticle, "lowerBound", Integer.toString(eStructuralFeature.getLowerBound())); else if (eStructuralFeature.getLowerBound() != 1) xsdParticle.setMinOccurs(eStructuralFeature.getLowerBound()); if (eStructuralFeature.getLowerBound() != 0) createEcoreAnnotation(xsdParticle, "lowerBound", Integer.toString(eStructuralFeature.getLowerBound())); else if (eStructuralFeature.getLowerBound() != 1) createEcoreAnnotation(xsdParticle, "lowerBound", Integer.toString(eStructuralFeature.getLowerBound()));
createEcoreAnnotation(xsdComponent, "lowerBound", Integer.toString(eStructuralFeature.getLowerBound()));
int lowerBound = eStructuralFeature.getLowerBound(); if (lowerBound > 0)
int lowerBound = eStructuralFeature.getLowerBound(); if (lowerBound > 0)
createEcoreAnnotation(xsdComponent, "lowerBound", Integer.toString(eStructuralFeature.getLowerBound()));