Style Intelligence v12.0

inetsoft.uql.schema
Class XVariable

java.lang.Object
  extended by inetsoft.uql.schema.XVariable
All Implemented Interfaces:
inetsoft.util.XMLSerializable, Serializable, Cloneable
Direct Known Subclasses:
QueryVariable, UserVariable

public abstract class XVariable
extends Object
implements Serializable, Cloneable, inetsoft.util.XMLSerializable

A variable is a named expression. The name of a variable must be unique in a query. The variable can be either based on the result of a query, or entered by end users at runtime.

See Also:
Serialized Form

Constructor Summary
XVariable()
           
 
Method Summary
 Object clone()
          Returns a clone of this object.
abstract  Object evaluate(VariableTable vars)
          Evaulate the XVariable.
 String getName()
          Get the variable name.
 String getSource()
          Get the source name of this variable.
static XVariable parse(Element root)
          Parse a variable definition and create an instance of the variable.
protected  void parseAttributes(Element elem)
          Parse attributes.
 void setName(String name)
          Set the variable name.
 void setSource(String source)
          Set the source this variable belongs to.
protected  void writeAttributes(PrintWriter writer)
          Write attributes.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface inetsoft.util.XMLSerializable
parseXML, writeXML
 

Constructor Detail

XVariable

public XVariable()
Method Detail

parse

public static XVariable parse(Element root)
                       throws Exception
Parse a variable definition and create an instance of the variable.

Throws:
Exception

getName

public String getName()
Get the variable name.


setName

public void setName(String name)
Set the variable name.


setSource

public void setSource(String source)
Set the source this variable belongs to. The source is either a query or a data source name.

Parameters:
source - source name.

getSource

public String getSource()
Get the source name of this variable.


writeAttributes

protected void writeAttributes(PrintWriter writer)
Write attributes.

Parameters:
writer - the specified print writer.

parseAttributes

protected void parseAttributes(Element elem)
                        throws Exception
Parse attributes.

Parameters:
elem - the specified xml element.
Throws:
Exception

evaluate

public abstract Object evaluate(VariableTable vars)
Evaulate the XVariable.


clone

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

Overrides:
clone in class Object

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