Retrieves a value for a specific manifest attribute.
Or null if not found

@param attributeName to locate in the manifest
@return String value for or null case not found
338835
public String getManifestAttribute(String attributeName) {
	    if (attributeName != null) {
    	    Map<Object,Object> mf = getManifestAttributes();
            for (Object att : mf.keySet()) {
                if (attributeName.equals(att.toString())) {
                    return mf.get(att).toString(); 
                }
            }
	    }
	    
	    //In case not found return null;
	    return null;
	}
776593
public String getAttributeValue(final String name) {
        final List<Attribute> attributes = Collections.synchronizedList(getAttributes());
        for (int i = 0; i < attributes.size(); i++) {
            final Attribute a = attributes.get(i);

            if (a.getName() != null && a.getName().equals(name)) {
                return a.getValue();
            }
        }
        return null;
    }
1163132
public RuleMetadata getMetaData(String attributeName) {

        if (metadataList != null && attributeName != null) {
            for (int i = 0; i < metadataList.length; i++) {
                if (attributeName.equals(metadataList[i].getAttributeName())) {
                    return metadataList[i];
                }
            }
        }
        return null;
    }
786335
public static String getfullAttributeNameForAttribute(final String attributeName) throws DevFailed {
        String result;
        final String[] fields = attributeName.split("/");
        final Database db = ApiUtil.get_db_obj();
        if (attributeName.contains(DBASE_NO)) {
            result = attributeName;
        } else if (fields.length == 1) {
            result = db.get_attribute_from_alias(fields[0]);
        } else if (fields.length == 2) {
            result = db.get_device_from_alias(fields[0]) + "/" + fields[1];
        } else {
            result = attributeName;
        }
        return result;
    }
1158403
public Attribute getAttribute(String attrName) {
    Attribute attr = getCachedOwnAttrs().get(attrName);
    if (attr == null) {
      // look up attribute in parent entity
      EntityType extendsEntityType = getExtends();
      if (extendsEntityType != null) {
        attr = extendsEntityType.getAttribute(attrName);
      }
    }
    return attr;
  }
1214458
public String getString(T name) {
         return (attributes.containsKey(name)) ? attributes.get(name)[0] : null;
    }
168992
public String getAttributeID(String name) {
    Map<String, String> m = this.getMapping();
    return m != null ? m.get(name) : null;
  }
702025
protected function getLayoutAttributeWithNamespace(array $attributes, $contentName)
    {
        if (isset($attributes['layout']) === false) {
            return '';
        }

        if (is_string($attributes['layout']) === false) {
            throw new AttributeValueException('Invalid value. Expected string.', 'layout', $contentName);
        }

        if (strlen($attributes['layout']) == 0) {
            throw new AttributeValueException('Invalid value. Expected a non-empty string.', 'layout', $contentName);
        }

        return $this->getLayoutNameWithNamespace($attributes['layout']);
    }
36943
public function getAttribute($pName)
    {
        if (isset($this->attributes[$pName])) {
            return $this->attributes[$pName];
        }
        return null;
    }
875327
public static ResultAttribute valueOf(@Nonnull String attributeName) {
		ResultAttribute value;
		switch (attributeName) {
			case "TYPE_NAME":
				value = TYPE_NAME;
				break;
			case "OBJ_DOMAIN":
				value = OBJ_DOMAIN;
				break;
			case "CLASS_NAME":
				value = CLASS_NAME;
				break;
			case "ATTRIBUTE_NAME":
				value = ATTRIBUTE_NAME;
				break;
			default:
				throw new IllegalArgumentException("Invalid value " + attributeName);
		}
		return value;
	}
1044543
private Object extractAttributeValueIfAttributeQueryConstant(String attributeName) {
        if (KEY_ATTRIBUTE_NAME.value().equals(attributeName)) {
            return getKey();
        } else if (THIS_ATTRIBUTE_NAME.value().equals(attributeName)) {
            return getValue();
        }
        return null;
    }
450478
public Attribute getAttributeByName(String name) {
		for (Attribute a : attributes)
			if (name.equals(a.getName()))
				return a;
		return null;
	}
389465
public String getManifestAttribute(final Attributes.Name name)
	{
		if (getManifest() != null)
		{
			final Attributes attributes = getManifest().getMainAttributes();
			final Object value = attributes.get(name);
			if (value != null)
			{
				return value.toString().trim();
			}
		}
		return "";
	}
755985
public String getAttribute(String attributeName, String defaultValue)
	{
        String result = defaultValue;
        if (m_attributeList!=null)
        {
            result = (String)m_attributeList.get(attributeName);
            if (result==null)
            {
                result = defaultValue;
            }
        }
        return result;
	}
991941
public static AttributeKeyAndValue getAttributeKeyValueByName(final ListObjectAttributesResult attributesResult,
                                                                  final String attributeName) {
        return attributesResult.getAttributes().stream()
            .filter(a -> a.getKey().getName().equalsIgnoreCase(attributeName))
            .findFirst()
            .orElse(null);
    }
254984
protected String getElementName(String attributeName) {

        if (attributeName.contains("/")) {
            return attributeName.substring(attributeName.lastIndexOf("/") + 1);
        }
        return attributeName;
    }
1211930
function(node, tagNames, attributeName) {
			var i = tagNames.length;

			while(i--) {
				if(node.tagName.toLowerCase() === tagNames[i]) {
					var attrValue = this.getAttribute(node, attributeName);
					if(attrValue && attrValue !== '') {
						return attrValue;
					}
				}
			}
			return null;
		}