com.ptc.core.foundation.vc.wip.common
Class IsWorkingCopyPrincipalValidator
java.lang.Object
com.ptc.core.meta.container.common.AbstractValidator
com.ptc.core.foundation.vc.wip.common.IsWorkingCopyPrincipalValidator
- All Implemented Interfaces:
- ActionValidator
public final class IsWorkingCopyPrincipalValidator
- extends AbstractValidator
Tests if the TypeInstace is working copy by the principal. Traps all
exceptions, returns false.
Supported API: true
Extendable: false
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
Supported API: true
- Specified by:
getFilter in interface ActionValidator- Specified by:
getFilter in class 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 com.ptc.core.meta.container.common.InvalidFunctionArgumentException
- Uses the IsWorkingCopyValidator, IsOwnedByValidator and IsLockedByValidator. If all three are true
returns true, else false. Default return value is true for any exceptions/errors.
Supported API: true
- Parameters:
the_attribute_container -
- Returns:
- Object
- Throws:
com.ptc.core.meta.container.common.InvalidFunctionArgumentException