|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.erm.AbstractDataRef
inetsoft.uql.erm.AttributeRef
public class AttributeRef
Class holding a reference to an attribute and its parent entity.
| 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 | |
|---|---|
AttributeRef()
Create a new instance of AttributeRef. |
|
AttributeRef(DataRef ref)
Get create an attribute ref using the entity and attribute of the ref. |
|
AttributeRef(String attribute)
Create a reference to the specified attribute. |
|
AttributeRef(String entity,
String attribute)
Create a reference to the specified attribute. |
|
| Method Summary | |
|---|---|
Object |
clone()
Create a copy of this object. |
protected Object |
cloneObject()
Make a copy of this object in deep clone. |
String |
getAttribute()
Get the referenced attribute. |
String |
getCaption()
Get the caption. |
String |
getDataType()
Get the data type. |
String |
getDefaultFormula()
Get the default formula. |
String |
getEntity()
Get the attribute's parent entity. |
int |
getRefType()
Getter of ref type. |
boolean |
isExpression()
Check if the attribute is an expression. |
protected void |
parseAttributes(Element tag)
Read in the definition of this object from an XML tag. |
void |
setCaption(String caption)
Set the caption. |
void |
setDataType(String dtype)
Set the data type. |
void |
setDefaultFormula(String formula)
Set the default formula. |
void |
setRefType(int rtype)
Setter of ref type. |
String |
toString()
Get a textual representation of this object. |
String |
toView()
Get the view representation of this field. |
protected void |
writeAttributes(PrintWriter writer)
Write an XML element representation of this object. |
protected void |
writeAttributes2(DataOutputStream dos)
Write the attributes of this object. |
| Methods inherited from class inetsoft.uql.erm.AbstractDataRef |
|---|
addr, compareTo, createDataRef, equals, equals, getAttributes, getClass, getEntities, getName, getTypeNode, hashCode, isEmpty, isEntityBlank, parseCDATA, parseContents, parseData, parseXML, writeCDATA, writeCDATA2, writeContents, writeContents2, writeData, writeXML |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeRef()
public AttributeRef(String attribute)
attribute - the name of the attribute
public AttributeRef(String entity,
String attribute)
entity - the name of the attribute's parent entityattribute - the name of the attributepublic AttributeRef(DataRef ref)
| Method Detail |
|---|
public void setRefType(int rtype)
rtype - the type of the ref, NONE, DIMENSION or MEASURE.public int getRefType()
public String getDefaultFormula()
getDefaultFormula in interface DataRefgetDefaultFormula in class AbstractDataRefpublic void setDefaultFormula(String formula)
public boolean isExpression()
public String getEntity()
public String getCaption()
public void setCaption(String caption)
caption - the specified caption.public String getAttribute()
public String getDataType()
getDataType in interface DataRefgetDataType in class AbstractDataRefpublic void setDataType(String dtype)
dtype - the data type defined in XSchema.public String toString()
toString in class AbstractDataRefprotected void writeAttributes(PrintWriter writer)
writeAttributes in class AbstractDataRefwriter - the output stream to which to write the XML dataprotected void writeAttributes2(DataOutputStream dos)
writeAttributes2 in class AbstractDataRefdos - the output stream to which to write the OutputStream data.
protected void parseAttributes(Element tag)
throws Exception
parseAttributes in class AbstractDataReftag - the XML Element representing this object
Exceptionpublic Object clone()
clone in interface DataRefclone in class AbstractDataRefpublic String toView()
protected Object cloneObject()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||