public class VocabularyGenerator
extends java.lang.Object
FrequencyBasedLists
.Modifier and Type | Class and Description |
---|---|
static class |
VocabularyGenerator.XmlApi
Deprecated.
Constants for the various XML-based APIs
|
Modifier and Type | Field and Description |
---|---|
private ParserVocabulary |
_parserVocabulary
Deprecated.
|
private SerializerVocabulary |
_serializerVocabulary
Deprecated.
|
private VocabularyGenerator.XmlApi |
_xapi
Deprecated.
|
Constructor and Description |
---|
VocabularyGenerator(FrequencyBasedLists fbl,
VocabularyGenerator.XmlApi xapi)
Deprecated.
|
VocabularyGenerator(SerializerVocabulary serializerVocabulary,
ParserVocabulary parserVocabulary,
FrequencyBasedLists fbl,
VocabularyGenerator.XmlApi xapi)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private void |
addToNameTable(javax.xml.namespace.QName n,
LocalNameQualifiedNamesMap m,
QualifiedNameArray a,
boolean isAttribute)
Deprecated.
|
private void |
addToTable(java.lang.String s,
CharArrayIntMap m,
ContiguousCharArrayArray a)
Deprecated.
|
private void |
addToTable(java.lang.String s,
StringIntMap m,
PrefixArray a)
Deprecated.
|
private void |
addToTable(java.lang.String s,
StringIntMap m,
StringArray a)
Deprecated.
|
private void |
generate(FrequencyBasedLists fbl)
Deprecated.
|
ParserVocabulary |
getParserVocabulary()
Deprecated.
Get the generated parser vocabulary.
|
SerializerVocabulary |
getSerializerVocabulary()
Deprecated.
Get the generated serializer vocabulary.
|
static void |
main(java.lang.String[] args)
Deprecated.
|
private VocabularyGenerator.XmlApi _xapi
private SerializerVocabulary _serializerVocabulary
private ParserVocabulary _parserVocabulary
public VocabularyGenerator(FrequencyBasedLists fbl, VocabularyGenerator.XmlApi xapi)
fbl
- the set of frequency-based lists.xapi
- the XML API that the parser and serializer vocabulary
will be used with.public VocabularyGenerator(SerializerVocabulary serializerVocabulary, ParserVocabulary parserVocabulary, FrequencyBasedLists fbl, VocabularyGenerator.XmlApi xapi)
serializerVocabulary
- the serializer vocabualry to useparserVocabulary
- the parser vocabulary to usefbl
- the set of frequency-based lists.xapi
- the XML API that the parser and serializer vocabulary
will be used with.public SerializerVocabulary getSerializerVocabulary()
public ParserVocabulary getParserVocabulary()
private void generate(FrequencyBasedLists fbl)
private void addToNameTable(javax.xml.namespace.QName n, LocalNameQualifiedNamesMap m, QualifiedNameArray a, boolean isAttribute)
private void addToTable(java.lang.String s, StringIntMap m, StringArray a)
private void addToTable(java.lang.String s, StringIntMap m, PrefixArray a)
private void addToTable(java.lang.String s, CharArrayIntMap m, ContiguousCharArrayArray a)
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- the command line arguments. arg[0] is the path to a schema,
args[1] to args[n] are the paths to XML documents.java.lang.Exception