public class CognosUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CognosUtil.CognosActionLogXmlTransformer
Transformer that wraps Cognos Object types with refobj elements
|
static class |
CognosUtil.CognosObjectCombinerExpressionHelper
Hackish Helper that takes nodes like, "[Data Source View]", and reconstucts them back into a single node.
|
static class |
CognosUtil.CognosObjectTypeExpressionHelper
Parser Helper that converts "[OBJ]" nodes into a CognosObject type
|
static class |
CognosUtil.CognosReferenceExpressionHelper
Parser Helper than takes multiple "[A].[B].[C]" nodes and combines them into a single node, with type CognosObject
|
Modifier and Type | Field and Description |
---|---|
static int |
Node_Type_CognosObject |
Constructor and Description |
---|
CognosUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
CDATA(java.lang.String in)
Wraps an Xml String with CDATA
|
static Node |
parseCognosExpression(java.lang.String cognosExpression)
Parse a Cognos Expression, such as
|
static java.lang.String |
parseComplexExpression(java.lang.String childName,
java.lang.String parentName,
java.lang.String relationshipName,
java.lang.String whereClause,
java.lang.String dataSourceViewNamespace,
java.lang.String databaseType)
Convenience method that parses a MAX RELATIOHSIP where clause and converts it to a cognos XML Node, wrapped in a CDATA
element.
|
static java.lang.String |
toCognosActionLogXml(Node parsedExpressions)
Transform the parsed cognos expression into a cognos xml node with refobj references
|
static java.lang.String |
toCognosActionLogXml(java.lang.String expr)
Convenience method that parses a cognos exression and returns it as a cognos xml string
|
public static Node parseCognosExpression(java.lang.String cognosExpression) throws MXException
[Data Source View].[ASSET].[FAILURECODE]=[Data Source View].[FAILURELIST].[FAILURECODE]AND[Data Source View].[ASSET].[ORGID]=[Data Source View].[FAILURELIST].[ORGID] and [Data Source View].[FAILURELIST].[PARENT] is null
cognosExpression
- MXException
public static java.lang.String toCognosActionLogXml(Node parsedExpressions)
parsedExpressions
- public static java.lang.String toCognosActionLogXml(java.lang.String expr) throws MXException
expr
- MXException
public static java.lang.String CDATA(java.lang.String in)
in
- public static java.lang.String parseComplexExpression(java.lang.String childName, java.lang.String parentName, java.lang.String relationshipName, java.lang.String whereClause, java.lang.String dataSourceViewNamespace, java.lang.String databaseType) throws MXException, CognosTransformationException
assetnum = :assetnumand the resulting cognos relationship would look like
<![CDATA[<refob>[Data Source View].[matusetrans].[assetnum]</refob> = <refob>[Data Source View].[asset].[assetnum]</refob>]]>
childName
- parentName
- relationshipName
- whereClause
- databaseType
- dataSourceViewNamespace
- MXException
CognosTransformationException