com.ibm.commerce.component.bod

Class Expression

  • java.lang.Object
    • com.ibm.commerce.component.bod.Expression


  • public class Expression
    extends java.lang.Object
    Indicates how data in a noun should be handled. Each expression has a pair of VerbAction and VerbPath.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright
        See Also:
        Constant Field Values
      • CLASS_NAME

        public static final java.lang.String CLASS_NAME
        Name of this class
    • Constructor Detail

      • Expression

        public Expression(VerbAction anAction,
                          VerbPath aPath)
        Parameters:
        action - the action to take upon the data indicated by the given path.
        path - the path that represents data in a graph
      • Expression

        public Expression(VerbAction anAction,
                          VerbPathStep[] steps)
        Parameters:
        action - the action to take upon the data indicated by the given path.
        path - the path sequence of steps that represents a path
    • Method Detail

      • getAction

        public VerbAction getAction()
        Returns:
        the action of this expression
      • setAction

        public void setAction(VerbAction anAction)
        Sets the action of this expression
        Parameters:
        action - The path of this expression
      • getVerbPath

        public VerbPath getVerbPath()
        Returns:
        the path of this expression
      • setVerbPath

        public void setVerbPath(VerbPath aPath)
        Sets the path of this expression
        Parameters:
        aPath - the path to be set
      • hasPath

        public boolean hasPath(VerbPath pPath)
        Checks if an expression has a given path
        Parameters:
        path - the path to be searched
        Returns:
        true if the path is found. False otherwise
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string that describes the expression