Interface MaxCardinalityQRestriction

    • Method Detail

      • setMaxCardinalityQ

        void setMaxCardinalityQ​(int maxCardinality)

        Assert that this restriction restricts the property to have the given maximum cardinality. Any existing statements for maxCardinalityQ will be removed.

        Parameters:
        maxCardinality - The maximum cardinality of the restricted property
        Throws:
        ProfileException - If the Profile.MAX_CARDINALITY_Q() property is not supported in the current language profile.
      • getMaxCardinalityQ

        int getMaxCardinalityQ()

        Answer the max qualified cardinality of the restricted property.

        Returns:
        The cardinality of the restricted property
        Throws:
        ProfileException - If the Profile.MAX_CARDINALITY_Q() property is not supported in the current language profile.
      • hasMaxCardinalityQ

        boolean hasMaxCardinalityQ​(int maxCardinality)

        Answer true if this property restriction has the given maximum qualified cardinality.

        Parameters:
        maxCardinality - The cardinality to test against
        Returns:
        True if the given cardinality is the maximum qualified cardinality of the restricted property in this restriction
        Throws:
        ProfileException - If the Profile.MAX_CARDINALITY_Q() property is not supported in the current language profile.
      • removeMaxCardinalityQ

        void removeMaxCardinalityQ​(int maxCardinality)

        Remove the statement that this restriction has the given maximum qualified cardinality for the restricted property. If this statement is not true of the current model, nothing happens.

        Parameters:
        maxCardinality - A cardinality value to be removed from this restriction
        Throws:
        ProfileException - If the Profile.MAX_CARDINALITY_Q() property is not supported in the current language profile.