|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.iquery.metadata.expr.ConstantExpression
public class ConstantExpression
Specifies a constant value modeled as a string with an expression type. Since a ConstantExpression can contain a MissingValue, users of this class need to check if its value is a MissingValue before safely converting the value of a ConstantExpression to a number.
isMissing()| Field Summary | |
|---|---|
static java.lang.String |
EVENT_EXPRESSION_TYPE_CHANGED
The event thrown when the expression type has changed values. |
static java.lang.String |
EVENT_VALUE_CHANGED
The event thrown when the expression value has changed values. |
| 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 | |
|---|---|
ConstantExpression()
|
|
ConstantExpression(java.lang.String value,
int type)
Creates an ConstantExpression with the specified value and type. |
|
| Method Summary | |
|---|---|
int |
getExpressionType()
Return the integer form of the expression type. |
java.lang.String |
getValue()
Return value of this constant in string form. |
boolean |
isMissing()
Checks if this ConstantExpression's value is a SAS MissingValue |
void |
setExpressionType(int type)
Sets the expression type with a value from class ExpressionTypes |
void |
setValue(java.lang.String value)
Sets the value of this constant as a String object |
| 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 |
| Field Detail |
|---|
public static final java.lang.String EVENT_EXPRESSION_TYPE_CHANGED
public static final java.lang.String EVENT_VALUE_CHANGED
| Constructor Detail |
|---|
public ConstantExpression()
public ConstantExpression(java.lang.String value,
int type)
ConstantExpression with the specified value and type.
value - the value of the expressiontype - the expression type with a value from class ExpressionTypes| Method Detail |
|---|
public int getExpressionType()
ExpressionInterface
getExpressionType in interface ExpressionInterfacepublic void setExpressionType(int type)
setExpressionType in interface com.sas.iquery.metadata.expr.ConstantExpressionInterfacetype - a valid expression typeExpressionTypespublic java.lang.String getValue()
ConstantExpressionInterface
getValue in interface com.sas.iquery.metadata.expr.ConstantExpressionInterfaceisMissing()public void setValue(java.lang.String value)
setValue in interface com.sas.iquery.metadata.expr.ConstantExpressionInterfacevalue - string to use as the constantpublic boolean isMissing()
QueryMissingValues,
getValue()
|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||