Examples of containsProperty()


Examples of org.hornetq.utils.TypedProperties.containsProperty()

               SimpleString clusterName = props.getSimpleStringProperty(ManagementHelper.HDR_CLUSTER_NAME);

               SimpleString address = props.getSimpleStringProperty(ManagementHelper.HDR_ADDRESS);

               if (!props.containsProperty(ManagementHelper.HDR_BINDING_ID))
               {
                  throw HornetQMessageBundle.BUNDLE.bindingIdNotSpecified();
               }

               long id = props.getLongProperty(ManagementHelper.HDR_BINDING_ID);
View Full Code Here

Examples of org.hornetq.utils.TypedProperties.containsProperty()

               long id = props.getLongProperty(ManagementHelper.HDR_BINDING_ID);

               SimpleString filterString = props.getSimpleStringProperty(ManagementHelper.HDR_FILTERSTRING);

               if (!props.containsProperty(ManagementHelper.HDR_DISTANCE))
               {
                  throw HornetQMessageBundle.BUNDLE.distancenotSpecified();
               }

               int distance = props.getIntProperty(ManagementHelper.HDR_DISTANCE);
View Full Code Here

Examples of org.jboss.dashboard.ui.DashboardFilter.containsProperty()

            renderPropertyName(dashboardFilterProperty);
            if (dashboardFilterProperty.isLabelProperty()) {

                // Get the property allowed values.
                String allowedValue = null;
                if (filter != null && filter.containsProperty(dashboardFilterProperty.getPropertyId())) {
                    List filterAllowedValues = filter.getPropertyAllowedValues(dashboardFilterProperty.getPropertyId());
                    if (filterAllowedValues.size() == 1) allowedValue = (String) filterAllowedValues.get(0);
                }

                // Get the list of distinct values for this label property. In order to avoid performance issues,
View Full Code Here

Examples of org.jboss.dashboard.ui.DashboardFilter.containsProperty()

            } else if (dashboardFilterProperty.isNumericProperty()) {
                setDefaultTypeAttributes(dashboardFilterProperty);

                Object minValue = null;
                Object maxValue = null;
                if (filter != null && filter.containsProperty(dashboardFilterProperty.getPropertyId())) {
                    maxValue = dashboardFilterProperty.getPropertyMaxValue();
                    minValue = dashboardFilterProperty.getPropertyMinValue();
                }
                setAttribute("minValue",minValue);
                setAttribute("maxValue",maxValue);
View Full Code Here

Examples of org.jboss.dashboard.ui.DashboardFilter.containsProperty()

            } else if (dashboardFilterProperty.isDateProperty()) {
                setDefaultTypeAttributes(dashboardFilterProperty);

                Object minValue = null;
                Object maxValue = null;
                if (filter != null && filter.containsProperty(dashboardFilterProperty.getPropertyId())) {
                    maxValue = dashboardFilterProperty.getPropertyMaxValue();
                    minValue = dashboardFilterProperty.getPropertyMinValue();
                }
                setAttribute("minValue",minValue);
                setAttribute("maxValue",maxValue);
View Full Code Here

Examples of org.mantikhor.llapi.Burst.containsProperty()

                Burst burst = (Burst)baseValNode;

                // 4. See if burst contains 'someProperty' - if so, add
                //    baseProperty to the return list.

                if (burst.containsProperty(someProperty))
                {
                    retValList.add(baseProperty);
                }
            }
        }
View Full Code Here

Examples of org.springframework.boot.bind.RelaxedPropertyResolver.containsProperty()

  @Override
  public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event) {
    RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
        event.getEnvironment(), "spring.");
    if (resolver.containsProperty("mandatoryFileEncoding")) {
      String encoding = System.getProperty("file.encoding");
      String desired = resolver.getProperty("mandatoryFileEncoding");
      if (encoding != null && !desired.equalsIgnoreCase(encoding)) {
        logger.error("System property 'file.encoding' is currently '" + encoding
            + "'. It should be '" + desired
View Full Code Here

Examples of org.springframework.core.env.ConfigurableEnvironment.containsProperty()

  public static void main(String... args) throws Exception{

    final GenericXmlApplicationContext context = new GenericXmlApplicationContext();

    final ConfigurableEnvironment env = context.getEnvironment();
    boolean mapQuestApiKeyDefined = env.containsProperty("mapquest.apikey");

    if (mapQuestApiKeyDefined) {
      env.setActiveProfiles("mapquest");
    }
View Full Code Here

Examples of org.springframework.core.env.PropertyResolver.containsProperty()

    List<String> missingProperties = new ArrayList<String>();
    List<String> nonMatchingProperties = new ArrayList<String>();
    for (String name : names) {
      String key = (relaxedNames ? name : prefix + name);
      if (resolver.containsProperty(key)) {
        if (!isMatch(resolver.getProperty(key), havingValue)) {
          nonMatchingProperties.add(name);
        }
      }
      else {
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.resources.Resource.containsProperty()

        }

        Resource resource = resources.getFirstElement();

        // XXX need to check for property type
        return resource.containsProperty(property)
                && resource.getValue(property) != null;
    }

    @Override
    public String getProperty() {
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.