/* (non-Javadoc)
@see org.overture.ide.internal.core.resources.IOptionGroup#getAttribute(java.lang.String, java.lang.String)
331848
public synchronized String getAttribute(String key, String defaultValue)
	{
		if(attributes.containsKey(key))
		{
			return attributes.get(key).toString();
		}
		return defaultValue;
	}
13835
public String getAttribute(String section, String name) {
        Attributes attr = getManifest().getAttributes(section);
        return attr != null ? attr.getValue(name) : null;
    }
1307827
@Override
	public String getAttribute(String name) {
		final String sourceMethod = "getAttribute"; //$NON-NLS-1$
		boolean isTraceLogging = log.isLoggable(Level.FINER);
		if (isTraceLogging) {
			log.entering(AggregatorExtension.class.getName(), sourceMethod, new Object[]{name});
		}
		String result = attributes.getProperty(name);
		if (result != null && aggregator != null) {
			result = aggregator.substituteProps(result);
		}
		if (isTraceLogging) {
			log.exiting(AggregatorExtension.class.getName(), sourceMethod, result);
		}
		return result;
	}
993249
public Object getAttribute(String attrName) {
        Lock lock = lockForRead();
        try {
            return attributes != null ? attributes.get(attrName) : null;
        } finally {
            lock.unlock();
        }
    }
28459
public String getAttribute(final String name) {
        for(AttributeInfo item : attributes) {
            if(item.name.equals(name)) {
                return item.value;
            }
        }
        
        return null;
    }
123785
public Attribute<T, Serializable> getAttribute(String fieldname) {
        if (fieldname == null) return null;
        return this.attributeMap.get(fieldname);
    }
667100
protected String getElementAttribute(Element element, String attrName)
    {
        Attr attr = element.getAttributeNode(attrName);
        return attr != null ? attr.getValue() : null;
    }
831317
public Object getAttribute(String attributeName) {
    if (attributeName.equals("count")) {
      return reportable.getCount();
    } else if (attributeName.equals("timerSum")) {
      return reportable.getTimerSum();
    } else if (attributeName.equals("average")) {
      return (reportable.getTimerAvg());
    } else if (attributeName.equals("stdDeviation")) {
      return (reportable.getTimerStdDev());
    }
    return null;
  }
741531
@Nullable
    public String getString(String name) {
        Attribute attribute = get(name);
        if (attribute == null) {
            return null;
        }
        return attribute.getValue();
    }
1210641
public final String getAttribute(final BodyQName attr) {
        Map<BodyQName, String> attrs = getAttributes();
        return attrs.get(attr);
    }
1186736
public IAttributeBehavior getAttribute(final String attributeName) {
        AttributeImpl attr = dynamicAttributes.get(attributeName.toLowerCase(Locale.ENGLISH));
        if (attr == null) return null;
        else return attr.getBehavior();
    }
29736
public String getAttributeValue(String name) {
        Attr att = node.getAttributeNode(name);
        if (att == null) return null;
        return att.getNodeValue();
    }
444798
public Object getAttribute(String name)
    {
        if (_attributes==null)
            return null;
        return _attributes.get(name);
    }
1153726
@Override
	public String getAttribute(String attributeName) throws WidgetException {
		try {
			WebElement webElement = null;
			String attr = null;

			// WebDriver get attribute
			try {
				webElement = findElement();
				attr = webElement.getAttribute(attributeName);
				highlight(HIGHLIGHT_MODES.GET);
			} catch (NoSuchElementException e) {
				throw e;
			}

			if (attr != null && !attr.equals("")) {
				return attr;
			}

			return "";
		} catch (Exception e) {
			throw new WidgetException("Error while fetching attribute " + attributeName, locator, e);
		}
	}
607717
@SuppressWarnings("unchecked")
    public <T> T getAttribute(final String _attributeName)
        throws EFapsException
    {
        final OneSelect oneselect = this.attr2OneSelect.get(_attributeName);
        return oneselect == null ? null : (T) oneselect.getObject();
    }
1369845
@Override
	public Attribute getAttribute(int index) {
		Attribute attribute = attributes.get(index - 1);
		return attribute;
	}
168992
public String getAttributeID(String name) {
    Map<String, String> m = this.getMapping();
    return m != null ? m.get(name) : null;
  }