lux.index
Class QNameTextMapper

java.lang.Object
  extended by lux.index.XmlPathMapper
      extended by lux.index.QNameTextMapper
All Implemented Interfaces:
StAXHandler

public class QNameTextMapper
extends XmlPathMapper

Accumulates text for each element and each attribute.


Field Summary
 
Fields inherited from class lux.index.XmlPathMapper
currentPath, currentQName
 
Constructor Summary
QNameTextMapper()
           
 
Method Summary
 ArrayList<String> getNames()
           
 ArrayList<String> getValues()
           
 void handleEvent(XMLStreamReader reader, int eventType)
          This method receives StAX events.
 void reset()
          reinitialize any internal state and prepare the handler for re-use
 
Methods inherited from class lux.index.XmlPathMapper
encodeQName, getAttQNameCounts, getEltQNameCounts, getEventAttQName, getPathCounts, isNamespaceAware, setNamespaceAware
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QNameTextMapper

public QNameTextMapper()
Method Detail

getValues

public ArrayList<String> getValues()

getNames

public ArrayList<String> getNames()

reset

public void reset()
Description copied from interface: StAXHandler
reinitialize any internal state and prepare the handler for re-use

Specified by:
reset in interface StAXHandler
Overrides:
reset in class XmlPathMapper

handleEvent

public void handleEvent(XMLStreamReader reader,
                        int eventType)
Description copied from interface: StAXHandler
This method receives StAX events. It should never call XMLStreamReader.next() since if it does, its caller will miss the event.

Specified by:
handleEvent in interface StAXHandler
Overrides:
handleEvent in class XmlPathMapper
Parameters:
reader - the reader from which events are being read
eventType - the XML stream event type


Copyright © 2013. All Rights Reserved.