Examples of Profile


Examples of fiftyone.mobile.detection.entities.Profile

     * @param profileId The ID of the profile to replace the existing component
     * @throws IOException
     */
    public void updateProfile(int profileId) throws IOException {
        // Find the new profile from the data set.
        Profile newProfile = dataSet.findProfile(profileId);
        if (newProfile != null) {
            // Loop through the profiles found so far and replace the
            // profile for the same component with the new one.
            for (int i = 0; i < getProfiles().length; i++) {
                // Compare by component Id incase the stream data source is
                // used and we have different instances of the same component
                // being used.
                if (profiles[i].getComponent().getComponentId()
                        == newProfile.getComponent().getComponentId()) {
                    profiles[i] = newProfile;
                    break;
                }
            }
        }
View Full Code Here

Examples of gaej2011.model.Profile

            is("text/html"));
        assertThat(
            "Chancter-Encoding はutf-8",
            tester.response.getCharacterEncoding(),
            is("utf-8"));
        Profile profile =
            ProfileMeta.get().jsonToModel(tester.response.getOutputAsString());
        assertThat(
            "JSON にimageUrl のエントリが含まれる",
            profile.getProfileURL(),
            is(notNullValue()));
        int afterCount = tester.count(Profile.class);
        assertThat("Profile が一件増える", afterCount, is(beforeCount + 1));
    }
View Full Code Here

Examples of games.stendhal.client.gui.login.Profile

      logger.error("Failed to set Look and Feel", e);
    }

    UIManager.getLookAndFeelDefaults().put("ClassLoader", stendhal.class.getClassLoader());
   
    final Profile profile = Profile.createFromCommandline(args);
    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        if (profile.isValid()) {
          new LoginDialog(null, client).connect(profile);
        } else {
          new StendhalFirstScreen(client);
        }
      }
View Full Code Here

Examples of io.fabric8.api.Profile

    }

    public void updateDeployment(Git git, File baseDir, CredentialsProvider credentials) throws Exception {
        Set<String> bundles = new LinkedHashSet<String>();
        Set<Feature> features = new LinkedHashSet<Feature>();
        Profile overlayProfile = container.getOverlayProfile();
        Profile effectiveProfile = Profiles.getEffectiveProfile(fabricService, overlayProfile);
        bundles.addAll(effectiveProfile.getBundles());
        AgentUtils.addFeatures(features, fabricService, downloadManager, effectiveProfile);

        if (copyFilesIntoGit) {
            copyDeploymentsIntoGit(git, baseDir, bundles, features);
        } else {
View Full Code Here

Examples of jade.core.Profile

  }
 
  private static void testAgents() throws Exception {
   
    final Runtime rt = Runtime.instance();
    Profile p = new ProfileImpl();
    p.setParameter("gui", "false");
    ContainerController cc = rt.createMainContainer(p);
   
    java.lang.Runtime.getRuntime().addShutdownHook(new Thread()
    {
        @Override
View Full Code Here

Examples of javax.ccpp.Profile

    ProfileFactory profileFactory = ProfileFactory.getInstance();
    if(null == profileFactory) {
      // no CCPP implementation available, just return null
      return null;
    } else {
      Profile result = profileFactory.newProfile(httpServletRequest);
      return result;
    }
  }
View Full Code Here

Examples of jpl.eda.profile.Profile

      Track t = (Track) i.next();
      String id = t.getID().toString();
      String trackName = t.getName();
      String albumName = t.getAlbum().getName();
      String artistName = t.getArtist().getName();
      Profile p = createProfile(id, trackName,
        albumName, artistName);
      profiles.add(p);
    }
    return profiles;
  }
View Full Code Here

Examples of net.bnubot.core.Profile

  @Override
  public String toString() {
    if(firstConnection == null)
      return null;
    Profile p = firstConnection.getProfile();
    if((p == null) || (p.getConnections().size() == 1))
      return firstConnection.toString();
    return p.getName();
  }
View Full Code Here

Examples of net.pterodactylus.sone.data.Profile

   */
  @Override
  protected JsonReturnObject createJsonObject(FreenetRequest request) {
    String fieldId = request.getHttpRequest().getParam("field");
    Sone currentSone = getCurrentSone(request.getToadletContext());
    Profile profile = currentSone.getProfile();
    Field field = profile.getFieldById(fieldId);
    if (field == null) {
      return createErrorJsonObject("invalid-field-id");
    }
    String name = request.getHttpRequest().getParam("name", "").trim();
    if (name.length() == 0) {
      return createErrorJsonObject("invalid-parameter-name");
    }
    Field existingField = profile.getFieldByName(name);
    if ((existingField != null) && !existingField.equals(field)) {
      return createErrorJsonObject("duplicate-field-name");
    }
    field.setName(name);
    currentSone.setProfile(profile);
View Full Code Here

Examples of net.sf.myway.map.profiles.Profile

  /**
   * @see net.sf.myway.map.bl.MapBL#getProfile(java.lang.String)
   */
  @Override
  public Profile getProfile(final String profileName) {
    Profile profile = _profileCache.get(profileName);
    if (profile == null) {
      final InputStream in = Profile.class.getResourceAsStream(profileName + ".xml");
      try {
        profile = ProfileParser.parse(in);
        profile.setName(profileName);
        _profileCache.put(profileName, profile);
        in.close();
        if (!profileName.equals("default"))
          profile.setParent(getProfile("default"));
      }
      catch (final IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
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.