Returns MappedField for a given java field name on the this MappedClass

@param name the Java field name to search for
@return the MappedField for the named Java field
163742
public MappedField getMappedFieldByJavaField(final String name) {
        for (final MappedField mf : persistenceFields) {
            if (name.equals(mf.getJavaFieldName())) {
                return mf;
            }
        }

        return null;
    }
1261281
public function getFieldsWithSameDataSource($mappedFieldNameRef)
    {
        if (! isset($this->dataSources[$mappedFieldNameRef])) {
            throw new ObjectMappingException(sprintf('A "data source" metadata is expected for the field "%s".', $mappedFieldNameRef));
        }

        $id = $this->dataSources[$mappedFieldNameRef]->getId();
        $method = $this->dataSources[$mappedFieldNameRef]->getMethod();

        $propLoadedTogether = [];
        foreach ($this->dataSources as $mappedFieldName => $value) {

            if (
                $mappedFieldName !== $mappedFieldNameRef 
                && 
                ((null === $id && $value->getMethod()->isEquals($method)) || $id === $value->getId())
            ) {
                $propLoadedTogether[] = $mappedFieldName;
            }
        }

        return $propLoadedTogether;
    }
210872
public static Map<String, Object> getNameFieldMap(Class<? extends Enum<?>> clazz, String fieldName) {
		final Enum<?>[] enums = clazz.getEnumConstants();
		if (null == enums) {
			return null;
		}
		final Map<String, Object> map = MapUtil.newHashMap(enums.length);
		for (Enum<?> e : enums) {
			map.put(e.name(), ReflectUtil.getFieldValue(e, fieldName));
		}
		return map;
	}
223518
@SuppressWarnings("unchecked")
    public <V> DynamoDBMapperFieldModel<T,V> field(final String attributeName) {
        final DynamoDBMapperFieldModel<T,V> field = (DynamoDBMapperFieldModel<T,V>)fields.get(attributeName);
        if (field == null) {
            throw new DynamoDBMappingException(
                targetType.getSimpleName() + "[" + attributeName + "]; no mapping for attribute by name"
            );
        }
        return field;
    }
1335044
@Override
    @SuppressWarnings("StringEquality")
    public Object getField(String name) throws UnresolvedException{
        if(name=="method")
            return method==null ? null : method.toString();
        else if(name=="uri")
            return uri;
        else if(name=="line")
            return method+" "+uri+' '+version;
        else if(name=="query_string"){
            if(uri==null)
                return null;
            int question = uri.indexOf('?');
            return question==-1 ? "" : uri.substring(question+1);
        }else if(name=="cookies")
            return getCookies();
        else
            return super.getField(name);
    }
28567
public Item getFieldItem(String name) {
        if (xfa.isXfaPresent()) {
            name = xfa.findFieldName(name, this);
            if (name == null)
                return null;
        }
        return (Item)fields.get(name);
    }
664067
public static Field getRequiredField(Class type, String name) {
        try {
            return type.getDeclaredField(name);
        } catch (NoSuchFieldException e) {
            Optional<Field> field = findField(type, name);
            return field.orElseThrow(() -> new NoSuchFieldError("No field '" + name + "' found for type: " + type.getName()));
        }
    }
257912
@SuppressWarnings("unchecked")
    public static <T> T getBean(String name) {
        BeanManager bm = getBeanManager();
        Bean<?> bean = bm.getBeans(name).iterator().next();
        CreationalContext<?> ctx = bm.createCreationalContext(bean);
        return (T) bm.getReference(bean, bean.getBeanClass(), ctx);
    }
473999
public static Field getField(Class clazz, String fieldName) {
        if (Map.class.isAssignableFrom(clazz)) {
            return new Field(new MapField(fieldName));
        }
        java.lang.reflect.Field field = null;
        while (field == null && clazz != null) {
            try {
                field = clazz.getDeclaredField(fieldName);
                field.setAccessible(true);
            } catch (Exception e) {
                clazz = clazz.getSuperclass();
            }
        }
        return new Field(field);
    }
520021
public function getField( $name )
	{
		if( !$this->hasField( $name ) )
			return NULL;
		$values	= $this->getFieldsByName( $name );
		return array_shift( $values );
	}
437949
def get_field_by_name(self, name):
        

        for f in self.fields:
            if f.get_name() == name:
                return f
        return None
213090
public ObjectStreamField getField(String name) {
        ObjectStreamField[] allFields = getFields();
        for (int i = 0; i < allFields.length; i++) {
            ObjectStreamField f = allFields[i];
            if (f.getName().equals(name)) {
                return f;
            }
        }
        return null;
    }
364797
public function getField($name)
    {
        if (array_key_exists($name, $this->fields)) {
            return $this->fields[$name];
        }
        else if (array_key_exists($name, $this->fieldAliases)) {
            $name = $this->fieldAliases[$name];
            return $this->fields[$name];
        }
        return null;
    }
620198
@Override
    @SuppressWarnings("StringEquality")
    public Object getField(String name) throws UnresolvedException{
        if(name=="protocol")
            return getSession().getProtocol();
        else if(name=="cipher")
            return getSession().getCipherSuite();
        else if(name=="local")
            return new CertificateBean((X509Certificate)getSession().getLocalCertificates()[0]);
        else if(name=="peer"){
            try{
                return new CertificateBean((X509Certificate)getSession().getPeerCertificates()[0]);
            }catch(SSLPeerUnverifiedException ex){
                return null;
            }
        }else
            throw new UnresolvedException(name);
    }
1184135
private static String mappingKey(Map<String, String> mapping, String fieldName) {
		if (MapUtil.isEmpty(mapping)) {
			return fieldName;
		}
		return ObjectUtil.defaultIfNull(mapping.get(fieldName), fieldName);
	}
204691
public MLArray getField(String name, int m, int n)
    {
        return getField(name, getIndex(m,n) );
    }
808051
public String getTranslatedFieldName(String name) {
        if (xfa.isXfaPresent()) {
            String namex = xfa.findFieldName(name, this);
            if (namex != null)
                name = namex;
        }
        return name;
    }