com.ibm.dse.tools.workbench.base
Class CompositionRulesChecker
java.lang.Object
|
+--com.ibm.dse.tools.workbench.base.CompositionRulesChecker
- public class CompositionRulesChecker
- extends java.lang.Object
This class is used to check the composition of an instances based on a list of composition rules
Field Summary |
protected java.util.Hashtable |
compRules
The list of composition rules on wich is based the checking |
Constructor Summary |
CompositionRulesChecker(TableRow entity)
This method constructs a CompositionRulesChecker object from an entity adding to its composition rules
the ones of its recursive parents |
CompositionRulesChecker(TableRow[] entitiesTree)
This method constructs a CompositionRulesChecker object from a list of entities which composition rules
must be added |
Method Summary |
java.lang.String[] |
check(TableRow instance)
This method checks the composition of an instance based on the list of rules |
protected void |
createCompositionRules(TableRow[] entitiesTree)
This method creates the composition rules list of an instance based on the list of rules |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
compRules
protected java.util.Hashtable compRules
- The list of composition rules on wich is based the checking
CompositionRulesChecker
public CompositionRulesChecker(TableRow[] entitiesTree)
throws WorkbenchException
- This method constructs a CompositionRulesChecker object from a list of entities which composition rules
must be added
- Parameters:
entitiesTree
- com.ibm.dse.tools.workbench.base.TableRow[] the list of entities- Throws:
- WorkbenchException - an error ocurred while creating the object
CompositionRulesChecker
public CompositionRulesChecker(TableRow entity)
throws WorkbenchException
- This method constructs a CompositionRulesChecker object from an entity adding to its composition rules
the ones of its recursive parents
- Parameters:
entity
- com.ibm.dse.tools.workbench.base.TableRow the entity- Throws:
- WorkbenchException - an error ocurred while creating the object
check
public java.lang.String[] check(TableRow instance)
throws WorkbenchException
- This method checks the composition of an instance based on the list of rules
- Parameters:
instance
- com.ibm.dse.tools.workbench.base.TableRow The TableRow representing the instance to check- Returns:
- java.lang.String[] The list of errors
- Throws:
- WorkbenchException -
createCompositionRules
protected void createCompositionRules(TableRow[] entitiesTree)
throws WorkbenchException
- This method creates the composition rules list of an instance based on the list of rules
- Parameters:
entitiesTree
- com.ibm.dse.tools.workbench.base.TableRow[] the list of entities- Throws:
- WorkbenchException - an error ocurred while creating the composition rules