Style Intelligence v12.0

inetsoft.uql.erm
Class ExprAttributeRef

java.lang.Object
  extended by inetsoft.uql.erm.AbstractDataRef
      extended by inetsoft.uql.erm.ExpressionRef
          extended by inetsoft.uql.erm.ExprAttributeRef
All Implemented Interfaces:
DataRef, inetsoft.util.DataSerializable, inetsoft.util.XMLSerializable, Serializable, Cloneable, Comparable

public class ExprAttributeRef
extends ExpressionRef

Specialization of ExpressionRef that is used internally to reference ExpressionAttribute objects.

Since:
8.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class inetsoft.uql.erm.ExpressionRef
ExpressionRef.AttributeEnumeration
 
Field Summary
 
Fields inherited from class inetsoft.uql.erm.AbstractDataRef
chash, cname
 
Fields inherited from interface inetsoft.uql.erm.DataRef
AGG_CALC, CUBE, CUBE_DIMENSION, CUBE_MEASURE, CUBE_MODEL_DIMENSION, CUBE_MODEL_TIME_DIMENSION, CUBE_TIME_DIMENSION, DIMENSION, MEASURE, MODEL, NONE, TIME
 
Constructor Summary
ExprAttributeRef()
          Creates an empty attribute reference.
ExprAttributeRef(ExpressionAttribute attr)
          Creates a new instance of ExprAttributeRef.
ExprAttributeRef(String name)
          Creates a new instance of ExprAttributeRef.
ExprAttributeRef(String name, String expr)
          Creates a new instance of ExprAttributeRef.
 
Method Summary
 String getDataType()
          Get the data type of the field.
 boolean isSQL()
          Check if this expression is sql expression.
protected  void parseAttributes(Element tag)
          Read in the definition of this object from an XML tag.
 void setDataType(String dataType)
          Set the data type of the field.
protected  void writeAttributes(PrintWriter writer)
          Write an XML element representation of this object.
 
Methods inherited from class inetsoft.uql.erm.ExpressionRef
equalsContent, getAttribute, getAttributes, getCalcAttributes, getDataSource, getDBType, getEntities, getEntity, getExpression, getName, getRefType, getScriptExpression, getScriptExpression, getSQLExpression, isExpression, isExpressionEditable, isOnAggregate, isVirtual, parseCDATA, setDataSource, setDBType, setEntity, setExpression, setName, setOnAggregate, setRefType, setVirtual, toString, toView, writeAttributes2, writeCDATA, writeCDATA2
 
Methods inherited from class inetsoft.uql.erm.AbstractDataRef
addr, clone, compareTo, createDataRef, equals, equals, getClass, getDefaultFormula, getTypeNode, hashCode, isEmpty, isEntityBlank, parseContents, parseData, parseXML, writeContents, writeContents2, writeData, writeXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExprAttributeRef

public ExprAttributeRef()
Creates an empty attribute reference.


ExprAttributeRef

public ExprAttributeRef(String name)
Creates a new instance of ExprAttributeRef.

Parameters:
name - the name of the attribute.

ExprAttributeRef

public ExprAttributeRef(String name,
                        String expr)
Creates a new instance of ExprAttributeRef.

Parameters:
name - the name of the attribute.
expr - the SQL expression.

ExprAttributeRef

public ExprAttributeRef(ExpressionAttribute attr)
Creates a new instance of ExprAttributeRef.

Parameters:
attr - the expression attribute to be referenced.
Method Detail

setDataType

public void setDataType(String dataType)
Set the data type of the field.

Parameters:
dataType - the specified data type defined in XSchema

getDataType

public String getDataType()
Get the data type of the field.

Specified by:
getDataType in interface DataRef
Overrides:
getDataType in class AbstractDataRef
Returns:
the data type defined in XSchema

isSQL

public boolean isSQL()
Check if this expression is sql expression.

Overrides:
isSQL in class ExpressionRef
Returns:
true if is, false otherwise

writeAttributes

protected void writeAttributes(PrintWriter writer)
Write an XML element representation of this object.

Overrides:
writeAttributes in class ExpressionRef
Parameters:
writer - the output stream to which to write the XML data

parseAttributes

protected void parseAttributes(Element tag)
                        throws Exception
Read in the definition of this object from an XML tag.

Overrides:
parseAttributes in class ExpressionRef
Parameters:
tag - the XML Element representing this object
Throws:
Exception

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