*/
public void initializePAPIAttributes(PAPIContentHandlerContext context,
Attributes saxAttributes, PAPIAttributes papiAttributes)
throws SAXException {
PickleInlineAttributes attributes =
(PickleInlineAttributes)papiAttributes;
attributes.setElementName(elementName);
if (logger.isDebugEnabled()) {
logger.debug("setElementName (" + elementName + ")");
}
Map attrsMap = new HashMap();
for (int i = 0; i < saxAttributes.getLength(); i++) {
String name = saxAttributes.getLocalName(i);
String value = saxAttributes.getValue(i);
attrsMap.put(name, value);
if (logger.isDebugEnabled ()) {
logger.debug ("setAttributes (" + name + "=" + value + ")");
}
}
attributes.setAttributes(attrsMap);
}