Class FrequencyHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.sun.xml.analysis.frequency.FrequencyHandler
- All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
A SAX-based handler to collect the frequency of occurences of properties
of information items in one or more infosets.
- Author:
- Paul.Sandoz@Sun.Com
-
Constructor Summary
ConstructorsConstructorDescriptionThe default frequency handler.A frequency handler initiated with information generated from aSchemaProcessor. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidGenerate qualified names that have not been processed.getLists()Deprecated.org.jvnet.fastinfoset.VocabularyGet the vocabularyvoidstartElement(String uri, String localName, String qName, Attributes atts) voidstartPrefixMapping(String prefix, String uri) Methods inherited from class DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl, warning
-
Constructor Details
-
FrequencyHandler
public FrequencyHandler()The default frequency handler. -
FrequencyHandler
A frequency handler initiated with information generated from aSchemaProcessor.- Parameters:
sp- the schema processor.
-
-
Method Details
-
addXsiAttributes
public void addXsiAttributes() -
addQNameToElements
-
addQNameToAttributes
-
getLists
Deprecated.Get the frequency based lists of properties of information items.- Returns:
- the frequency based lists.
-
getVocabulary
public org.jvnet.fastinfoset.Vocabulary getVocabulary()Get the vocabulary- Returns:
- the vocabulary.
-
generateQNamesWithPrefix
public void generateQNamesWithPrefix()Generate qualified names that have not been processed.Prefixes are automatically chosen.
TODO: check for clashes with prefixes generated and prefixes that have already occured.
-
getNamespaceURIToPrefixMap
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classDefaultHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-