Class SingleSelectValidator
java.lang.Object
com.ptc.core.meta.container.common.AbstractValidator
com.ptc.core.foundation.generic.common.SingleSelectValidator
- All Implemented Interfaces:
ActionValidator
public final class SingleSelectValidator
extends com.ptc.core.meta.container.common.AbstractValidator
Always returns true. It is envisioned that this will be used to define
in xml if a UI can have SingleSelect
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionprotected Objectcalculate(AttributeContainer the_attribute_container) Returns true for enabling single selection in UI
Supported API: truegetFilter(AttributeContainerSpec the_filter, TypeIdentifier type_identifier) This API is implemented by the concrete validators.
-
Method Details
-
getFilter
public AttributeContainerSpec getFilter(AttributeContainerSpec the_filter, TypeIdentifier type_identifier) This API is implemented by the concrete validators.
Supported API: true- Specified by:
getFilterin interfaceActionValidator- Specified by:
getFilterin classcom.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 Returns true for enabling single selection in UI
Supported API: true- Specified by:
calculatein classcom.ptc.core.meta.container.common.AbstractValidator- Parameters:
the_attribute_container-- Returns:
- Object
- Throws:
InvalidFunctionArgumentException
-