|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iquery.metadata.expr.StringExpression
public class StringExpression
Models expressions that are not modeled in more detail by other classes. In this sense, it is the "catch-all" model for expressions not modeled otherwise. For example, the scalar expression A*B can be modeled either with the FunctionCall class or with this class. (Note that a similar A>B is modeled by the SimpleConditionalExpression_Comparison class.) As we add more detailed modeling of our expressions, use of this class may diminish.
Field Summary |
---|
Fields inherited from interface com.sas.iquery.metadata.business.ModelItem |
---|
EVENT_OBJECT_PROPERTY_CHANGED |
Fields inherited from interface com.sas.iquery.metadata.business.Base |
---|
EVENT_OBJECT_DEFINITION_CHANGED |
Constructor Summary | |
---|---|
StringExpression()
|
Method Summary | |
---|---|
boolean |
containsAggregateFunction(ServerProperties serverProperties)
Checks to see if the text contains one of the server's aggregate functions |
int |
getExpressionType()
Returns an expression type from the values in class ExpressionTypes |
java.lang.String |
getText()
Returns the text for this expression. |
boolean |
isCalculatedItem()
Checks whether a StringExpression is a calculated item |
void |
setExpressionType(int expressionType)
Sets the expression type with a value from class ExpressionTypes |
void |
setText(java.lang.String text)
Sets the expression text to the given string |
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelResourceReferencer |
---|
getResources |
Methods inherited from interface com.sas.iquery.metadata.PropertyChangeListenee |
---|
addListener, getListeners, removeListener |
Methods inherited from interface com.sas.iquery.metadata.business.UsabilityInterface |
---|
getReasonsUnusable, isUsableInQuery |
Constructor Detail |
---|
public StringExpression()
Method Detail |
---|
public java.lang.String getText() throws MetadataException
MetadataException
public void setText(java.lang.String text)
text
- the text string to set on this expressionpublic int getExpressionType()
getExpressionType
in interface ExpressionInterface
public void setExpressionType(int expressionType)
expressionType
- the given expression type to setpublic boolean containsAggregateFunction(ServerProperties serverProperties) throws MetadataException
serverProperties
- - ServerProperties containing a server's function lists
MetadataException
public boolean isCalculatedItem()
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |