com.ptc.core.meta.container.common
Class ValidatorHelper

java.lang.Object
  extended by 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 Summary
static ActionValidator getValidator(String class_name)
          Returns an ActionValidator interface for the validator specified in the parameter list.
static AttributeContainerSpec getValidatorFilter(String class_name, TypeIdentifier type_identifier)
          Returns an AttributeTypeIdentifier array with all the AttributeTypeIdentifiers the validator depends upon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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