Package mondrian.olap

Class OlapElementBase

    • Field Detail

      • caption

        protected java.lang.String caption
      • visible

        protected boolean visible
    • Constructor Detail

      • OlapElementBase

        protected OlapElementBase()
    • Method Detail

      • getLogger

        protected abstract org.apache.log4j.Logger getLogger()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • equals

        public boolean equals​(OlapElement mdxElement)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • computeHashCode

        protected int computeHashCode()
        Computes this object's hash code. Called at most once.
        Returns:
        hash code
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • getCaption

        public java.lang.String getCaption()
        Returns the display name of this catalog element. If no caption is defined, the name is returned.
        Specified by:
        getCaption in interface OlapElement
      • setCaption

        public void setCaption​(java.lang.String caption)
        Sets the display name of this catalog element.
      • isVisible

        public boolean isVisible()
        Description copied from interface: OlapElement
        Returns whether this element is visible to end-users.

        Visibility is a hint for client applications. An element's visibility does not affect how it is treated when MDX queries are evaluated.

        Specified by:
        isVisible in interface OlapElement
        Returns:
        Whether this element is visible
      • getLocalized

        public java.lang.String getLocalized​(OlapElement.LocalizedProperty prop,
                                             java.util.Locale locale)
        Description copied from interface: OlapElement
        Returns the value of a property (caption or description) of this element in the given locale.
        Specified by:
        getLocalized in interface OlapElement
        locale - Locale
        Returns:
        Localized caption or description