Tabnine Logo
HasProperties.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
org.jboss.errai.databinding.client.HasProperties

Best Java code snippets using org.jboss.errai.databinding.client.HasProperties.get (Showing top 5 results out of 315)

origin: org.kie.workbench.forms/kie-wb-common-dynamic-forms-client

  @Override
  public String getValue(HasProperties hasProperties) {
    Object value = hasProperties.get(property);
    if (value != null) {
      return value.toString();
    }
    return "";
  }
};
origin: org.kie.workbench.stunner/kie-wb-common-stunner-client-common

  @SuppressWarnings("unchecked")
  public static <T, R> R merge(final T source,
                 final R target) {
    if (null != source) {
      final HasProperties hasProperties = (HasProperties) DataBinder.forModel(source).getModel();
      if (null != hasProperties) {
        final Map<String, PropertyType> propertyTypeMap = hasProperties.getBeanProperties();
        if (null != propertyTypeMap && !propertyTypeMap.isEmpty()) {
          final HasProperties targetProperties = (HasProperties) DataBinder.forModel(target).getModel();
          for (final Map.Entry<String, PropertyType> entry : propertyTypeMap.entrySet()) {
            final String pId = entry.getKey();
            try {
              targetProperties.set(pId,
                         hasProperties.get(pId));
            } catch (NonExistingPropertyException exception) {
              // Just skip it, Go to next property.
              LOGGER.log(Level.INFO,
                    "BindableAdapterUtils#merge - Skipping merge property [" + pId + "]");
            }
          }
          return (R) target;
        }
      }
    }
    return null;
  }
}
origin: org.kie.workbench.forms/kie-wb-common-dynamic-forms-client

  @Override
  public Boolean getValue(HasProperties object) {
    Object value = object.get(property);
    if (value == null) {
      return Boolean.FALSE;
    }
    return Boolean.TRUE.equals(value);
  }
};
origin: org.kie.workbench.stunner/kie-wb-common-stunner-client-common

@SuppressWarnings("unchecked")
public static <T, R> Set<R> getProxiedSet(final T pojo,
                     final Collection<String> fieldNames) {
  Set<R> result = new LinkedHashSet<>();
  if (null != pojo && null != fieldNames && !fieldNames.isEmpty()) {
    for (String fieldName : fieldNames) {
      HasProperties hasProperties = (HasProperties) DataBinder.forModel(pojo).getModel();
      result.add((R) hasProperties.get(fieldName));
    }
  }
  return result;
}
origin: org.kie.workbench.stunner/kie-wb-common-stunner-client-common

@SuppressWarnings("unchecked")
public static <T, R> R getProxiedValue(final T pojo,
                    final String fieldName) {
  R result = null;
  if (null != pojo && null != fieldName) {
    HasProperties hasProperties = (HasProperties) DataBinder.forModel(pojo).getModel();
    result = (R) hasProperties.get(fieldName);
  }
  return result;
}
org.jboss.errai.databinding.clientHasPropertiesget

Javadoc

Returns the value of the JavaBean property with the given name.

Popular methods of HasProperties

  • getBeanProperties
    Returns a map of JavaBean property names to their PropertyType.
  • set
    Sets the value of the JavaBean property with the given name.

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now