Codota Logo
Beans.getNestableProperty
Code IndexAdd Codota to your IDE (free)

How to use
getNestableProperty
method
in
leap.lang.Beans

Best Java code snippets using leap.lang.Beans.getNestableProperty (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.leapframework/leap-lang

public static Object getNestableProperty(Object bean,String property){
  if(bean instanceof Map){
    return getNestableProperty((Map)bean, property);
  }else if(bean instanceof DynaBean){
    return getNestableProperty(((DynaBean) bean).getProperties(), property);
  }else{
    return getNestableProperty(BeanType.of(bean.getClass()), bean, property);
  }
}

origin: org.leapframework/leap-lang

protected static Object getNestedMapProperty(BeanType beanType,Object bean,BeanProperty bp,String nestedProperty) {
  Map map = (Map)bp.getValue(bean);
  if(null == map){
    return null;
  }
  
  if(map.containsKey(nestedProperty)){
    return map.get(nestedProperty);
  }
  
  return getNestableProperty(map,nestedProperty);
}

origin: org.leapframework/leap-core

protected Object resolveVariableProperty(String key,String variable){
  int dotIndex = key.indexOf('.');
  
  if(dotIndex == Arrays2.INDEX_NOT_FOUND){
    return null;
  }
  
  String prefix = key.substring(0,dotIndex);
  VariableDefinition vd = variables.get(prefix);
  
  if(null == vd){
    return null;
  }else{
    Object value = resolveVariable(vd, null);
    if(null == value){
      return null;
    }else if(value instanceof PropertyGetter){
      return ((PropertyGetter) value).getProperty(variable.substring(dotIndex + 1));
    }else{
      return Beans.getNestableProperty(value,variable.substring(dotIndex + 1));
    }
  }
}

origin: org.leapframework/leap-lang

  return null;
}else{
  return getNestableProperty(nestedBean, property.substring(dotIndex+1));
origin: org.leapframework/leap-lang

protected static Object getNestedProperty(BeanType beanType,Object bean,BeanProperty bp,String nestedProperty){
  Class<?> nestedBeanClass = bp.getType();
  
  if(Map.class.isAssignableFrom(nestedBeanClass)){
    return getNestedMapProperty(beanType, nestedBeanClass, bp, nestedProperty);
  }
  
  Object nestedBean = bp.getValue(bean);
  
  if(null == nestedBean){
    return null;
  }
  
  return getNestableProperty(BeanType.of(nestedBeanClass), nestedBean, nestedProperty);
}

leap.langBeansgetNestableProperty

Popular methods of Beans

  • copyProperties
  • toMap
  • isSimpleProperty
    Check if the given type represents a "simple" property: a primitive, a String or other CharSequence,
  • getArrayProperty
  • getNestedMapProperty
  • getNestedProperty
  • getProperty
  • setArrayProperty
  • setNestedMapProperty
  • setNestedProperty
  • setPropertiesNestable
  • setPropertiesNestableInternal
  • setPropertiesNestable,
  • setPropertiesNestableInternal,
  • setProperty,
  • tryIncreaseSize

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now