Class ViewConstraintFactory
java.lang.Object
com.ptc.core.meta.type.runtime.server.impl.AbstractModelBasedConstraintFactory
com.ptc.core.foundation.vc.views.server.impl.ViewConstraintFactory
- All Implemented Interfaces:
OperationIdentifierConstants,ConstraintClassNameConstants,com.ptc.core.meta.container.common.ConstraintFactory,Serializable,wt.fc._NetFactor,NetFactor
public final class ViewConstraintFactory
extends com.ptc.core.meta.type.runtime.server.impl.AbstractModelBasedConstraintFactory
implements Serializable
Attribute specific constraint factory. If the attributes represented
by the logical identifiers "view" or "view.id" are in the passed in AttributeTypeIdentifier
array then constraints will be added. The following constraints are
added based on the passed in OperationIdentifier (operation/constraints):
search - DISCRETE_SET_CONSTRAINT
create - DISCRETE_SET_CONSTRAINT
update - IMMUTABLE_CONSTRAINT
Use the newViewConstraintFactory static factory method(s),
not the ViewConstraintFactory constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from class com.ptc.core.meta.type.runtime.server.impl.AbstractModelBasedConstraintFactory
factory, nonPropertyDescriptorAttributeCacheFields inherited from interface com.ptc.core.meta.container.common.ConstraintClassNameConstants
CONSTRAINT_MUTABILITY_RULE, CONTAINER_CONSTRAINT_BINDING_RULE, DISCRETE_SET_CONSTRAINT, FIXED_VALUE_CONSTRAINT, HIDDEN_CONSTRAINT, HIERARCHICAL_CONSTRAINT_BINDING_RULE, IMMUTABLE_CONSTRAINT, OCCURRENCABLE_UNIT_CONSTRAINT, PART_NUMBER_SERVER_ASSIGNED_CONSTRAINT, QUANTITY_CONSTRAINT_BINDING_RULE, RANGE_CONSTRAINT, REQUIRED_CONSTRAINT, SERVER_ASSIGNED_CONSTRAINT, SIGNIFICANT_FIGURES_ANALOG_SET_CONSTRAINT, SINGLE_ATTRIBUTE_CONSTRAINT_BINDING_RULE, SINGLE_VALUED_CONSTRAINT, STRING_BYTE_LENGTH_CONSTRAINT, STRING_FORMAT_CONSTRAINT, STRING_LENGTH_CONSTRAINT, SUGGESTED_VALUES_CONSTRAINT, UNIQUE_AMONG_SIBLINGS_CONSTRAINT, UPPER_CASE_CONSTRAINT, VALUE_HIDDEN_CONSTRAINT, WILDCARD_CONSTRAINTFields inherited from interface com.ptc.core.meta.container.common.ConstraintFactory
SYSTEMFields inherited from interface com.ptc.core.meta.common.OperationIdentifierConstants
CHANGE_CLASSIFICATION, CHANGE_FOLDER, CHANGE_IDENTIFIER, CHANGE_LIFE_CYCLE, CHANGE_LIFE_CYCLE_STATE, CHANGE_PROJECT, CHANGE_VIEW, COPY, CREATE, CREATE_SKIP_OIRS, DELETE, OIR, REVISE, SEARCH, UPDATE, VIEW -
Method Summary
Modifier and TypeMethodDescriptionvoidconstrain(AttributeContainer the_attribute_container, AttributeTypeIdentifier[] the_filter, OperationIdentifier the_operation_identifier) Update the passed in AttributeContainer's ConstraintContainer based on the passed in OperationIdentifier and AttributeTypeIdentifier array.Methods inherited from class com.ptc.core.meta.type.runtime.server.impl.AbstractModelBasedConstraintFactory
constrain, constrain, constrain, getAttrTypeIDFromLogicalForm, getClassInfo, getConstraintIdentifier, getEnumeratedSet, getModeledType, getNewConstraintContainer, getNonPropertyDescriptorCacheKey, getPropertyDescriptor, getPropertyDescriptor, initialize, isConstraintFactorySpecificAttribute, isConstraintFactorySpecificAttribute, obtainFromCovertProperty, toString, validateConstraintContainer
-
Method Details
-
constrain
public void constrain(AttributeContainer the_attribute_container, AttributeTypeIdentifier[] the_filter, OperationIdentifier the_operation_identifier) Update the passed in AttributeContainer's ConstraintContainer based on the passed in OperationIdentifier and AttributeTypeIdentifier array.
Supported API: true- Specified by:
constrainin interfacecom.ptc.core.meta.container.common.ConstraintFactory- Parameters:
the_attribute_container-the_filter-the_operation_identifier-
-