|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.enterprise.part.common.FixedValueConstraint
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static IdentifierFactory |
identifierFactory
|
private static String |
LOGICAL_QUANTITY_AMOUNT
|
private static String |
LOGICAL_QUANTITY_UNIT
|
private static AttributeTypeIdentifier |
QUANTITY_AMOUNT_ATI
|
private static AttributeTypeIdentifier |
QUANTITY_UNIT_ATI
|
private static String |
RESOURCE
|
Constructor Summary | |
FixedValueConstraint()
|
Method Summary | |
private boolean |
checkQuantity(AttributeContainer the_attribute_container,
AttributeIdentifier the_ai,
Object the_attribute_content)
|
boolean |
isAddValid(AttributeContainer the_attribute_container,
AttributeIdentifier the_attribute_identifier,
Object the_attribute_content,
Serializable the_enforcement_rule_data)
Returns true if the_constraint allows the attribute and it's content to be added to the Attribute Container, otherwise, it returns false. |
boolean |
isDataTypeCompatable(String class_name)
Supported API: false |
boolean |
isRemoveValid(AttributeContainer the_attribute_container,
AttributeIdentifier the_attribute_identifier,
Object the_attribute_content,
Serializable the_enforcement_rule_data)
eturns true if the_constraint allows the attribute and it's content to be removed from the Attribute Container, otherwise, it returns false. |
boolean |
isUpdateValid(AttributeContainer the_attribute_container,
AttributeIdentifier the_attribute_identifier,
Object the_attribute_content,
Serializable the_enforcement_rule_data)
eturns true if the_constraint allows the attribute and it's content to be updated in the Attribute Container, otherwise, it returns false. |
boolean |
isValid(AttributeContainer the_attribute_container,
AttributeIdentifier the_attribute_identifier,
Object the_attribute_content,
Serializable the_enforcement_rule_data)
Returns true if the Attribute and its content do not vialate the contraint, otherwise it returns false. |
void |
modify(Constrainable the_constrainable,
AttributeContainer the_attribute_container,
AssociationIdentifier the_association_identifier,
AttributeTypeIdentifier the_attribute_type_identifier,
Serializable the_enforcement_rule_data)
Adds an appropriate constraint to Constraintable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String LOGICAL_QUANTITY_AMOUNT
private static final String LOGICAL_QUANTITY_UNIT
private static AttributeTypeIdentifier QUANTITY_AMOUNT_ATI
private static AttributeTypeIdentifier QUANTITY_UNIT_ATI
private static IdentifierFactory identifierFactory
Constructor Detail |
public FixedValueConstraint()
Method Detail |
public boolean isDataTypeCompatable(String class_name)
isDataTypeCompatable
in interface ConstraintContentRule
class_name
-
public boolean isAddValid(AttributeContainer the_attribute_container, AttributeIdentifier the_attribute_identifier, Object the_attribute_content, Serializable the_enforcement_rule_data)
isAddValid
in interface ConstraintEnforcementRule
the_attribute_container
- the_attribute_identifier
- the_attribute_content
- the_enforcement_rule_data
-
public boolean isUpdateValid(AttributeContainer the_attribute_container, AttributeIdentifier the_attribute_identifier, Object the_attribute_content, Serializable the_enforcement_rule_data)
isUpdateValid
in interface ConstraintEnforcementRule
the_attribute_container
- the_attribute_identifier
- the_attribute_content
- the_enforcement_rule_data
-
public boolean isRemoveValid(AttributeContainer the_attribute_container, AttributeIdentifier the_attribute_identifier, Object the_attribute_content, Serializable the_enforcement_rule_data)
isRemoveValid
in interface ConstraintEnforcementRule
the_attribute_container
- the_attribute_identifier
- the_attribute_content
- the_enforcement_rule_data
-
public boolean isValid(AttributeContainer the_attribute_container, AttributeIdentifier the_attribute_identifier, Object the_attribute_content, Serializable the_enforcement_rule_data)
isValid
in interface ConstraintEnforcementRule
the_attribute_container
- the_attribute_identifier
- the_attribute_content
- the_enforcement_rule_data
-
public void modify(Constrainable the_constrainable, AttributeContainer the_attribute_container, AssociationIdentifier the_association_identifier, AttributeTypeIdentifier the_attribute_type_identifier, Serializable the_enforcement_rule_data)
modify
in interface ConstraintEnforcementRule
the_constrainable
- the_attribute_container
- the_association_identifier
- the_attribute_type_identifier
- the_enforcement_rule_data
- private boolean checkQuantity(AttributeContainer the_attribute_container, AttributeIdentifier the_ai, Object the_attribute_content)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |