Get object or sub-object attribute value :
get( {o1:{o2:{o3:{a:1}}}}, "o1.o2.o3.a") => 1
@param obj Object
@param keyName Attribute name
@returns {*}
3137
function get(obj, keyName) {
    if(obj == null || keyName == null) {
        return null;
    }
    if(keyName.indexOf('.') == -1) {
        return obj[keyName];
    }
    var keyNames = keyName.split('.');
    if(keyNames == null) {
        return null;
    }
    for(var i=0; i<keyNames.length; i++) {
        var res = obj[keyNames[i]];
        if(res == null) {
            return null;
        }
        obj = res;
    }
    return res;
}
1247796
public static Map<String, Object> getProperties(Object obj) {
		Map<String, Object> map = new HashMap<String, Object>();

		Class<?> objClass = obj.getClass();

		// Get all fields
		for (Field field : objClass.getFields()) {
			try {
				if (matchField(field, field.getName())) {
					String name = field.getName();
					Object value = field.get(obj);
					map.put(name, value);
				}
			} catch (Throwable t) {
				// Ignore exception
			}
		}

		// Get all properties
		for (Method method : objClass.getMethods()) {
			try {
				if (method.getName().startsWith("get") && matchPropertyGetter(method, method.getName())) {
					String name = method.getName().substring(3);
					name = name.substring(0, 1).toLowerCase() + name.substring(1);
					Object value = method.invoke(obj);
					map.put(name, value);
				}
			} catch (Throwable t) {
				// Ignore exception
			}
		}

		return map;
	}
1173378
def _get_object(objname, objtype):
    '''
    
    '''
    ret = None
    if objname is None:
        return ret

    if isinstance(objname, string_types):
        if objname in __opts__:
            ret = __opts__[objname]
        master_opts = __pillar__.get('master', {})
        if objname in master_opts:
            ret = master_opts[objname]
        if objname in __pillar__:
            ret = __pillar__[objname]
    elif isinstance(objname, objtype):
        ret = objname

    if not isinstance(ret, objtype):
        ret = None

    return ret
277068
public Object getAttribute(String attributeName) {

        if (m_attributeMap == null) {
            return null;
        }
        return m_attributeMap.get(attributeName);
    }
623059
private Object propertyObj(Object obj, Element node) throws Exception {
		String id = getAttribute(node, "id");
		String name = getAttribute(node, "name");
		String defval = getAttribute(node, "default");
		Object prop = null;
		if (_propertyMap != null && _propertyMap.containsKey(name)) {
			prop = _propertyMap.get(name);
		} else {
			prop = defval;
		}
		if (id != null) {
			_idMap.put(id, prop);
		}
		if (prop != null) {
			configure(prop, node, 0);
		}
		return prop;
	}
449480
public Object get(String propName) {
        if (propName.equals("key")) {
            return getKey();
        }
        if (propName.equals("value")) {
            return getValue();
        }
        return null;
    }
1178141
public static Object getValue(Object obj, String field) {
        Method getter = getGetterMethod(obj.getClass(), field);

        try {
            return getter.invoke(obj);
        } catch (IllegalAccessException | InvocationTargetException e) {
            return null;
        }
    }
613337
Object getAttribute(String name)
    {
        if (attributes.containsKey(name))
            return attributes.get(name);
        return noStroke.get(name);
    }
1036141
def value(cls, obj, keystr):
        
        if "#{" in keystr:
            # it's a template with keys vars
            keys = cls.from_template(keystr)
            for k in keys:
                v = cls.fetch(obj, cls.extract(k))
                keystr = keystr.replace(k, str(v))

            value = keystr
        else:
            # plain keys str
            value = cls.fetch(obj, keystr)

        return value
434159
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment)
      throws Exception
   {
      Reference ref = (Reference)obj;
      String className = (String)ref.get("class").getContent();
      String cfname = (String)ref.get("name").getContent();

      return objs.get(qualifiedName(cfname, className));
   }
929631
function keyOf(obj, value){
		for(var key in obj)
			if(Object.prototype.hasOwnProperty.call(obj, key) && obj[key] === value)
				return key;

		return null;
	}
74419
def _get_option(target_obj, key):
    
    getter_name = 'get_{key}'.format(**locals())
    by_attribute = functools.partial(getattr, target_obj, key)
    getter = getattr(target_obj, getter_name, by_attribute)
    return getter()
466122
public Object get(String subscript) {
        if (!values.containsKey(subscript)) {
            throw new RuntimeException("Subscript not found");
        }
        
        return values.get(subscript);
    }
992254
function _get(obj, keypath) {
    var parts = _keyPathNormalize(keypath).split('.')
    var dest = obj
    parts.forEach(function(key) {
        if (isNon(dest)) return !(dest = undf())
        dest = dest[key]
    })
    return dest
}
514134
def _obj_getattr(obj, fqdn, start=1):
    
    node = obj
    for chain in fqdn.split('.')[start:]:
        if hasattr(node, chain):
            node = getattr(node, chain)
        else:
            node = None
            break
    return node
803835
def get(self, key, default=None):
        
        if hasattr(self.obj, key):
            return getattr(self.obj, key)
        return self.data.get(key, default)
995867
function getAttr(obj, name) {
  return _.find(obj.attr, function(item) {
    return item.name == name;
  }).value;
}