org.olap4j.mdx
Class ParseRegion.RegionAndSource

java.lang.Object
  extended by org.olap4j.mdx.ParseRegion.RegionAndSource
Enclosing class:
ParseRegion

public static class ParseRegion.RegionAndSource
extends java.lang.Object

Combination of a region within an MDX statement with the source text of the whole MDX statement.

Useful for reporting errors. For example, the error in the statement

 SELECT {[Measures].[Units In Stock]} ON COLUMNS
 FROM [Sales]
 
has source "SELECT {[Measures].[Units In Stock]} ON COLUMNS\nFROM [Sales]" and region [1:9, 1:34].


Field Summary
 ParseRegion region
           
 java.lang.String source
           
 
Constructor Summary
ParseRegion.RegionAndSource(java.lang.String source, ParseRegion region)
          Creates a RegionAndSource.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

public final java.lang.String source

region

public final ParseRegion region
Constructor Detail

ParseRegion.RegionAndSource

public ParseRegion.RegionAndSource(java.lang.String source,
                                   ParseRegion region)
Creates a RegionAndSource.

Parameters:
source - Source MDX code
region - Coordinates of region within MDX code

SourceForge.net_Logo