Examples of addExtension()


Examples of org.sbml.jsbml.Parameter.addExtension()

      SpatialParameterPlugin spatialParam = null;
      if (param.getExtension(SpatialConstants.namespaceURI) != null) {
        spatialParam = (SpatialParameterPlugin) param.getExtension(SpatialConstants.namespaceURI);
      } else {
        spatialParam = new SpatialParameterPlugin(param);
        param.addExtension(SpatialConstants.namespaceURI, spatialParam);
      }

      if (elementName.equals(SpatialConstants.spatialSymbolReference)) {
        SpatialSymbolReference ssr = new SpatialSymbolReference();
        spatialParam.setParamType(ssr);
View Full Code Here

Examples of org.sbml.jsbml.Reaction.addExtension()

      SpatialReactionPlugin spatialReaction = null;
      if (reaction.getExtension(SpatialConstants.namespaceURI) != null) {
        spatialReaction = (SpatialReactionPlugin) reaction.getExtension(SpatialConstants.namespaceURI);
      } else {
        spatialReaction = new SpatialReactionPlugin(reaction);
        reaction.addExtension(SpatialConstants.namespaceURI, spatialReaction);
      }
      contextObject = spatialReaction;
    }

    super.processAttribute(elementName, attributeName, value, uri, prefix,
View Full Code Here

Examples of org.sbml.jsbml.SBMLDocument.addExtension()

      if (sbmlDoc.getExtension(namespaceURI) != null) {
        compSBMLDoc = (CompSBMLDocumentPlugin) sbmlDoc.getExtension(namespaceURI);
      } else {
        compSBMLDoc = new CompSBMLDocumentPlugin(sbmlDoc);
        sbmlDoc.addExtension(namespaceURI, compSBMLDoc);
      }

      if (elementName.equals(CompConstants.listOfExternalModelDefinitions))
      {
        return compSBMLDoc.getListOfExternalModelDefinitions();
View Full Code Here

Examples of org.sbml.jsbml.SBase.addExtension()

      if (sbase.getExtension(namespaceURI) != null) {
        compSBase = (CompSBasePlugin) sbase.getExtension(namespaceURI);
      } else {
        compSBase = new CompSBasePlugin(sbase);
        sbase.addExtension(namespaceURI, compSBase);
      }

      if (elementName.equals(CompConstants.listOfReplacedElements))
      {
        return compSBase.getListOfReplacedElements();
View Full Code Here

Examples of org.sbml.jsbml.Species.addExtension()

      SpatialSpeciesPlugin spatialSpecies = null;
      if (species.getExtension(SpatialConstants.namespaceURI) != null) {
        spatialSpecies = (SpatialSpeciesPlugin) species.getExtension(SpatialConstants.namespaceURI);
      } else {
        spatialSpecies = new SpatialSpeciesPlugin(species);
        species.addExtension(SpatialConstants.namespaceURI, spatialSpecies);
      }
      contextObject = spatialSpecies;
    } else if (contextObject instanceof Reaction) {
      Reaction reaction = (Reaction) contextObject;
      SpatialReactionPlugin spatialReaction = null;
View Full Code Here

Examples of org.sbml.jsbml.ext.layout.Layout.addExtension()

      Layout layout = (Layout) contextObject;
      SBase newElement = null;

      if (elementName.equals(RenderConstants.listOfLocalRenderInformation)) {
        RenderLayoutPlugin renderPlugin = new RenderLayoutPlugin(layout);
        layout.addExtension(RenderConstants.namespaceURI, renderPlugin);
        newElement = renderPlugin.getListOfLocalRenderInformation();
      }
      if (newElement != null) {
        layout.registerChild(newElement);
        return newElement;
View Full Code Here

Examples of org.springframework.richclient.filechooser.DefaultFileFilter.addExtension()

            fileChooser = new JFileChooser();
        }
        fileChooser.resetChoosableFileFilters();
        final DefaultFileFilter filter = new DefaultFileFilter();
        for (final String extension : defaultExtensions) {
            filter.addExtension(extension);
        }
        filter.setDescription(fileTypeDescription);
        fileChooser.setFileFilter(filter);
        final int returnVal = fileChooser.showDialog(parent, approveButtonName);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
View Full Code Here

Examples of org.wso2.carbon.registry.extensions.ui.clients.ResourceServiceClient.addExtension()

                log.error(msg);

                buildUIError(request, response, webContext, errorRedirect, msg);
                return false;
            }
            client.addExtension(formFieldsMap.get("filename").get(0),
                    fileItemData.getDataHandler());

            response.setContentType("text/html; charset=utf-8");
            String msg = "Successfully uploaded extension.";
            if (redirect == null) {
View Full Code Here

Examples of org.xmpp.packet.IQ.addExtension()

        if (iq.elements().isEmpty()) {
            reply.setChildElement(iq.createCopy());
            // Send the data form to the requestor

            reply.addExtension(dataForm.createCopy());
            workgroup.send(reply);
        }
    }

    public void executeSet(IQ packet, Workgroup workgroup) {
View Full Code Here

Examples of org.xmpp.packet.Message.addExtension()

                    Element address = addresses.addElement("address");
                    address.addAttribute("type", "replyto");
                    address.addAttribute("jid", publisher.toString());

                    Message extendedMessage = message.createCopy();
                    extendedMessage.addExtension(new PacketExtension(addresses));

                    extendedMessage.setTo(recipientFullJID);
                    router.route(extendedMessage);
                }
            }
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.