Package mondrian.olap

Class HierarchyBase

    • Field Detail

      • dimension

        protected final Dimension dimension
      • subName

        protected final java.lang.String subName
        name and subName are the name of the hierarchy, respectively containing and not containing dimension name. For example:
        uniqueName name subName
        [Time.Weekly] Time.Weekly Weekly
        [Customers] Customers null

        If MondrianProperties.SsasCompatibleNaming is true, name and subName have the same value.

      • name

        protected final java.lang.String name
      • uniqueName

        protected final java.lang.String uniqueName
      • description

        protected java.lang.String description
      • levels

        protected Level[] levels
      • hasAll

        protected final boolean hasAll
      • allMemberName

        protected java.lang.String allMemberName
      • allLevelName

        protected java.lang.String allLevelName
    • Constructor Detail

      • HierarchyBase

        protected HierarchyBase​(Dimension dimension,
                                java.lang.String subName,
                                java.lang.String caption,
                                boolean visible,
                                java.lang.String description,
                                boolean hasAll)
    • Method Detail

      • getSubName

        public java.lang.String getSubName()
        Returns the name of the hierarchy sans dimension name.
        Returns:
        name of hierarchy sans dimension name
      • getUniqueNameSsas

        public java.lang.String getUniqueNameSsas()
        Description copied from interface: Hierarchy
        Returns the unique name of this hierarchy, always including the dimension name, e.g. "[Time].[Time]", regardless of whether MondrianProperties.SsasCompatibleNaming is enabled.
        Specified by:
        getUniqueNameSsas in interface Hierarchy
        Returns:
        Unique name of hierarchy.
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface OlapElement
      • getQualifiedName

        public java.lang.String getQualifiedName()
        Description copied from interface: OlapElement
        Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".
        Specified by:
        getQualifiedName in interface OlapElement
      • isRagged

        public abstract boolean isRagged()
      • hasAll

        public boolean hasAll()
        Specified by:
        hasAll in interface Hierarchy
      • getAllMemberName

        public java.lang.String getAllMemberName()
      • getAllLevelName

        public java.lang.String getAllLevelName()
        Returns the name of the 'all' level in this hierarchy.
        Returns:
        name of the 'all' level