Examples of addExtension()


Examples of org.objectweb.speedo.metadata.SpeedoField.addExtension()

        sf.name = "speedo" + SpeedoVersion.toString(sc.version.strategy);
        //  equivalent for long in ASM
        sf.type = "J";
        //create a speedo extension for the sql name
        SpeedoExtension se = new SpeedoExtension("speedo","sql-name", sf.name.toUpperCase(), sf);
        sf.addExtension(se);
        sc.add(sf, true, logger);
      }
    }
    super.visitClass(sc);
  }
View Full Code Here

Examples of org.openid4java.message.AuthRequest.addExtension()

        fetch.addAttribute("fullname", "http://schema.openid.net/namePerson", true);
        fetch.addAttribute("email", "http://schema.openid.net/contact/email", true);
      }

      // Attach the extension to the authentication request
      authReq.addExtension(fetch);

      // Redirect the user to their OpenId server authentication process
      return Response
        .seeOther(URI.create(authReq.getDestinationUrl(true)))
        .build();
View Full Code Here

Examples of org.openid4java.message.AuthSuccess.addExtension()

            if (! compat)
            {
                FetchResponse fetchResp = FetchResponse.createFetchResponse();
                fetchResp.addAttributes(attrs);
                openidResp.addExtension(fetchResp);
            }

            // sign the message
            openidResp.setSignature(assoc.sign(openidResp.getSignedText()));
        }
View Full Code Here

Examples of org.openid4java.message.Message.addExtension()

            authResponse = openIdServerManager.get().authResponse(parameterList, opLocalIdentifier, claimedIdentifier, authenticationSuccesful, false);
           
            if (openIdProviderRequest.get().getRequestedAttributes() != null) {
                try {
                    FetchResponse fetchResponse = FetchResponse.createFetchResponse(openIdProviderRequest.get().getFetchRequest(), attributeValues);
                    authResponse.addExtension(fetchResponse);
                } catch (MessageException e) {
                    throw new RuntimeException(e);
                }
            }
           
View Full Code Here

Examples of org.openqa.selenium.firefox.FirefoxProfile.addExtension()

import java.io.IOException;

public class Firebug {
    public static void configure(File dir, DesiredCapabilities capabilities) throws IOException {
        FirefoxProfile profile = new FirefoxProfile();
        profile.addExtension(new File(dir, "firebug-1.9.2-fx.xpi"));
        profile.addExtension(new File(dir, "netExport-0.8b22.xpi"));

        profile.setPreference("extensions.firebug.defaultPanelName", "net");
        profile.setPreference("extensions.firebug.net.enableSites", true);
        profile.setPreference("extensions.firebug.allPagesActivation", "on");
View Full Code Here

Examples of org.openstreetmap.josm.data.gpx.WayPoint.addExtension()

     */
    public WayPoint convertToWayPoint() {
        WayPoint wpt = new WayPoint(getCoor());
        wpt.put("time", timeFormatter.format(new Date(Math.round(time * 1000))));
        if (text != null) {
            wpt.addExtension("text", text);
        } else if (dataProvider != null) {
            for (String key : dataProvider.getTemplateKeys()) {
                Object value = dataProvider.getTemplateValue(key, false);
                if (value != null && GpxConstants.WPT_KEYS.contains(key)) {
                    wpt.put(key, value);
View Full Code Here

Examples of org.resmedicinae.application.healthcare.resadmin.utils.ResAdminFileFilter.addExtension()

        jfc.setDialogTitle(this.openFileDialogTitle);
        jfc.setApproveButtonText(this.openFileDialogApproveButtonText);
        jfc.setMultiSelectionEnabled(false);

        ResAdminFileFilter filterXML = new ResAdminFileFilter();
        filterXML.addExtension("xml");
        filterXML.setDescription("XML Files");

        jfc.setFileFilter(filterXML);
        jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
View Full Code Here

Examples of org.rhq.common.jbossas.client.controller.CoreJBossASClient.addExtension()

            mcc = createModelControllerClient();
            CoreJBossASClient client = new CoreJBossASClient(mcc);
            boolean isDeployed = client.isExtension(RHQ_EXTENSION_NAME);
            if (!isDeployed) {
                log("Installing RHQ EAR startup subsystem extension");
                client.addExtension(RHQ_EXTENSION_NAME);
            } else {
                log("RHQ EAR startup subsystem extension is already deployed");
            }
        } finally {
            MCCHelper.safeClose(mcc);
View Full Code Here

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

      SpatialCompartmentPlugin spatialCompartment = null;
      if (compartment.getExtension(SpatialConstants.namespaceURI) != null) {
        spatialCompartment = (SpatialCompartmentPlugin) compartment.getExtension(SpatialConstants.namespaceURI);
      } else {
        spatialCompartment = new SpatialCompartmentPlugin(compartment);
        compartment.addExtension(SpatialConstants.namespaceURI, spatialCompartment);
      }

      if (elementName.equals(SpatialConstants.compartmentMapping)) {
        CompartmentMapping compartmentMapping = new CompartmentMapping();
        spatialCompartment.setCompartmentMapping(compartmentMapping);
View Full Code Here

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

      if (model == null){
        System.err.println("Model missing in SBMLDocument.");
        return null;
      }
      layoutModel = new LayoutModelPlugin(model);
      model.addExtension(LAYOUT_NS, layoutModel);
    }
    return layoutModel;
  }
 
 
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.