92
 What do YOU want UML to be?  |  Long Talk  |  © Copyright 2007 by IBM Corp.; made available under the EPL v1.0
Heavyweight Extensions – Example
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * The query isMultivalued() checks whether this multiplicity has an upper bound greater than one.
 * upperBound()->notEmpty()
 * result = upperBound() > 1
 * <!-- end-model-doc -->
 * @generated NOT
 */
public static boolean isMultivalued(MultiplicityElement multiplicityElement) {
    int upperBound = multiplicityElement.upperBound();
    return upperBound == -1 || upperBound > 1;
}