int size = attributes.getLength(); for (int i = 0; i < size; i++) { String key = attributes.getQName(i); String value = attributes.getValue(i);  if (key.equals(ParserConstants.NAME_ATTRIBUTE)) { component.setName(value); PropertyValueDescription nameProperty = new PropertyValueDescription(); nameProperty.setName(ComponentConstants.COMPONENT_NAME); nameProperty.setValue(value); component.addPropertyDescription(nameProperty); continue; } if (key.equals(ParserConstants.ENABLED_ATTRIBUTE)) { component.setAutoenable(value.equalsIgnoreCase("true")); continue; } if (key.equals(ParserConstants.FACTORY_ATTRIBUTE)) { component.setFactory(value); continue; } if (key.equals(ParserConstants.IMMEDIATE_ATTRIBUTE)) { component.setImmediate(value.equalsIgnoreCase("true")); immediateSet = true; continue; } root.logError("unrecognized component element attribute: " + key); }
processAttributes(attributes);
	ComponentElement(ParserHandler root, Attributes attributes) {		this.root = root;		this.parent = root;		component = new ComponentDescription(root.bundleContext);		immediateSet = false;		int size = attributes.getLength();		for (int i = 0; i < size; i++) {			String key = attributes.getQName(i);			String value = attributes.getValue(i);			if (key.equals(ParserConstants.NAME_ATTRIBUTE)) {				component.setName(value);				PropertyValueDescription nameProperty = new PropertyValueDescription();				nameProperty.setName(ComponentConstants.COMPONENT_NAME);				nameProperty.setValue(value);				component.addPropertyDescription(nameProperty);				continue;			}			if (key.equals(ParserConstants.ENABLED_ATTRIBUTE)) {				component.setAutoenable(value.equalsIgnoreCase("true"));				continue;			}			if (key.equals(ParserConstants.FACTORY_ATTRIBUTE)) {				component.setFactory(value);				continue;			}			if (key.equals(ParserConstants.IMMEDIATE_ATTRIBUTE)) {				component.setImmediate(value.equalsIgnoreCase("true"));				immediateSet = true;				continue;			}			root.logError("unrecognized component element attribute: " + key);		}		if (component.getName() == null) {			root.logError("component name not specified");		}	}