/** * @see org.eclipse.uml2.uml.Property#isDerived() */ public boolean isDerived() { return this.property.isDerived(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * A derived union is derived. * isDerivedUnion implies isDerived * @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 validateDerivedUnionIsDerived(Property property, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; if (property.isDerivedUnion() && !property.isDerived()) { result = false; if (diagnostics != null) { diagnostics.add(new BasicDiagnostic(Diagnostic.WARNING, UMLValidator.DIAGNOSTIC_SOURCE, UMLValidator.PROPERTY__DERIVED_UNION_IS_DERIVED, UMLPlugin.INSTANCE.getString( "_UI_Property_DerivedUnionIsDerived_diagnostic", //$NON-NLS-1$ getMessageSubstitutions(context, property)), new Object[]{property})); } } return result; }
/** * @see org.eclipse.uml2.uml.Property#isDerived() */ public boolean isDerived() { return this.property.isDerived(); }
/** * @see org.eclipse.uml2.uml.Property#isDerived() */ public boolean isDerived() { return this.property.isDerived(); }
/** * @see org.eclipse.uml2.uml.Property#isDerived() */ public boolean isDerived() { return this.property.isDerived(); }
@Override public boolean isDerived() { return this.property.isDerived(); }
public String getOclValue() { if (!this.property.isDerived()) { throw new IllegalStateException("getOclValue can only be called on a derived property"); } return this.property.getDefaultValue().stringValue(); }
public boolean isComponent() { return !this.property.isDerived() && this.property.getType() instanceof Classifier && this.property.isComposite() && this.property.getLower() >= 1; }