Class IsReviseAllowedValidator

java.lang.Object
com.ptc.core.meta.container.common.AbstractValidator
com.ptc.core.foundation.vc.common.IsReviseAllowedValidator
All Implemented Interfaces:
ActionValidator

public final class IsReviseAllowedValidator extends com.ptc.core.meta.container.common.AbstractValidator
Determines if the TypeInstance of a wt.vc.Versioned Object can be revised. Traps all exceptions and returns false.

Supported API: true

Extendable: false
  • Method Details

    • getFilter

      public AttributeContainerSpec getFilter(AttributeContainerSpec the_filter, TypeIdentifier type_identifier)
      Will add the filter this validator needs to the supplied parameter and return that parameter. TypeIdentifier can be null, will create a TypeIdentifier for Workable

      Supported API: true
      Specified by:
      getFilter in interface ActionValidator
      Specified by:
      getFilter in class com.ptc.core.meta.container.common.AbstractValidator
      Parameters:
      the_filter -
      type_identifier - Used to get the DefinitionIdentifier for constructing the AttributeTypeIdentifier
      Returns:
      AttributeContainerSpec
    • calculate

      protected Object calculate(AttributeContainer the_attribute_container) throws InvalidFunctionArgumentException
      Uses the IsWorkingCopyValidator to determine if the AttributeContainer's TypeInstance is a working copy. Returns false if working copy, else true. Default return value is true for any exceptions/errors.

      Supported API: true
      Specified by:
      calculate in class com.ptc.core.meta.container.common.AbstractValidator
      Parameters:
      the_attribute_container -
      Returns:
      Object
      Throws:
      InvalidFunctionArgumentException