(self, policy_name, variable, name)
return self.TransformString(variable, name, policy)
Apply a naming policy to a string.

    Maps the policy name to the tranformation class and applies it.

    Args:
      policy_name: (str) The name of a policy.
      variable: (CodeObject) an element which may appear in the templates,
          but typically a Property.
      name: (str) The Discovery name of the variable.
    Returns:
      (str) The input string transformed as specified by the policy.
Apply a naming policy to a string.
Apply a naming policy to a string .
def ApplyPolicy(self, policy_name, variable, name):
    """Apply a naming policy to a string.

    Maps the policy name to the tranformation class and applies it.

    Args:
      policy_name: (str) The name of a policy.
      variable: (CodeObject) an element which may appear in the templates,
          but typically a Property.
      name: (str) The Discovery name of the variable.
    Returns:
      (str) The input string transformed as specified by the policy.
    """
    policy = self._policies_by_name[policy_name]
    return self.TransformString(variable, name, policy)
def ApplyPolicy ( self , policy_name , variable , name ) : policy = self . _policies_by_name [ policy_name ] return self . TransformString ( variable , name , policy )