|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
net.sourceforge.chaperon.model.lexicon.LexiconFactory
This class should generate a lexicon from a SAX stream
Field Summary | |
static java.lang.String |
ALTERNATION_ELEMENT
Element name |
static java.lang.String |
BEGINOFLINE_ELEMENT
Element name |
static java.lang.String |
CHARACTERCLASS_ELEMENT
Element name |
static java.lang.String |
CHARACTERINTERVAL_ELEMENT
Element name |
static java.lang.String |
CHARACTERINTERVAL_MAX_ATTRIBUTE
Attribute name of the max property |
static java.lang.String |
CHARACTERINTERVAL_MIN_ATTRIBUTE
Attribute name of the min property |
static java.lang.String |
CHARACTERSET_CHARACTERS_ATTRIBUTE
Attribute name of the characters property |
static java.lang.String |
CHARACTERSET_ELEMENT
Element name |
static java.lang.String |
CHARACTERSTRING_ELEMENT
Element name |
static java.lang.String |
CHARACTERSTRING_SEQUENCE_ATTRIBUTE
Attribute name of the sequence property |
static java.lang.String |
CODE_ATTRIBUTE
|
static java.lang.String |
CONCATENATION_ELEMENT
Element name |
static java.lang.String |
ENDOFLINE_ELEMENT
Element name |
static java.lang.String |
EXCLUSIVE_ATTRIBUTE
Attribute name of the exclusive property |
static java.lang.String |
GROUP_ELEMENT
Element name |
static java.lang.String |
LEXEME_ELEMENT
Element name |
static java.lang.String |
LEXICON_ELEMENT
Element name |
static java.lang.String |
MAXOCCURS_ATTRIBUTE
Attribute name of the minOccurs property |
static java.lang.String |
MINOCCURS_ATTRIBUTE
Attribute name of the minOccurs property |
static java.lang.String |
NS
The namspace of the lexicon configuration |
static java.lang.String |
SYMBOL_ATTRIBUTE
Attribute name of the symbol property |
static java.lang.String |
UNIVERSALCHARACTER_ELEMENT
Element name |
Constructor Summary | |
LexiconFactory()
|
Method Summary | |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Receive notification of the end of an element. |
Lexicon |
getLexicon()
Returns the generated lexicon |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Receive an object for locating the origin of SAX document events. |
void |
startDocument()
Receive notification of the beginning of a document. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Receive notification of the beginning of an element. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NS
public static final java.lang.String LEXEME_ELEMENT
public static final java.lang.String SYMBOL_ATTRIBUTE
public static final java.lang.String LEXICON_ELEMENT
public static final java.lang.String ALTERNATION_ELEMENT
public static final java.lang.String BEGINOFLINE_ELEMENT
public static final java.lang.String CHARACTERCLASS_ELEMENT
public static final java.lang.String EXCLUSIVE_ATTRIBUTE
public static final java.lang.String CHARACTERINTERVAL_ELEMENT
public static final java.lang.String CHARACTERINTERVAL_MIN_ATTRIBUTE
public static final java.lang.String CHARACTERINTERVAL_MAX_ATTRIBUTE
public static final java.lang.String CHARACTERSTRING_ELEMENT
public static final java.lang.String CHARACTERSTRING_SEQUENCE_ATTRIBUTE
public static final java.lang.String CHARACTERSET_ELEMENT
public static final java.lang.String CHARACTERSET_CHARACTERS_ATTRIBUTE
public static final java.lang.String CODE_ATTRIBUTE
public static final java.lang.String CONCATENATION_ELEMENT
public static final java.lang.String GROUP_ELEMENT
public static final java.lang.String UNIVERSALCHARACTER_ELEMENT
public static final java.lang.String ENDOFLINE_ELEMENT
public static final java.lang.String MINOCCURS_ATTRIBUTE
public static final java.lang.String MAXOCCURS_ATTRIBUTE
Constructor Detail |
public LexiconFactory()
Method Detail |
public Lexicon getLexicon()
public void setDocumentLocator(org.xml.sax.Locator locator)
public void startDocument()
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
namespaceURI
- The Namespace URI, or the empty string if the element has no Namespace URI
or if Namespace processing is not being performed.localName
- The local name (without prefix), or the empty string if Namespace processing
is not being performed.qName
- The raw XML 1.0 name (with prefix), or the empty string if raw names are not
available.atts
- The attributes attached to the element. If there are no attributes, it shall be an
empty Attributes object.
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
namespaceURI
- The Namespace URI, or the empty string if the element has no Namespace URI
or if Namespace processing is not being performed.localName
- The local name (without prefix), or the empty string if Namespace processing
is not being performed.qName
- The raw XML 1.0 name (with prefix), or the empty string if raw names are not
available.
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |