if (isID != null && eStructuralFeature instanceof EAttribute) ((EAttribute)eStructuralFeature).setID("true".equals(isID));
protected void initialize(EAttribute eAttribute, XSDSimpleTypeDefinition xsdSimpleTypeDefinition) { if (XSDConstants.isOrIsDerivedFromID(xsdSimpleTypeDefinition)) { eAttribute.setID(true); } // If there is no default value but the type has enumeration facets and the value is a primitive... // if (!eAttribute.isMany() && eAttribute.getDefaultValueLiteral() == null && xsdSimpleTypeDefinition != null && xsdSimpleTypeDefinition.getEffectiveEnumerationFacet() != null && eAttribute.getEType().getDefaultValue() != null) { // Set the default to the first enumeration's value. // eAttribute.setDefaultValueLiteral ((xsdSimpleTypeDefinition. getEffectiveEnumerationFacet(). getSimpleTypeDefinition(). getEnumerationFacets(). get(0)).getLexicalValue()); } }
if (isID != null && eStructuralFeature instanceof EAttribute) ((EAttribute)eStructuralFeature).setID("true".equals(isID));
protected void initialize(EAttribute eAttribute, XSDSimpleTypeDefinition xsdSimpleTypeDefinition) { if (XSDConstants.isOrIsDerivedFromID(xsdSimpleTypeDefinition)) { eAttribute.setID(true); } // If there is no default value but the type has enumeration facets and the value is a primitive... // if (!eAttribute.isMany() && eAttribute.getDefaultValueLiteral() == null && xsdSimpleTypeDefinition != null && xsdSimpleTypeDefinition.getEffectiveEnumerationFacet() != null && eAttribute.getEType().getDefaultValue() != null && !(eAttribute.getEType() instanceof EEnum)) { // Set the default to the first enumeration's value. // setDefaultValueLiteral (eAttribute, xsdSimpleTypeDefinition.getNormalizedLiteral ((xsdSimpleTypeDefinition. getEffectiveEnumerationFacet(). getSimpleTypeDefinition(). getEnumerationFacets(). get(0)).getLexicalValue())); } }