Tabnine Logo
Beans.getNestableProperty
Code IndexAdd Tabnine 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)

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

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JList (javax.swing)
  • Top plugins for Android Studio
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