Class VariantNameGenerator

java.lang.Object
wt.generic.rule.VariantNameGenerator
All Implemented Interfaces:
RuleAlgorithm

public class VariantNameGenerator extends Object implements RuleAlgorithm
An algorithm that generates a Name for the Variant created using the Configurable (Generic) part name as it's prefix. This is a very specific implementation for variant creation. The algorithm expects the prefix for the name to be in the MethodContext. This class should be strictly used for Object Initialization Rules

Supported API: true

Extendable: false
  • Method Details

    • calculate

      public Object calculate(Object[] args, WTContainerRef container) throws WTException
      Calculate the name of the next variant of the current configurable (generic) part.

      Supported API: true
      Specified by:
      calculate in interface RuleAlgorithm
      Parameters:
      args - the arguments for the algorithm
      container - the container to use for object lookups
      Returns:
      Object
      Throws:
      WTException