|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.util.EPMConstraintValidator
Field Summary | |
private Hashtable |
bindingRuleCache
|
private static String |
CLASSNAME
|
static boolean |
DEBUG
|
private Hashtable |
enforcementRuleCache
|
private static DebugWriter |
LOG
|
private static String |
RESOURCE
|
private static EPMConstraintValidator |
singleton
|
Constructor Summary | |
private |
EPMConstraintValidator()
|
Method Summary | |
private ConstraintBindingRule |
getBindingRule(String className)
|
private ConstraintEnforcementRule |
getEnforcementRule(String className)
|
static EPMConstraintValidator |
getInstance()
|
private ConstraintException[] |
internalIsValid(AttributeContainer the_attribute_container,
ConstraintContainer the_constraint_container,
AttributeIdentifier the_attribute_identifier,
Object the_attribute_content)
|
private ConstraintException[] |
internalIsValueRequiredValid(AttributeContainer the_attribute_container,
ConstraintContainer the_constraint_container)
|
void |
isAddValid(AttributeContainer the_attribute_container,
ConstraintContainer the_constraint_container,
AttributeIdentifier the_attribute_identifier,
Object the_attribute_content)
Based on the constraints in the_constraint_container, determines if the attribute_identifier and the attribute_identifier's content can be added to the_attribute_container. |
void |
isRemoveValid(AttributeContainer the_attribute_container,
ConstraintContainer the_constraint_container,
AttributeIdentifier the_attribute_identifier,
Object the_attribute_content)
Based on the constraints in the_constraint_container, determines if the attribute_identifier and the attribute_identifier's content can be removed from the_attribute_container. |
void |
isUpdateValid(AttributeContainer the_attribute_container,
ConstraintContainer the_constraint_container,
AttributeIdentifier the_attribute_identifier,
Object the_attribute_content)
Based on the constraints in the_constraint_container, determines if the attribute_identifier and the attribute_identifier's content can be updated in the_attribute_container. |
void |
isValid(AttributeContainer the_attribute_container,
ConstraintContainer the_constraint_container)
Based on the constraints in the_constraint_container, determines if all the attributes and their content is considered valid in the_attribute_container. |
void |
isValid(AttributeContainer the_attribute_container,
ConstraintContainer the_constraint_container,
AttributeIdentifier the_attribute_identifier,
Object the_attribute_content)
Based on the constraints in the_constraint_container, determines if the attribute_identifier, and it's content is considered valid in the_attribute_container. |
void |
modify(Constrainable the_constrainable,
AttributeContainer the_attribute_container,
AssociationIdentifier the_association_identifier,
AttributeTypeIdentifier the_attribute_type_identifier,
ConstraintContainer constraint_container)
Adds all the constraints in the constraint_container, for the given attribute_type_identifier, to the Constrainable. |
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 EPMConstraintValidator singleton
private Hashtable bindingRuleCache
private Hashtable enforcementRuleCache
public static final boolean DEBUG
private static final DebugWriter LOG
Constructor Detail |
private EPMConstraintValidator()
Method Detail |
public static EPMConstraintValidator getInstance()
public void isAddValid(AttributeContainer the_attribute_container, ConstraintContainer the_constraint_container, AttributeIdentifier the_attribute_identifier, Object the_attribute_content) throws ConstraintException
isAddValid
in interface ConstraintValidator
the_attribute_container
- the_constraint_container
- the_attribute_identifier
- the_attribute_content
-
ConstraintException
public void isUpdateValid(AttributeContainer the_attribute_container, ConstraintContainer the_constraint_container, AttributeIdentifier the_attribute_identifier, Object the_attribute_content) throws ConstraintException
isUpdateValid
in interface ConstraintValidator
the_attribute_container
- the_constraint_container
- the_attribute_identifier
- the_attribute_content
-
ConstraintException
public void isRemoveValid(AttributeContainer the_attribute_container, ConstraintContainer the_constraint_container, AttributeIdentifier the_attribute_identifier, Object the_attribute_content) throws ConstraintException
isRemoveValid
in interface ConstraintValidator
the_attribute_container
- the_constraint_container
- the_attribute_identifier
- the_attribute_content
-
ConstraintException
public void isValid(AttributeContainer the_attribute_container, ConstraintContainer the_constraint_container, AttributeIdentifier the_attribute_identifier, Object the_attribute_content) throws ConstraintException
isValid
in interface ConstraintValidator
the_attribute_container
- the_constraint_container
- the_attribute_identifier
- the_attribute_content
-
ConstraintException
public void isValid(AttributeContainer the_attribute_container, ConstraintContainer the_constraint_container) throws ConstraintException
isValid
in interface ConstraintValidator
the_attribute_container
- the_constraint_container
-
ConstraintException
public void modify(Constrainable the_constrainable, AttributeContainer the_attribute_container, AssociationIdentifier the_association_identifier, AttributeTypeIdentifier the_attribute_type_identifier, ConstraintContainer constraint_container)
modify
in interface ConstraintValidator
the_constrainable
- the_attribute_container
- the_association_identifier
- the_attribute_type_identifier
- constraint_container
- private ConstraintBindingRule getBindingRule(String className)
private ConstraintEnforcementRule getEnforcementRule(String className)
private ConstraintException[] internalIsValid(AttributeContainer the_attribute_container, ConstraintContainer the_constraint_container, AttributeIdentifier the_attribute_identifier, Object the_attribute_content)
private ConstraintException[] internalIsValueRequiredValid(AttributeContainer the_attribute_container, ConstraintContainer the_constraint_container) throws ConstraintException
ConstraintException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |