Style Intelligence v12.0

inetsoft.uql.asset
Class AliasDataRef

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

public class AliasDataRef
extends ExpressionRef
implements AssetObject

AliasDataRef represents an alias data ref.

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
AliasDataRef()
          Constructor.
AliasDataRef(String name, DataRef ref)
          Constructor.
 
Method Summary
 Object clone()
          Clone the object.
 String getAttribute()
          Get the referenced attribute.
 Enumeration getAttributes()
          Get a list of all attributes that are referenced by this object.
 DataRef getDataRef()
          Get the contained data ref.
 String getDataType()
          Get the data type.
 String getExpression()
          Get the SQL expression of this reference.
 String getName()
          Get the name of this reference.
 String getScriptExpression()
          Get the script expression of this reference.
 boolean isExpressionEditable()
          Check if expression is editable.
 boolean isSQL()
          Check if this expression is sql expression.
protected  void parseContents(Element tag)
          Read in the contents of this object from an xml tag.
 void setDataRef(DataRef ref)
          Set the data ref.
protected  void writeContents(PrintWriter writer)
          Write the contents of this object.
 
Methods inherited from class inetsoft.uql.erm.ExpressionRef
equalsContent, getCalcAttributes, getDataSource, getDBType, getEntities, getEntity, getRefType, getScriptExpression, getSQLExpression, isExpression, isOnAggregate, isVirtual, parseAttributes, parseCDATA, setDataSource, setDBType, setEntity, setExpression, setName, setOnAggregate, setRefType, setVirtual, toString, toView, writeAttributes, writeAttributes2, writeCDATA, writeCDATA2
 
Methods inherited from class inetsoft.uql.erm.AbstractDataRef
addr, compareTo, createDataRef, equals, equals, getClass, getDefaultFormula, getTypeNode, hashCode, isEmpty, isEntityBlank, parseData, parseXML, writeContents2, writeData, writeXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface inetsoft.util.XMLSerializable
parseXML, writeXML
 

Constructor Detail

AliasDataRef

public AliasDataRef()
Constructor.


AliasDataRef

public AliasDataRef(String name,
                    DataRef ref)
Constructor.

Method Detail

getAttribute

public String getAttribute()
Get the referenced attribute.

Specified by:
getAttribute in interface DataRef
Overrides:
getAttribute in class ExpressionRef
Returns:
the name of the attribute.

getDataRef

public DataRef getDataRef()
Get the contained data ref.

Returns:
the contained data ref.

setDataRef

public void setDataRef(DataRef ref)
Set the data ref.

Parameters:
ref - the specified data ref.

getDataType

public String getDataType()
Get the data type.

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

writeContents

protected void writeContents(PrintWriter writer)
Write the contents of this object.

Overrides:
writeContents in class AbstractDataRef
Parameters:
writer - the output stream to which to write the XML data.

parseContents

protected void parseContents(Element tag)
                      throws Exception
Read in the contents of this object from an xml tag.

Overrides:
parseContents in class AbstractDataRef
Parameters:
tag - the specified xml element.
Throws:
Exception

getName

public String getName()
Get the name of this reference.

Specified by:
getName in interface DataRef
Overrides:
getName in class ExpressionRef
Returns:
the reference name.

getExpression

public String getExpression()
Get the SQL expression of this reference.

Overrides:
getExpression in class ExpressionRef
Returns:
a SQL expression.

getScriptExpression

public String getScriptExpression()
Get the script expression of this reference.

Overrides:
getScriptExpression in class ExpressionRef
Returns:
a script expression.

isExpressionEditable

public boolean isExpressionEditable()
Check if expression is editable.

Overrides:
isExpressionEditable in class ExpressionRef
Returns:
true if editable, false otherwise.

isSQL

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

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

clone

public Object clone()
Clone the object.

Specified by:
clone in interface AssetObject
Specified by:
clone in interface DataRef
Overrides:
clone in class AbstractDataRef
Returns:
the cloned object.

getAttributes

public Enumeration getAttributes()
Get a list of all attributes that are referenced by this object.

Specified by:
getAttributes in interface DataRef
Overrides:
getAttributes in class ExpressionRef
Returns:
an Enumeration containing AttributeRef objects.

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