Examples of createInstance()


Examples of com.vaadin.client.metadata.Type.createInstance()

     * @return A new state object
     */
    protected SharedState createState() {
        try {
            Type stateType = getStateType(this);
            Object stateInstance = stateType.createInstance();
            return (SharedState) stateInstance;
        } catch (NoDataException e) {
            throw new IllegalStateException(
                    "There is no information about the state for "
                            + Util.getSimpleName(this)
View Full Code Here

Examples of com.vaadin.server.UIProvider.createInstance()

        Integer uiId = Integer.valueOf(session.getNextUIid());

        // Explicit Class.cast to detect if the UIProvider does something
        // unexpected
        UICreateEvent event = new UICreateEvent(request, uiClass, uiId);
        UI ui = uiClass.cast(provider.createInstance(event));

        // Initialize some fields for a newly created UI
        if (ui.getSession() != session) {
            // Session already set for LegacyWindow
            ui.setSession(session);
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IClass.createInstance()

           
      // copy instances
      for(IInstance inst: source.getDirectInstances()){
        IInstance i = ont.getInstance(inst.getName());
        if(i == null){
          i = cls.createInstance(inst.getName());
          // copy property values
          for(IProperty sp : inst.getProperties()){
            IProperty tp = (IProperty) convertResource(ont,sp);
            if(tp != null){
              if(tp.isFunctional())
View Full Code Here

Examples of edu.pitt.ontology.IClass.createInstance()

           
      // copy instances
      for(IInstance inst: source.getDirectInstances()){
        IInstance i = ont.getInstance(inst.getName());
        if(i == null){
          i = cls.createInstance(inst.getName());
          // copy property values
          for(IProperty sp : inst.getProperties()){
            IProperty tp = (IProperty) convertResource(ont,sp);
            if(tp != null){
              if(tp.isFunctional())
View Full Code Here

Examples of eu.admire.dispel.core.ProcessingElementDefinition.createInstance()

          ProcessingElementDefinition pe = (ProcessingElementDefinition) ref
              .getTarget();

          if (pe != null && !pe.eIsProxy()) {

            ProcessingElementInstance instance = pe
                .createInstance();

            var.setValue(instance);

            if (!instance.getNamespaces().isEmpty()) {
View Full Code Here

Examples of flex.messaging.io.PropertyProxy.createInstance()

                proxy = PropertyProxyRegistry.getRegistry().getProxyAndRegister(desiredClass);

                if (proxy == null)
                    object = ClassUtil.createDefaultInstance(desiredClass, null);
                else
                    object = proxy.createInstance(className);
            }
            else
            {
                // Just return type info with an ASObject...
                object = new ASObject();
View Full Code Here

Examples of fr.imag.adele.apam.CompositeType.createInstance()

    "composite-a-fail-exception");

  Composite composite_root = (Composite) ctroot
    .createInstance(null, null);

  Composite composite_a = (Composite) cta.createInstance(composite_root,
    null);

  Instance instanceApp1 = composite_a.getMainInst();

  S3GroupAImpl ga1 = (S3GroupAImpl) instanceApp1.getServiceObject();
View Full Code Here

Examples of fr.imag.adele.apam.Implementation.createInstance()

    public void CompositeDependencyFailException_tc045() {

  Implementation group_a = waitForImplByName(null,
    "group-a-fail-exception");

  Instance instance_a = group_a.createInstance(null, null);

  S3GroupAImpl ga1 = (S3GroupAImpl) instance_a.getServiceObject();

  String messageTemplate = "In dependency if we adopt fail='exception' exception='A', the exception A should be throw in case the dependency is not satifiable. %s";
View Full Code Here

Examples of fr.imag.adele.apam.Implementation.createInstance()

    public void RelationSourceImplementationTargetInstance_tc099() {

  Implementation implementation = waitForImplByName(null,
    "S07-implementation-03");

  Instance instance = implementation.createInstance(null,
    Collections.<String, String> emptyMap());

  S07ImplementationImporter03 dependency = (S07ImplementationImporter03) instance
    .getServiceObject();
View Full Code Here

Examples of fr.imag.adele.apam.Implementation.createInstance()

  // Now by default resolve = exists, creating dependency
  // target of the wire in implem-05 (it will exist so link can be
  // created)
  Implementation target = waitForImplByName(null, "S07-implementation-04");
  target.createInstance(null, null);

  Implementation implementation = waitForImplByName(null,
    "S07-implementation-05");

  Instance instance = implementation.createInstance(null,
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.