OlapElement.LocalizedProperty| Modifier and Type | Method and Description |
|---|---|
Map<String,Annotation> |
getAnnotationMap()
Returns a list of annotations.
|
String |
getCaption() |
String |
getDescription() |
Dimension |
getDimension()
Returns the dimension of a this expression, or null if no dimension is
defined.
|
Exp |
getExp()
Returns the expression used to derive this named set.
|
Hierarchy |
getHierarchy() |
String |
getLocalized(OlapElement.LocalizedProperty prop,
Locale locale)
Returns the value of a property (caption or description) of
this element in the given locale.
|
String |
getName() |
String |
getNameUniqueWithinQuery()
Returns a name for this set that is unique within the query.
|
String |
getQualifiedName()
Returns the name of this element qualified by its class, for example
"hierarchy 'Customers'".
|
Type |
getType()
Returns the type of this named set.
|
String |
getUniqueName() |
boolean |
isDynamic()
Returns whether this named set is dynamic.
|
boolean |
isVisible()
Returns whether this element is visible to end-users.
|
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment s,
MatchType matchType)
Looks up a child element, returning null if it does not exist.
|
void |
setExp(Exp expr) |
void |
setName(String newName)
Sets the name of this named set.
|
NamedSet |
validate(Validator validator) |
public String getName()
getName in interface OlapElementpublic String getNameUniqueWithinQuery()
NamedSetThis is necessary when there are several 'AS' expressions, or an 'AS' expression overrides a named set defined using 'WITH MEMBER' clause or against a cube.
getNameUniqueWithinQuery in interface NamedSetpublic boolean isDynamic()
NamedSetEvaluation rules:
public Exp getExp()
NamedSetpublic void setExp(Exp expr)
public void setName(String newName)
NamedSetpublic Type getType()
NamedSetpublic Map<String,Annotation> getAnnotationMap()
AnnotatedThe map may be empty, never null.
getAnnotationMap in interface Annotatedpublic String getUniqueName()
getUniqueName in interface OlapElementpublic String getDescription()
getDescription in interface OlapElementpublic OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
OlapElementlookupChild in interface OlapElementpublic String getQualifiedName()
OlapElementgetQualifiedName in interface OlapElementpublic String getCaption()
getCaption in interface OlapElementpublic boolean isVisible()
OlapElementVisibility is a hint for client applications. An element's visibility does not affect how it is treated when MDX queries are evaluated.
isVisible in interface OlapElementpublic Hierarchy getHierarchy()
getHierarchy in interface OlapElementpublic Dimension getDimension()
OlapElementExample 1:
has dimension[Sales].children
[Sales].
Example 2:
order(except([Promotion Media].[Media Type].members,
{[Promotion Media].[Media Type].[No Media]}),
[Measures].[Unit Sales], DESC)
has dimension [Promotion Media].
Example 3:
CrossJoin([Product].[Product Department].members,
[Gender].members)
has no dimension (well, actually it is [Product] x [Gender], but we
can't represent that, so we return null);getDimension in interface OlapElementpublic String getLocalized(OlapElement.LocalizedProperty prop, Locale locale)
OlapElementgetLocalized in interface OlapElementlocale - LocaleCopyright © 2019 Hitachi Vantara. All rights reserved.