Package org.dmd.dmw

Examples of org.dmd.dmw.DmwHierarchicObjectWrapper


     
      if (wrapper != null){
        indexer.deleteFromIndices(wrapper);
       
        if (name instanceof DmcHierarchicObjectName){
          DmwHierarchicObjectWrapper hwrapper = (DmwHierarchicObjectWrapper) wrapper;
          if (hwrapper.getParentComponent() != null)
            hwrapper.getParentComponent().removeSubcomponent(hwrapper);
        }
       
        wrapper.youAreDeleted();
      }
     
View Full Code Here


      if (obj.getConstructionClass().getIsNamedBy().getType().getIsHierarchicName()){
        DmcHierarchicObjectName hon = ((DmwHierarchicObjectWrapper)obj).getObjectName();
        DmcHierarchicObjectName pn = hon.getParentName();
       
        if (pn != null){
          DmwHierarchicObjectWrapper po = (DmwHierarchicObjectWrapper) theCache.get(pn);
         
          if(po == null){
            ResultException ex = new ResultException();
            ex.addError("Could not find parent object: " + po + " for object: " + hon);
            throw(ex);
          }
         
          if (obj.getConstructionClass().allowsParent(po.getConstructionClass())){
            po.addSubComponent((DmwHierarchicObjectWrapper) obj);
          }
          else{
            ResultException ex = new ResultException();
            ex.addError("Object of class: " + po.getConstructionClassName() + " is not a valid parent for object of class: " + obj.getConstructionClassName());
            throw(ex);
          }
        }
       
      }
View Full Code Here

  }

  @Override
  public Collection<DmwHierarchicObjectWrapper> getNext(DmcHierarchicObjectName name) {
    synchronized (theCache) {
      DmwHierarchicObjectWrapper root = (DmwHierarchicObjectWrapper) theCache.get(name);
     
      if (root == null)
        return(null);
     
      return(root.getSubComps());
    }
  }
View Full Code Here

TOP

Related Classes of org.dmd.dmw.DmwHierarchicObjectWrapper

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.