module Mondrian::OLAP::Annotated

Private Instance Methods

annotations_for(raw_element) click to toggle source
# File lib/mondrian/olap/cube.rb, line 8
def annotations_for(raw_element)
  @annotations ||= begin
    annotated = raw_element.unwrap(Java::MondrianOlap::Annotated.java_class)
    annotations_hash = annotated.getAnnotationMap.to_hash
    annotations_hash.each do |key, annotation|
      annotations_hash[key] = annotation.getValue
    end
    annotations_hash
  end
end