|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.iquery.metadata.expr.StringExpressionUtil
@SASScope(value="ALL") @SubjectToChange public abstract class StringExpressionUtil
Generates the resource-aware ExpressionInterface from string text. The ExpressionInterface thus generated is intended to be used only in a resource aware expression context. This class generates resource aware string representations for various ExpressionInterface implementations. Note: a special "ResourceIdentification" syntax is used to represent Resources in expression strings. See the package.html for more details on how this feature works.
| Constructor Summary | |
|---|---|
StringExpressionUtil()
|
|
| Method Summary | |
|---|---|
static StringExpressionUtil |
getInstance()
Get an StringExpressionUtil instance |
abstract java.lang.String |
getText(ExpressionInterface expr,
ResourceScope scope,
BusinessModel businessModel)
Get the Expression String |
abstract ExpressionInterface |
newExpression(BusinessModel businessModel,
java.lang.String expr,
int expressionType,
ResourceScope scope)
Create a new ExpressionInterface. |
| Constructor Detail |
|---|
public StringExpressionUtil()
| Method Detail |
|---|
public static StringExpressionUtil getInstance()
public abstract ExpressionInterface newExpression(BusinessModel businessModel,
java.lang.String expr,
int expressionType,
ResourceScope scope)
throws MetadataException
businessModel - the BusinessModel which will be used as the context
to do resource identificationexpr - the String expressionexpressionType - a valid expression typescope - the ResourceScope
MetadataException - on errors
Note: In addition to MetadataException the thrown exception
may be one of the following subtypesExpressionTypes,
ResourceScope,
ResourceIdentificationException,
ParseExpressionException
public abstract java.lang.String getText(ExpressionInterface expr,
ResourceScope scope,
BusinessModel businessModel)
throws MetadataException
expr - the expression to be converted to a Stringscope - the ResourceScope
if the scope is both business and physical,
physical resources will be qualified fully
if there are potential name conflicts with business items
for example, physical::<<table.column>>businessModel - the BusinessModel (may be null)
if BusinessModel is null and scope is both physical and business
physical items will always be qualified with physical::
MetadataException - on metadata errors -
Note: in addition to MetadataException, the thrown exception
may be a ResourceIdentificationException subtype.
ResourceIdentificationException - Note: if the scope is BUSINESS and a physical expression is passed or if
the scope is PHYSICAL and a business expression is passed in, this
exception is thrown. This exception is also thrown if an unsupported
expression is passed in to this method.
|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||