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

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

Best Java code snippets using org.jboss.errai.databinding.client.HasProperties (Showing top 7 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

type = hasProperties.getBeanProperties().get(meta.getProperty()).getType().getName();
origin: org.kie.workbench.stunner/kie-wb-common-stunner-client-common

@SuppressWarnings("unchecked")
public static <T, V> void setProxiedValue(final T pojo,
                     final String fieldName,
                     final V value) {
  if (null != pojo && null != fieldName) {
    HasProperties hasProperties = (HasProperties) DataBinder.forModel(pojo).getModel();
    hasProperties.set(fieldName,
             value);
  }
}
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.clientHasProperties

Javadoc

Implementations of this interface allow for dynamic access of their JavaBean properties by name. Since this is a GWT client-side interface, all implementations must be code generated in the absence of Java reflection.

Most used methods

  • get
    Returns the value of the JavaBean property with the given name.
  • 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

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Best plugins for Eclipse
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