mondrian.olap
Interface NameResolver.Namespace

All Known Implementing Classes:
RolapSchemaReader
Enclosing class:
NameResolver

public static interface NameResolver.Namespace

Naming context within which elements are defined.

Elements' names are hierarchical, so elements are resolved one name segment at a time. It is possible for an element to be defined in a different namespace than its parent: for example, stored member [Dim].[Hier].[X].[Y] might have a child [Dim].[Hier].[X].[Y].[Z] which is a calculated member defined using a WITH MEMBER clause.


Method Summary
 OlapElement lookupChild(OlapElement parent, IdentifierSegment segment)
          Looks up a child element.
 OlapElement lookupChild(OlapElement parent, IdentifierSegment segment, MatchType matchType)
          Looks up a child element, using a match type for inexact matching.
 

Method Detail

lookupChild

OlapElement lookupChild(OlapElement parent,
                        IdentifierSegment segment,
                        MatchType matchType)
Looks up a child element, using a match type for inexact matching.

If matchType is MatchType.EXACT, effect is identical to calling lookupChild(OlapElement, org.olap4j.mdx.IdentifierSegment).

Match type is ignored except when searching for members.

Parameters:
parent - Parent element
segment - Name segment
matchType - Match type
Returns:
Olap element, or null

lookupChild

OlapElement lookupChild(OlapElement parent,
                        IdentifierSegment segment)
Looks up a child element.

Parameters:
parent - Parent element
segment - Name segment
Returns:
Olap element, or null

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads