code: private void  parseAttributesStyle(SvgElementBase obj, Attributes attributes) throws SVGParseException
     {
        for (int i=0; i<attributes.getLength(); i++)
        {
           String  val = attributes.getValue(i).trim();
           if (val.length() == 0) {  // Empty attribute. Ignore it.
              continue;
           }
           //boolean  inherit = val.equals("inherit");   // NYI
  
           switch (SVGAttr.fromString(attributes.getLocalName(i)))
           {
              case style:
                 parseStyle(obj, val);
                 break;
  
              case CLASS:
                 obj.classNames = CSSParser.parseClassAttribute(val);
                 break;
  
              default:
                 if (obj.baseStyle == null)
                    obj.baseStyle = new Style();
                 processStyleProperty(obj.baseStyle, attributes.getLocalName(i), attributes.getValue(i).trim());
                 break;
           }
        }
     }
docs: /*
  Parse the style attributes for an element.