/** * @see org.eclipse.uml2.uml.Property#isNavigable() */ public boolean isNavigable() { return this.property.isNavigable(); }
/** * @see org.eclipse.uml2.uml.Property#isNavigable() */ public boolean isNavigable() { return this.property.isNavigable(); }
/** * @see org.eclipse.uml2.uml.Property#isNavigable() */ public boolean isNavigable() { return this.property.isNavigable(); }
/** * @see org.eclipse.uml2.uml.Property#isNavigable() */ public boolean isNavigable() { return this.property.isNavigable(); }
@Override public boolean isNavigable() { return this.property.isNavigable(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * Sets the navigability of this property as indicated. * @param property The receiving '<em><b>Property</b></em>' model object. * @param isNavigable The new navigability. * <!-- end-model-doc --> * @generated NOT */ public static void setIsNavigable(Property property, boolean isNavigable) { if (property.isNavigable() != isNavigable) { Association association = property.getAssociation(); if (association == null) { throw new IllegalStateException(); } EList<Property> navigableOwnedEnds = association .getNavigableOwnedEnds(); if (isNavigable) { navigableOwnedEnds.add(property); } else { navigableOwnedEnds.remove(property); association.getOwnedEnds().add(property); } } }
if (property.isNavigable()) { Association association = property.getAssociation();
if (LOGGER.isDebugEnabled()) LOGGER.debug("getAssociationEnds " + classifier.getQualifiedName() + ": addedAssociation " + property + ' ' + property.getType() + ' ' + property.getAssociation() + " AssociationEnd=" + property.getAssociationEnd() + " OwnedEnds=" + property.getAssociation().getOwnedEnds() + " Qualifiers=" + property.getQualifiers() + " Navigable=" + property.isNavigable());
if (LOGGER.isDebugEnabled()) LOGGER.debug("getAssociationEnds " + classifier.getQualifiedName() + ": addedAssociation " + property + ' ' + property.getType() + ' ' + property.getAssociation() + " AssociationEnd=" + property.getAssociationEnd() + " OwnedEnds=" + property.getAssociation().getOwnedEnds() + " Qualifiers=" + property.getQualifiers() + " Navigable=" + property.isNavigable());
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * Only a navigable property can be marked as readOnly. * isReadOnly implies isNavigable() * @param property The receiving '<em><b>Property</b></em>' model object. * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * <!-- end-model-doc --> * @generated NOT */ public static boolean validateNavigableReadonly(Property property, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; if (property.isReadOnly() && property.getAssociation() != null && !property.isNavigable()) { result = false; if (diagnostics != null) { diagnostics.add(new BasicDiagnostic(Diagnostic.WARNING, UMLValidator.DIAGNOSTIC_SOURCE, UMLValidator.PROPERTY__NAVIGABLE_READONLY, UMLPlugin.INSTANCE.getString( "_UI_Property_NavigableReadOnly_diagnostic", //$NON-NLS-1$ getMessageSubstitutions(context, property)), new Object[]{property})); } } return result; }