if (eReference.getEAnnotation("embedsreference") != null) { if (eReference.getEAnnotation("embedsreference") != null) { if (eReference.getEAnnotation("embedsreference") != null) { if (eReference.getEAnnotation("embedsreference") != null) {
importManager.getImport("java.util.List"); importManager.getImport("java.util.ArrayList"); if (eReference.getEAnnotation("embedsreference") != null) { if (eReference.getEAnnotation("embedsreference") != null) { EReference eReference = (EReference)eStructuralFeature; if (eReference.isMany()) { if (eReference.getEAnnotation("embedsreference") != null) { if (eReference.getEAnnotation("embedsreference") != null) {
if (eReference.getEAnnotation("twodimensionalarray") != null) { int refSize = 4; EStructuralFeature eStructuralFeature = eObject.eClass().getEStructuralFeature("List"); } else if (eReference.getEAnnotation("dbembed") != null) { int refSize = 2; refSize += getExactSize(eObject, packageMetaData, false);
if (eReference.getEAnnotation("twodimensionalarray") != null) { int refSize = 6; EStructuralFeature eStructuralFeature = eObject.eClass().getEStructuralFeature("List");
protected List<EClass> getAllChildConcreteSubclasses(EReference eReference) { EClass eClass = eReference.getEReferenceType(); List<EClass> result = getAllConcreteSubclasses(eClass); if (eClass == EcorePackage.Literals.EOBJECT && eReference.getEAnnotation(ExtendedMetaData.ANNOTATION_URI) != null) { if (!result.contains(XMLTypePackage.Literals.ANY_TYPE)) { result.add(XMLTypePackage.Literals.ANY_TYPE); } } return result; }
EAnnotation annotation = eref.getEAnnotation("http:///org/eclipse/emf/ecore/util/ExtendedMetaData"); if (annotation == null || !annotation.getDetails().containsKey("group")) { continue;
private void cachePackage(EPackage ePackage) { for (EClassifier c : ePackage.getEClassifiers()) { if (c instanceof EClass) { EClass eClass = (EClass) c; for (EReference ref : eClass.getEReferences()) { EAnnotation ann = ref .getEAnnotation(EMOFExtendedMetaData.EMOF_PACKAGE_NS_URI_2_0); if (ann != null) { String oppositeName = ann.getDetails().get( OppositeEndFinder.PROPERTY_OPPOSITE_ROLE_NAME_KEY); if (oppositeName != null) { cache((EClass) ref.getEType(), oppositeName, ref); } } } } } }