public class FrequencyHandler extends DefaultHandler
Constructor and Description |
---|
FrequencyHandler()
The default frequency handler.
|
FrequencyHandler(SchemaProcessor sp)
A frequency handler initiated with information generated from a
SchemaProcessor . |
Modifier and Type | Method and Description |
---|---|
void |
addQNameToAttributes(QName q) |
void |
addQNameToElements(QName q) |
void |
addXsiAttributes() |
void |
generateQNamesWithPrefix()
Generate qualified names that have not been processed.
|
FrequencyBasedLists |
getLists()
Deprecated.
|
Map<String,String> |
getNamespaceURIToPrefixMap() |
Vocabulary |
getVocabulary()
Get the vocabulary
|
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
void |
startPrefixMapping(String prefix,
String uri) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl, warning
public FrequencyHandler()
public FrequencyHandler(SchemaProcessor sp)
SchemaProcessor
.sp
- the schema processor.public void addXsiAttributes()
public void addQNameToElements(QName q)
public void addQNameToAttributes(QName q)
public FrequencyBasedLists getLists()
public Vocabulary getVocabulary()
public void generateQNamesWithPrefix()
Prefixes are automatically chosen.
TODO: check for clashes with prefixes generated and prefixes that have already occured.
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class DefaultHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
Copyright © 2016 Oracle Corpration. All rights reserved.