com.ibm.tivoli.maximo.report.expr

Class ColumnNameTransformer

  • java.lang.Object
    • com.ibm.tivoli.maximo.report.expr.ColumnNameTransformer
  • All Implemented Interfaces:
    ToStringVisitor.Transformer


    public class ColumnNameTransformer
    extends java.lang.Object
    implements ToStringVisitor.Transformer
    A Column Name transformer transforms a MBO Field Name into a Database Table Column, adding an optional Qualifier in the process, for Nodes that are Literal Nodes and if the Node's value is a field in the given ObjectName (MBO). Transformers are using the process of converting a Parsed Node tree back into a String representation.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ColumnNameTransformer(java.lang.String objectName, java.util.Set validAttributes, java.lang.String qualifier) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String transform(Node n)
      If this returns a NON NULL value, then this value will replace the Node's .value value, when writing it into the String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColumnNameTransformer

        public ColumnNameTransformer(java.lang.String objectName,
                                     java.util.Set validAttributes,
                                     java.lang.String qualifier)
        Parameters:
        objectName - MBO Object name
        validAttributes - Valid attributes for the given Object name
        qualifier - optional qualifier to use as a prefix when converting the fieldname into a table column name
    • Method Detail

      • transform

        public java.lang.String transform(Node n)
        Description copied from interface: ToStringVisitor.Transformer
        If this returns a NON NULL value, then this value will replace the Node's .value value, when writing it into the String. This MUST return null, if you want to use node's value.
        Specified by:
        transform in interface ToStringVisitor.Transformer
        Parameters:
        n - Node being transformed
        Returns:
        new value or NULL if you want to use the node default value