Class VisualTotalsFunDef.VisualTotalMember

  • All Implemented Interfaces:
    java.lang.Comparable, Annotated, Member, OlapElement, RolapCalculation, RolapMember
    Enclosing class:
    VisualTotalsFunDef

    public static class VisualTotalsFunDef.VisualTotalMember
    extends RolapMemberBase
    Calculated member for VisualTotals function.

    It corresponds to a real member, and most of its properties are similar. The main differences are:

    • its name is derived from the VisualTotals pattern, e.g. "*Subtotal - Dairy" as opposed to "Dairy"
    • its value is a calculation computed by aggregating all of the members which occur following it in the list

    • Constructor Detail

      • VisualTotalMember

        VisualTotalMember​(Member member,
                          java.lang.String name,
                          java.lang.String caption,
                          Exp exp)
    • Method Detail

      • getCaption

        public java.lang.String getCaption()
        Description copied from class: OlapElementBase
        Returns the display name of this catalog element. If no caption is defined, the name is returned.
        Specified by:
        getCaption in interface OlapElement
        Overrides:
        getCaption in class MemberBase
      • getExpression

        public Exp getExpression()
        Description copied from class: MemberBase
        Returns the expression by which this member is calculated. The expression is not null if and only if the member is not calculated.
        Specified by:
        getExpression in interface Member
        Overrides:
        getExpression in class MemberBase
      • setExpression

        public void setExpression​(Exp exp)
      • setExpression

        public void setExpression​(Evaluator evaluator,
                                  java.util.List<Member> childMembers)
      • getOrdinal

        public int getOrdinal()
        Description copied from class: MemberBase
        Returns the ordinal of this member within its hierarchy. The default implementation returns -1.
        Specified by:
        getOrdinal in interface Member
        Overrides:
        getOrdinal in class RolapMemberBase
      • getDataMember

        public Member getDataMember()
        Description copied from interface: Member
        Returns the system-generated data member that is associated with a nonleaf member of a dimension.

        Returns this member if this member is a leaf member, or if the nonleaf member does not have an associated data member.

        Specified by:
        getDataMember in interface Member
        Overrides:
        getDataMember in class MemberBase
      • getMember

        public Member getMember()
      • getPropertyValue

        public java.lang.Object getPropertyValue​(java.lang.String propertyName,
                                                 boolean matchCase)
        Description copied from interface: Member
        Returns the value of the property named propertyName, matching according to the required case-sensitivity.
        Specified by:
        getPropertyValue in interface Member
        Overrides:
        getPropertyValue in class RolapMemberBase