|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.sun.xml.analysis.frequency.FrequencyHandler
public class FrequencyHandler
A SAX-based handler to collect the frequency of occurences of properties of information items in one or more infosets.
| Constructor Summary | |
|---|---|
FrequencyHandler()
The default frequency handler. |
|
FrequencyHandler(SchemaProcessor sp)
A frequency handler initiated with information generated from a SchemaProcessor. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FrequencyHandler()
public FrequencyHandler(SchemaProcessor sp)
SchemaProcessor.
sp - the schema processor.| Method Detail |
|---|
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 Map<String,String> getNamespaceURIToPrefixMap()
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.DefaultHandlerSAXException
public void startElement(String uri,
String localName,
String qName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||