Code example for Attributes

Methods: get

0
    public final String getPackageName() {
        return packageName;
    } 
 
    public final String getAttribute(Attributes.Name attributeName) {
        return (null != attributeName) ? (String) mainAttributes.get(attributeName) : null;
    } 
 
    public final String getAttribute(String attributeName) {
        return getAttribute(getAttributeName(attributeName));
    } 
 
    public final Attributes.Name getAttributeName(String attributeName) {
        for (Iterator<?> iter = mainAttributeNames.iterator(); iter.hasNext();) {
            Attributes.Name an = (Attributes.Name) iter.next();
            if (an.toString().equals(attributeName)) {
                return an;
            } 
        } 
        return null; 
Connect your IDE to all the code out there  Get Codota for Java