com.tensegrity.palowebviewer.modules.paloclient.client.misc
Class MutableXPoint

java.lang.Object
  extended by com.tensegrity.palowebviewer.modules.paloclient.client.misc.MutableXPoint
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, IHaveCoordinates, IXPoint

public class MutableXPoint
extends java.lang.Object
implements IHaveCoordinates, IXPoint, com.google.gwt.user.client.rpc.IsSerializable


Constructor Summary
MutableXPoint()
           
 
Method Summary
 void addCoordinate(XDimension dimension, XElement coordinate)
           
 java.util.List getDimensions()
           
 XPath getElementPath(XPath dimensionPath)
          To get all element coordinates iterate via @see XQueryPath.getDimensions().
 IResultElement getValue()
           
 void setValue(IResultElement value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableXPoint

public MutableXPoint()
Method Detail

getElementPath

public XPath getElementPath(XPath dimensionPath)
Description copied from interface: IXPoint
To get all element coordinates iterate via @see XQueryPath.getDimensions().

Specified by:
getElementPath in interface IXPoint
Parameters:
dimensionPath - - interesting dimension path
Returns:
XPath to current point at current dimension.

getValue

public IResultElement getValue()
Specified by:
getValue in interface IXPoint
Returns:
value of point

setValue

public void setValue(IResultElement value)

addCoordinate

public void addCoordinate(XDimension dimension,
                          XElement coordinate)
Specified by:
addCoordinate in interface IHaveCoordinates

getDimensions

public java.util.List getDimensions()
Specified by:
getDimensions in interface IXPoint
Returns:
dimensions Xpath list in order they added