com.tensegrity.palowebviewer.modules.paloclient.client.misc
Class XQueryPath
java.lang.Object
com.tensegrity.palowebviewer.modules.paloclient.client.misc.XQueryPath
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.IsSerializable, IHaveCoordinates
public class XQueryPath
- extends java.lang.Object
- implements IHaveCoordinates, com.google.gwt.user.client.rpc.IsSerializable
This class contains data query to some cube via XPath
To get data you should.
1. Create instance of XQueryPath via constructor XQueryPath(XCube cube)
2. Add coordinates. Each cube dimension should have at least one coordinate (element), otherwise some exception will be thrownd duging data querying.
3. Returned data is wrapped in XResult. Create instance of XResultIterator
, using XResult and XQuery
4. For each IXPoint returned by XResultIterator invoke getElementPath() to determine element
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XQueryPath
public XQueryPath()
- Default constructor is needed to (de)serialization. Do not use it directry.
XQueryPath
public XQueryPath(XCube cube)
- Parameters:
cube
- - interesting cube, to wich you are querying
addCoordinate
public void addCoordinate(XDimension dimension,
XElement point)
- Specified by:
addCoordinate
in interface IHaveCoordinates
getCubePath
public XPath getCubePath()
getDimensions
public java.util.List getDimensions()
- Returns:
- dimensions Xpath list in order they added
getPoinstPath
public java.util.List getPoinstPath(XPath dimensionPath)
- Parameters:
dimensionPath
- to dimension
- Returns:
- list of paths to elements
getRequestedElements
public java.util.List getRequestedElements(XPath dimensionPath)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object