wrapperAttrib.setEType(schemaPack.getEClassifier("Tristate")); wrapperAttrib.setUnsettable(true); testType.getEStructuralFeatures().add(wrapperAttrib); if (wrapperAttrib.getEType() == ePackage.getEDouble()) { doubleStringAttribute.getEAnnotations().add(createAsStringAnnotation()); doubleStringAttribute.getEAnnotations().add(createHiddenAnnotation()); doubleStringAttribute.setUnsettable(true); testType.getEStructuralFeatures().add(doubleStringAttribute);
eAttribute.setUnique(false); eAttribute.setEType(EcorePackage.eINSTANCE.getELong()); eAttribute.setUnsettable(expAttrib.isOptional()); cls.getEStructuralFeatures().add(eAttribute); return; if (nt instanceof EnumerationType) { EAttribute enumAttrib = eFactory.createEAttribute(); enumAttrib.setUnsettable(expAttrib.isOptional()); enumAttrib.setName(attrib.getName()); EClassifier eType = schemaPack.getEClassifier(nt.getName()); if (wrapped) { EAttribute eAttribute = eFactory.createEAttribute(); eAttribute.setUnsettable(expAttrib.isOptional()); eAttribute.setName(attrib.getName()); if (eAttribute.getName().equals("RefLatitude") || eAttribute.getName().equals("RefLongitude")) { doubleStringAttribute.getEAnnotations().add(createHiddenAnnotation()); doubleStringAttribute.setEType(EcorePackage.eINSTANCE.getEString()); doubleStringAttribute.setUnsettable(expAttrib.isOptional()); cls.getEStructuralFeatures().add(doubleStringAttribute); eAttribute.setUnsettable(expAttrib.isOptional()); eAttribute.setUnique(false); cls.getEStructuralFeatures().add(eAttribute); doubleStringAttribute.setEType(EcorePackage.eINSTANCE.getEString()); doubleStringAttribute.setUpperBound(-1);
eAttribute.setUnsettable(true); // TODO find out doubleStringAttribute.getEAnnotations().add(createAsStringAnnotation()); doubleStringAttribute.getEAnnotations().add(createHiddenAnnotation()); doubleStringAttribute.setUnsettable(true); // TODO
eAttribute.setUnsettable(true); if (maxOccurs == 1) eAttribute.setUnsettable(true); eAttribute.setUnsettable(true);
eAttribute.setUnsettable(true); if (maxOccurs == 1) eAttribute.setUnsettable(true); eAttribute.setUnsettable(true);