public class FrequencyHandler extends org.xml.sax.helpers.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, warningpublic 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 ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2016 Oracle Corpration. All rights reserved.