Class ValidatorHelper

java.lang.Object
com.ptc.core.meta.container.common.ValidatorHelper

public class ValidatorHelper extends Object
The ValidatorHelper is an application independent class that needs to create application-specific classes. It does so indirectly through an instance of the ValidatorFactory class.

Supported API: true

Extendable: false
  • Method Details

    • getValidatorFilter

      public static AttributeContainerSpec getValidatorFilter(String class_name, TypeIdentifier type_identifier) throws ClassNotFoundException
      Returns an AttributeTypeIdentifier array with all the AttributeTypeIdentifiers the validator depends upon.

      Supported API: true
      Parameters:
      class_name - validator.class.getName() The path of the validator object the factory is to create.
      type_identifier - Used to get the DefinitionIdentifier for constructing the AttributeTypeIdentifier
      Returns:
      AttributeContainerSpec
      Throws:
      ClassNotFoundException
    • getValidator

      public static ActionValidator getValidator(String class_name) throws ClassNotFoundException
      Returns an ActionValidator interface for the validator specified in the parameter list.

      Supported API: true
      Parameters:
      class_name - class_name validator.class.getName() The path of the validator object the factory is to create.
      Returns:
      ActionValidator
      Throws:
      ClassNotFoundException