public void setMemberTypes(EDataType eDataType, List<EDataType> memberTypes) { if (memberTypes.isEmpty()) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().removeKey("memberTypes"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); String namespace = getNamespace(eDataType); StringBuffer result = new StringBuffer(); for (int i = 0, size = memberTypes.size(); i < size; ++i) { result.append(getQualifiedName(namespace, memberTypes.get(i))); result.append(' '); } eAnnotation.getDetails().put("memberTypes", result.substring(0, result.length() - 1)); } getExtendedMetaData(eDataType).setMemberTypes(memberTypes); }
public void setMemberTypes(EDataType eDataType, List<EDataType> memberTypes) { if (memberTypes.isEmpty()) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("memberTypes"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); String namespace = getNamespace(eDataType); StringBuffer result = new StringBuffer(); for (int i = 0, size = memberTypes.size(); i < size; ++i) { result.append(getQualifiedName(namespace, memberTypes.get(i))); result.append(' '); } eAnnotation.getDetails().put("memberTypes", result.substring(0, result.length() - 1)); } getExtendedMetaData(eDataType).setMemberTypes(memberTypes); }
public void setGroup(EStructuralFeature eStructuralFeature, EStructuralFeature group) { if (group == null) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("group"); } } else { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, true); eAnnotation.getDetails().put ("group", getQualifiedName(getNamespace(eStructuralFeature.getEContainingClass().getEPackage()), group)); } getExtendedMetaData(eStructuralFeature).setGroup(group); }
public void setAffiliation(EStructuralFeature eStructuralFeature, EStructuralFeature affiliation) { if (affiliation == null) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("affiliation"); } } else { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, true); eAnnotation.getDetails().put ("affiliation", getQualifiedName(getNamespace(eStructuralFeature.getEContainingClass().getEPackage()), affiliation)); } getExtendedMetaData(eStructuralFeature).setAffiliation(affiliation); }
public void setItemType(EDataType eDataType, EDataType itemType) { if (itemType == null) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("itemType"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("itemType", getQualifiedName(getNamespace(eDataType), itemType)); } getExtendedMetaData(eDataType).setItemType(itemType); }
public void setGroup(EStructuralFeature eStructuralFeature, EStructuralFeature group) { if (group == null) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, false); if (eAnnotation != null) { eAnnotation.getDetails().removeKey("group"); } } else { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, true); eAnnotation.getDetails().put ("group", getQualifiedName(getPackageNamespace(eStructuralFeature), group)); } getExtendedMetaData(eStructuralFeature).setGroup(group); }
public void setBaseType(EDataType eDataType, EDataType baseType) { if (baseType == null) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().removeKey("baseType"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("baseType", getQualifiedName(getNamespace(eDataType), baseType)); } getExtendedMetaData(eDataType).setBaseType(baseType); }
public void setItemType(EDataType eDataType, EDataType itemType) { if (itemType == null) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().removeKey("itemType"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("itemType", getQualifiedName(getNamespace(eDataType), itemType)); } getExtendedMetaData(eDataType).setItemType(itemType); }
public void setBaseType(EDataType eDataType, EDataType baseType) { if (baseType == null) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("baseType"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("baseType", getQualifiedName(getNamespace(eDataType), baseType)); } getExtendedMetaData(eDataType).setBaseType(baseType); }
public void setAffiliation(EStructuralFeature eStructuralFeature, EStructuralFeature affiliation) { if (affiliation == null) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, false); if (eAnnotation != null) { eAnnotation.getDetails().removeKey("affiliation"); } } else { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, true); eAnnotation.getDetails().put ("affiliation", getQualifiedName(getPackageNamespace(eStructuralFeature), affiliation)); } getExtendedMetaData(eStructuralFeature).setAffiliation(affiliation); }