Exemple #1
0
 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;
 }
Exemple #2
0
 public String getType(String name) {
   if (idAttributeIndex == UNKNOWN_INDEX) idAttributeIndex = event.getIdAttributeIndex();
   if (idAttributeIndex >= 0 && event.getAttributeName(idAttributeIndex).equals(name)) return "ID";
   return "CDATA";
 }
Exemple #3
0
 public String getType(int i) {
   if (idAttributeIndex == UNKNOWN_INDEX) idAttributeIndex = event.getIdAttributeIndex();
   return i == idAttributeIndex ? "ID" : "CDATA";
 }
Exemple #4
0
 public String getValue(String name) {
   return event.getAttributeValue(name);
 }
Exemple #5
0
 public String getValue(int i) {
   return event.getAttributeValue(i);
 }
Exemple #6
0
 public String getName(int i) {
   return event.getAttributeName(i);
 }
Exemple #7
0
 public int getLength() {
   return event.getAttributeCount();
 }