public final class NameResolver extends Object
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
NameResolver.Namespace
Naming context within which elements are defined. 
 | 
| Constructor and Description | 
|---|
NameResolver()
Creates a NameResolver. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
matches(Formula formula,
       OlapElement parent,
       IdentifierSegment segment)
Returns whether a formula (representing a calculated member or named
 set) matches a given parent and name segment. 
 | 
OlapElement | 
resolve(OlapElement parent,
       List<IdentifierSegment> segments,
       boolean failIfNotFound,
       int category,
       MatchType matchType,
       List<NameResolver.Namespace> namespaces)
Resolves a list of segments (a parsed identifier) to an OLAP element. 
 | 
public OlapElement resolve(OlapElement parent, List<IdentifierSegment> segments, boolean failIfNotFound, int category, MatchType matchType, List<NameResolver.Namespace> namespaces)
parent - Parent element to search in, usually a cubesegments - Exploded compound name, such as {"Products",
   "Product Department", "Produce"}failIfNotFound - If the element is not found, determines whether
   to return null or throw an errorcategory - Type of returned element, a Category value;
   Category.Unknown if it doesn't matter.matchType - Match typenamespaces - Namespaces wherein to find child element at each steppublic static boolean matches(Formula formula, OlapElement parent, IdentifierSegment segment)
formula - Formulaparent - Parent elementsegment - Name segment