|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
edu.mit.jverbnet.util.parse.MappedHandler<SemanticDesc>
edu.mit.jverbnet.parse.SemanticDescHandler
public class SemanticDescHandler
Handles Verbnet XML blocks tagged with "SEMANTICS".
| Field Summary | |
|---|---|
static java.lang.String |
XML_TAG_SEMANTICS
|
| Fields inherited from class edu.mit.jverbnet.util.parse.MappedHandler |
|---|
messageIgnoringElementBlockExternal, messageMatcherIgnoreExternal, messageMatcherIgnoreInternal, messageParserNotSet, messageUnmappedElementBlockInternal, tagStack |
| Constructor Summary | |
|---|---|
SemanticDescHandler()
Creates a new SemanticDescHandler with no parent or parser. |
|
SemanticDescHandler(IHasParserHandler parent)
Creates a new SemanticDescHandler with the specified parent. |
|
SemanticDescHandler(org.xml.sax.XMLReader parser)
Creates a new SemanticDescHandler with the specified parser. |
|
SemanticDescHandler(org.xml.sax.XMLReader parser,
org.xml.sax.ContentHandler parent)
Creates a new SemanticDescHandler with the specified parser and parent. |
|
| Method Summary | |
|---|---|
protected void |
clearLocal()
Subclasses may override this method to add code to be invoked when MappedHandler.clear() is called. |
SemanticDesc |
doGetElement()
If subclasses intend to use the MappedHandler.getElement() method, they should
override this method to provide the code that constructs the object
corresponding to the tagged block. |
protected void |
initHandlerMap(java.util.Map<java.lang.String,org.xml.sax.ContentHandler> map)
Adds handlers to the element map. |
| Methods inherited from class edu.mit.jverbnet.util.parse.MappedHandler |
|---|
checkParserSet, clear, endElement, endTaggedBlock, getDocumentLocator, getElement, getHandlerMappings, getParent, getParser, getTag, getTaggedBlockTasks, handleUnmappedEndElement, handleUnmappedStartElement, isInsideTaggedBlock, reportWarning, reportWarnings, setDocumentLocator, setParent, setParser, setReportWarnings, startElement, startTaggedBlock |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity, startDocument, startPrefixMapping |
| Field Detail |
|---|
public static final java.lang.String XML_TAG_SEMANTICS
| Constructor Detail |
|---|
public SemanticDescHandler()
public SemanticDescHandler(IHasParserHandler parent)
parent - the parent of the handler; may be nullpublic SemanticDescHandler(org.xml.sax.XMLReader parser)
parser - the parser of the handler; may be null
public SemanticDescHandler(org.xml.sax.XMLReader parser,
org.xml.sax.ContentHandler parent)
parser - the parent of the handler; may be nullparent - the parser of the handler; may be null| Method Detail |
|---|
protected void initHandlerMap(java.util.Map<java.lang.String,org.xml.sax.ContentHandler> map)
MappedHandler
initHandlerMap in class MappedHandler<SemanticDesc>map - the map to which handlers should be addedprotected void clearLocal()
MappedHandlerMappedHandler.clear() is called.
clearLocal in class MappedHandler<SemanticDesc>public SemanticDesc doGetElement()
MappedHandlerMappedHandler.getElement() method, they should
override this method to provide the code that constructs the object
corresponding to the tagged block.
doGetElement in class MappedHandler<SemanticDesc>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||