Examples of addOptions()


Examples of com.jayway.jsonpath.Configuration.addOptions()

        Object res = null;


        Configuration configuration = Configuration.defaultConfiguration();
        if(flagWrap){
            configuration = configuration.addOptions(Option.ALWAYS_RETURN_LIST);
        }
        if(flagSuppress){
            configuration = configuration.addOptions(Option.SUPPRESS_EXCEPTIONS);
        }
        if (!optionAsValues) {
View Full Code Here

Examples of com.jayway.jsonpath.Configuration.addOptions()

        Configuration configuration = Configuration.defaultConfiguration();
        if(flagWrap){
            configuration = configuration.addOptions(Option.ALWAYS_RETURN_LIST);
        }
        if(flagSuppress){
            configuration = configuration.addOptions(Option.SUPPRESS_EXCEPTIONS);
        }
        if (!optionAsValues) {
            configuration = configuration.addOptions(Option.AS_PATH_LIST);
        }
        if(flagNullLeaf){
View Full Code Here

Examples of com.jayway.jsonpath.Configuration.addOptions()

        }
        if(flagSuppress){
            configuration = configuration.addOptions(Option.SUPPRESS_EXCEPTIONS);
        }
        if (!optionAsValues) {
            configuration = configuration.addOptions(Option.AS_PATH_LIST);
        }
        if(flagNullLeaf){
            configuration = configuration.addOptions(Option.DEFAULT_PATH_LEAF_TO_NULL);
        }
        if(flagRequireProps){
View Full Code Here

Examples of com.jayway.jsonpath.Configuration.addOptions()

        }
        if (!optionAsValues) {
            configuration = configuration.addOptions(Option.AS_PATH_LIST);
        }
        if(flagNullLeaf){
            configuration = configuration.addOptions(Option.DEFAULT_PATH_LEAF_TO_NULL);
        }
        if(flagRequireProps){
            configuration = configuration.addOptions(Option.REQUIRE_PROPERTIES);
        }
View Full Code Here

Examples of com.jayway.jsonpath.Configuration.addOptions()

        }
        if(flagNullLeaf){
            configuration = configuration.addOptions(Option.DEFAULT_PATH_LEAF_TO_NULL);
        }
        if(flagRequireProps){
            configuration = configuration.addOptions(Option.REQUIRE_PROPERTIES);
        }

        long now = System.currentTimeMillis();
        try {
            res = JsonPath.using(configuration).parse(json).read(path);
View Full Code Here

Examples of com.sun.cli.jmx.cmd.ArgHelperOptionsInfo.addOptions()

  main(String args[])
  {
    try
    {
      final ArgHelperOptionsInfo    optionInfo  = new ArgHelperOptionsInfo( );
      optionInfo.addOptions( "port,1 testInProcess" );
     
      final ArgHelperImpl  argHelper  = new ArgHelperImpl( Arrays.asList( args ).listIterator(), optionInfo);
     
      final Integer port  = argHelper.getInteger( "--port" );
      if ( port == null )
View Full Code Here

Examples of io.fabric8.api.ProfileBuilder.addOptions()

  private Profile getProcessProfile(ProcessRequirements requirements, boolean includeController, Container container) {
    String versionId = container.getVersion().getId();
    String profileId = "process-profile-" + requirements.getId();
    ProfileBuilder builder = ProfileBuilder.Factory.create(versionId, profileId);
    ProcessProfileOptions optionsProvider = new ProcessProfileOptions(container, requirements, includeController);
    return builder.addOptions(optionsProvider).getProfile();
  }

  static class ProcessProfileOptions implements OptionsProvider<ProfileBuilder> {

      private final Container container;
View Full Code Here

Examples of io.fabric8.api.ProfileBuilder.addOptions()

  private Profile getContainerProfile() {
    Version version = getVersion();
    String profileId = "#container-" + getId();
    ProfileBuilder builder = ProfileBuilder.Factory.create(profileId).version(version.getId());
    ContainerProfileOptions optionsProvider = new ContainerProfileOptions(getId(), version, dataStore);
    return builder.addOptions(optionsProvider).getProfile();
  }

  static class ContainerProfileOptions implements OptionsProvider<ProfileBuilder> {

      private static Logger LOGGER = LoggerFactory.getLogger(ContainerImpl.class);
View Full Code Here

Examples of io.fabric8.api.ProfileBuilder.addOptions()

  private Profile getVersionProfile(Version version) {
    String profileId = "#version-" + version.getId();
    ProfileBuilder builder = ProfileBuilder.Factory.create(profileId).version(version.getId());
    VersionProfileOptionsProvider optionsProvider = new VersionProfileOptionsProvider(version);
    return builder.addOptions(optionsProvider).getProfile();
  }

    void bindFabricService(FabricService fabricService) {
        this.fabricService.bind(fabricService);
    }
View Full Code Here

Examples of io.fabric8.api.ProfileBuilder.addOptions()

                    // set of profiles (e.g. docker or openshift)
                    environment = System.getProperty(SystemProperties.FABRIC_PROFILE_ENVIRONMENT);
                }
                Version version = getRequiredVersion(profile.getVersion());
                ProfileBuilder builder = ProfileBuilder.Factory.create(profile.getVersion(), profileId);
                builder.addOptions(new OverlayOptionsProvider(version, profile, environment));
                overlayProfile = builder.getProfile();

                // Log the overlay profile difference
                if (LOGGER.isInfoEnabled()) {
                    OverlayAudit audit = getOverlayAudit();
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.