Package org.dmd.dms.util

Examples of org.dmd.dms.util.DmoObjectFactory


      if (parsedRulesDMOs == null){
        parsedRulesDMOs = new TreeMap<RuleName, RuleDataDMO>();
        ruleInstances = new TreeMap<RuleName, RuleIF>();
       
        if (parsedRules != null){
            DmoObjectFactory  dmofactory = new DmoObjectFactory(sm);
          for(DmcUncheckedObject uco: parsedRules.values()){
            try {
              String ruleName = uco.getSV("ruleName");
              if ( (ruleName != null) && (ruleName.equals("dmvIncludeOrExclude")) ){
                DebugInfo.debug("HERE");
              }
             
            ClassDefinition ruleDataCD   = sm.cdef(uco.getConstructionClass());
            RuleDataDMO   dmo     = (RuleDataDMO) dmofactory.createObject(uco);
            RuleDefinition  ruleDEF    = ruleDataCD.getRuleDefinition();

            DynamicInitIF rule = (DynamicInitIF) ruleDEF.newRuleInstance();
            rule.setRuleData(dmo);
           
View Full Code Here


    return(rc);
  }
 
  public void loadAndCheckRules(SchemaManager sm, SchemaDefinition sd) throws DmcRuleExceptionSet {
    DmcRuleExceptionSet    rc       = null;
      DmoObjectFactory     dmofactory   = new DmoObjectFactory(sm);
      ArrayList<RuleDataDMO>  allRuleData = new ArrayList<RuleDataDMO>();
      ArrayList<RuleIF>    allRules   = new ArrayList<RuleIF>();
     
    Iterator<SchemaDefinition> schemas = sm.getSchemas();
    if (schemas != null){
      while(schemas.hasNext()){
        SchemaDefinition curr = schemas.next();
       
            Iterator<DmcUncheckedObject> ucoIT = curr.getParsedRules();
            if (ucoIT != null){
          while(ucoIT.hasNext()){
            DmcUncheckedObject   uco = ucoIT.next();
            ClassDefinition   ruleDataCD   = sm.cdef(uco.getConstructionClass());
            RuleDefinition    ruleDEF    = ruleDataCD.getRuleDefinition();
            RuleDataDMO     ruledata  = null;
            SourceInfo      source    = getSource(uco);
           
            try{
              ruledata = (RuleDataDMO) dmofactory.createObject(uco);
//              DebugInfo.debug("Parsed and instantiated:\n\n" + ruledata.toOIF());
            }
            catch(ClassNotFoundException cnf){
              // This may be thrown from TypeDefinition when trying to instantiate a
              // holder for an attribute. This would likely result from not having
View Full Code Here

  public DmgParser(SchemaManager sm, ConfigFinder cf){
    schema     = sm;
    ucoParser  = new DmcUncheckedOIFParser(this);
    finder     = cf;
    factory   = new DmoObjectFactory(sm);
  }
View Full Code Here

TOP

Related Classes of org.dmd.dms.util.DmoObjectFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.