Package org.dmd.dmc

Examples of org.dmd.dmc.DmcAttributeInfo


     
      if (ruleDMO.basedOnValueContains(value)){
        if (ruleDMO.getExcludeThisAttributeSize() > 0){
          Iterator<AttributeDefinitionREF> refs = ruleDMO.getExcludeThisAttributeREFs();
          while(refs.hasNext()){
            DmcAttributeInfo ai = DmcOmni.instance().getAttributeInfo(refs.next().getObjectName().getNameString());
            if (obj.get(ai) != null){
              if (rc == null)
                rc = new DmcRuleExceptionSet();
              rc.add(new DmcRuleException(ruleDMO.getRuleTitle() + "\nCan't have: " + ai.name, this));
            }
          }
        }
        if (ruleDMO.getIncludeThisAttributeSize() > 0){
          Iterator<AttributeDefinitionREF> refs = ruleDMO.getIncludeThisAttributeREFs();
          while(refs.hasNext()){
            DmcAttributeInfo ai = DmcOmni.instance().getAttributeInfo(refs.next().getObjectName().getNameString());
            if (obj.get(ai) == null){
              if (rc == null)
                rc = new DmcRuleExceptionSet();
              rc.add(new DmcRuleException(ruleDMO.getRuleTitle() + "\nMust have: " + ai.name, this));
            }
View Full Code Here


   * @throws DmcRuleException
   */
  void checkReferencedAttribute(DmcObject obj, DmcAttribute<?> attribute, String attrName) throws DmcRuleException {
   
    // First, we try to find the definition of the attribute in question
    DmcAttributeInfo ai = DmcOmni.instance().getAttributeInfo(attrName);
   
    if (ai == null)
      throw(new DmcRuleException("Unknown attribute: " + attrName + " referred to via attribute: " + attribute.getName() + " in object: \n" + obj.toOIF(), this));
     
    if (ruleDMO.getAllowedValueType() != null){
View Full Code Here

    }
       
    Iterator<String> names = uco.getAttributeNames();
    while(names.hasNext()){
      String n = names.next();
      DmcAttributeInfo ai = dmo.getAttributeInfo(n);
     
      ad = schema.adef(n);
     
      if (ad == null){
            ResultException ex = new ResultException();
View Full Code Here

TOP

Related Classes of org.dmd.dmc.DmcAttributeInfo

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.