Examples of unwrap()


Examples of org.chromattic.core.DomainSession.unwrap()

  public void set(ObjectContext context, Object parent) throws Throwable {
    if (parent == null) {
      context.remove();
    } else {
      DomainSession session = context.getSession();
      ObjectContext parentContext = session.unwrap(parent);
      parentContext.addChild(relatedName, context);
    }
  }
}
View Full Code Here

Examples of org.codehaus.groovy.runtime.wrappers.Wrapper.unwrap()

     * This method is called by the handle to unwrap a Wrapper, which
     * we use to force method selection.
     */
    public static Object unwrap(Object o) {
        Wrapper w = (Wrapper) o;
        return w.unwrap();
    }

    /**
     * Guard to check if the argument is null.
     * This method is called by the handle to check
View Full Code Here

Examples of org.drools.impl.StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper.unWrap()

        Collection<org.drools.event.AgendaEventListener> listeners = commandService.execute( new GetAgendaEventListenersCommand() );
        Collection<AgendaEventListener> result = new ArrayList<AgendaEventListener>();

        for ( org.drools.event.AgendaEventListener listener : listeners ) {
            AgendaEventListenerWrapper wrapper = (AgendaEventListenerWrapper) listener;
            result.add( wrapper.unWrap() );
        }

        return result;
    }
View Full Code Here

Examples of org.drools.impl.StatefulKnowledgeSessionImpl.ProcessEventListenerWrapper.unWrap()

        Collection<org.drools.event.RuleFlowEventListener> listeners = commandService.execute( new GetProcessEventListenersCommand() );
        Collection<ProcessEventListener> result = new ArrayList<ProcessEventListener>();

        for ( org.drools.event.RuleFlowEventListener listener : listeners ) {
            ProcessEventListenerWrapper wrapper = (ProcessEventListenerWrapper) listener;
            result.add( wrapper.unWrap() );
        }

        return result;
    }
View Full Code Here

Examples of org.drools.impl.StatefulKnowledgeSessionImpl.WorkingMemoryEventListenerWrapper.unWrap()

        Collection<org.drools.event.WorkingMemoryEventListener> listeners = commandService.execute( new GetWorkingMemoryEventListenersCommand() );
        Collection<WorkingMemoryEventListener> result = new ArrayList<WorkingMemoryEventListener>();

        for ( org.drools.event.WorkingMemoryEventListener listener : listeners ) {
            WorkingMemoryEventListenerWrapper wrapper = (WorkingMemoryEventListenerWrapper) listener;
            result.add( wrapper.unWrap() );
        }

        return result;
    }
View Full Code Here

Examples of org.eclipse.core.internal.databinding.IdentityWrapper.unwrap()

    int i = 0;
    IObservable[] result = new IObservable[observableSet.size()];
    for (Iterator it = observableSet.iterator(); it.hasNext();) {
      IdentityWrapper wrapper = (IdentityWrapper) it.next();
      result[i++] = (IObservable) wrapper.unwrap();
    }

    return result;
  }
View Full Code Here

Examples of org.eclipse.gef.commands.CompoundCommand.unwrap()

    View view = (View) getHost().getModel();
    if (view.getEAnnotation("Shortcut") != null) { //$NON-NLS-1$
      req.setElementToDestroy(view);
    }
    cc.add(getGEFWrapper(new DestroyElementCommand(req)));
    return cc.unwrap();
  }

  /**
   * @generated
   */
 
View Full Code Here

Examples of org.elasticsearch.script.ExecutableScript.unwrap()

        Object complied = se.compile("ctx.doc.field1 = ['value1', 'value2']");
        ExecutableScript script = se.executable(complied, new HashMap<String, Object>());
        script.setNextVar("ctx", ctx);
        script.run();

        Map<String, Object> unwrap = (Map<String, Object>) script.unwrap(ctx);

        assertThat(((Map) unwrap.get("doc")).get("field1"), instanceOf(List.class));
    }

    @Test public void testAccessListInScript() {
View Full Code Here

Examples of org.geoscript.js.geom.Geometry.unwrap()

        }
        if (geometry == null) {
            throw ScriptRuntime.constructError("Error",
            "The write function expects a single geometry argument");
        }
        return wktWriter.write((com.vividsolutions.jts.geom.Geometry) geometry.unwrap());
    }

    /**
     * Create object with read/write methods.
     * @param scope
View Full Code Here

Examples of org.geoscript.js.proj.Projection.unwrap()

        if (projectionObj instanceof Projection) {
            projection = (Projection) projectionObj;
        } else if (projectionObj instanceof String) {
            projection = new Projection((String) projectionObj);
        }
        CoordinateReferenceSystem crs = projection != null ? projection.unwrap() : null;
        refEnv = new ReferencedEnvelope(minX, maxX, minY, maxY, crs);
    }
   
    /**
     * Constructor from array.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.