Style Intelligence v12.0

inetsoft.uql.path
Class PathNode

java.lang.Object
  extended by inetsoft.uql.path.PathNode
All Implemented Interfaces:
Serializable, Cloneable

public class PathNode
extends Object
implements Serializable, Cloneable

A PathNode is a node in the XNodePath. The path node specifies the selection of tree nodes on one subtree level. If the subtree is a sequence node (multiple nodes with same node name), a condition can be attached to the path node to select a subset of nodes from the sequence.

See Also:
Serialized Form

Constructor Summary
PathNode(String name)
          Create a path node.
PathNode(String name, ConditionExpression cond)
          Create a path node.
 
Method Summary
 Object clone()
          Returns a clone of this object.
 ConditionExpression getCondition()
          Get the path node condition.
 String getName()
          Get the path node name.
 XNode select(XNode root, VariableTable vars)
          Select a node from the tree that matches this node.
 void setCondition(ConditionExpression cond)
          Set the path node condition.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathNode

public PathNode(String name)
Create a path node.

Parameters:
name - tree node to select.

PathNode

public PathNode(String name,
                ConditionExpression cond)
Create a path node.

Parameters:
name - tree node to select.
cond - condition used to select nodes from the sequence.
Method Detail

getName

public String getName()
Get the path node name.


getCondition

public ConditionExpression getCondition()
Get the path node condition.


setCondition

public void setCondition(ConditionExpression cond)
Set the path node condition.


select

public XNode select(XNode root,
                    VariableTable vars)
             throws Exception
Select a node from the tree that matches this node.

Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
Returns a clone of this object.

Overrides:
clone in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.