Package org.dmd.dms

Examples of org.dmd.dms.ClassDefinition


   * @throws ClassNotFoundException 
   */
  public DmwWrapper createWrapper(DmcUncheckedObject uco) throws ResultException, DmcValueException, ClassNotFoundException {
    DmwWrapper       rc = null;
    DmcObject      dmo  = null;
    ClassDefinition    cd  = null;
    AttributeDefinition  ad  = null;
   
    if ((cd = schema.isClass((String)uco.classes.get(0))) == null){
      DebugInfo.debug("UncheckedObject:\n\n" + uco.toOIF());
          ResultException ex = new ResultException();
            ex.result.addResult(Result.ERROR,"Unknown class: " + uco.classes.get(0));
            throw(ex);
    }
   
   
    rc  = cd.newInstance();
    dmo = rc.getDmcObject();
           
    // And add any auxiliary classes if we have them
    for(int i=1; i<uco.classes.size(); i++){
      if ((cd = schema.isClass((String)uco.classes.get(i))) == null){
View Full Code Here


      LinkedList<CacheListener>   listeners = new LinkedList<CacheListener>();
      ListenerSet<?>        listenerSet = null;
     
      listeners.addAll(fullListeners.getListeners());
     
      ClassDefinition cd = (ClassDefinition) event.getSourceObjectClass();
     
      // Index listeners
      listenerSet = indexListeners.get(cd.getClassInfo());
      if (listenerSet != null)
        listeners.addAll(listenerSet.getListeners());
     
      return(listeners);     
    }
View Full Code Here

TOP

Related Classes of org.dmd.dms.ClassDefinition

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.