public void startElement(StartElementEvent event) throws SAXException { flushData(); this.event = event; this.locatedEvent = event; this.idAttributeIndex = UNKNOWN_INDEX; documentHandler.startElement(event.getName(), this); this.locatedEvent = null; }
public String getType(String name) { if (idAttributeIndex == UNKNOWN_INDEX) idAttributeIndex = event.getIdAttributeIndex(); if (idAttributeIndex >= 0 && event.getAttributeName(idAttributeIndex).equals(name)) return "ID"; return "CDATA"; }
public String getType(int i) { if (idAttributeIndex == UNKNOWN_INDEX) idAttributeIndex = event.getIdAttributeIndex(); return i == idAttributeIndex ? "ID" : "CDATA"; }
public String getValue(String name) { return event.getAttributeValue(name); }
public String getValue(int i) { return event.getAttributeValue(i); }
public String getName(int i) { return event.getAttributeName(i); }
public int getLength() { return event.getAttributeCount(); }