if (eStructuralFeature.getEType().getEAnnotation("wrapped") != null) { EObject value = (EObject) eGet; if (value != null) { if (eStructuralFeature.getEType().getEAnnotation("wrapped") != null) { List<EObject> list = (List<EObject>) eGet; out.println("<td>");
public void fakeRead(ByteBuffer buffer, EStructuralFeature feature) throws BimserverDatabaseException { boolean wrappedValue = feature.getEType().getEAnnotation("wrapped") != null; if (feature.isMany()) { if (feature.getEType() instanceof EEnum) {
@Override public int compare(IdEObject o1, IdEObject o2) { int i = 1; for (EStructuralFeature eStructuralFeature : type.getEAllStructuralFeatures()) { if (objectIDM.shouldFollowReference(originalQueryClass, type, eStructuralFeature)) { Object val1 = o1.eGet(eStructuralFeature); Object val2 = o2.eGet(eStructuralFeature); if (val1 != null && val2 != null) { if (eStructuralFeature.getEType() instanceof EClass) { if (eStructuralFeature.getEType().getEAnnotation("wrapped") != null) { int compare = comparePrimitives((IdEObject) val1, (IdEObject) val2); if (compare != 0) { return compare * i; } } } } i++; } } return 0; } });
if (eType.getEAnnotation("wrapped") != null) { if (!found) { EAttribute eAttribute = eFactory.createEAttribute();
@SuppressWarnings("unchecked") public void sortAllAggregates(ObjectIDM objectIDM, IdEObject ifcRoot) { for (EStructuralFeature eStructuralFeature : ifcRoot.eClass().getEAllStructuralFeatures()) { if (objectIDM.shouldFollowReference(ifcRoot.eClass(), ifcRoot.eClass(), eStructuralFeature)) { if (eStructuralFeature.getUpperBound() == -1 || eStructuralFeature.getUpperBound() > 1) { if (eStructuralFeature.getEType() instanceof EClass) { if (eStructuralFeature.getEType().getEAnnotation("wrapped") != null) { EList<IdEObject> list = (EList<IdEObject>) ifcRoot.eGet(eStructuralFeature); sortPrimitiveList(list); } else { EList<IdEObject> list = (EList<IdEObject>) ifcRoot.eGet(eStructuralFeature); sortComplexList(objectIDM, ifcRoot.eClass(), list, eStructuralFeature); } } } } } }
/** * Returns true if the classifier type information should not be serialize. * This is true when the classifier possesses an annotation @JsonType with include = "false". * * @param classifier * @return true if type info should not be serialize */ public static boolean shouldIgnoreType(EClassifier classifier) { EAnnotation annotation = classifier.getEAnnotation("JsonType"); return annotation != null && "false".equalsIgnoreCase(annotation.getDetails().get("include")); }
/** * Returns true if the classifier type information should not be serialize. * This is true when the classifier possesses an annotation @JsonType with include = "false". * * @param classifier * @return true if type info should not be serialize */ public static boolean shouldIgnoreType(EClassifier classifier) { EAnnotation annotation = classifier.getEAnnotation("JsonType"); return annotation != null && "false".equalsIgnoreCase(annotation.getDetails().get("include")); }
.getEAnnotation(UML2_UML_PACKAGE_2_0_NS_URI);
.getEAnnotation(UML2_UML_PACKAGE_2_0_NS_URI);