public class SemanticAnnotationsEditionHandler extends AbstractHTMLEditionHandler
Modifier and Type | Class and Description |
---|---|
private class |
SemanticAnnotationsEditionHandler.AbstractSaxedSemanticAnnotation
A semantic annotation defined through a serie of SAX events.
|
private class |
SemanticAnnotationsEditionHandler.SemanticAnnotationsHolder
A placeholder for saxedSemanticAnnotations
Maintains a list of the saxedSemanticAnnotations.
|
Modifier and Type | Field and Description |
---|---|
private static String |
__ANNOTATION_ATTRIBUTE |
private static String |
__ANNOTATION_TAG_NAME |
(package private) SemanticAnnotationsEditionHandler.SemanticAnnotationsHolder |
_annotationsHolder |
_contentHandler, _context, _lexicalHandler, _manager
Constructor and Description |
---|
SemanticAnnotationsEditionHandler() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Dispatch the characters event to semanticAnnotations.
|
void |
endElement(String uri,
String loc,
String raw)
Dispatch the endElement event to semanticAnnotations.
|
void |
startDocument()
When document starts, a holder of semanticAnnotations is created
|
void |
startElement(String uri,
String loc,
String raw,
Attributes attrs)
Dispatch the startElement event to semanticAnnotations.
|
comment, contextualize, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, service, setContentHandler, setDocumentLocator, setLexicalHandler, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMapping
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private static final String __ANNOTATION_TAG_NAME
private static final String __ANNOTATION_ATTRIBUTE
SemanticAnnotationsEditionHandler.SemanticAnnotationsHolder _annotationsHolder
public SemanticAnnotationsEditionHandler()
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class AbstractHTMLEditionHandler
SAXException
AbstractHTMLEditionHandler.startDocument()
public void startElement(String uri, String loc, String raw, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class AbstractHTMLEditionHandler
SAXException
AbstractHTMLEditionHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class AbstractHTMLEditionHandler
SAXException
AbstractHTMLEditionHandler.characters(char[], int, int)
public void endElement(String uri, String loc, String raw) throws SAXException
endElement
in interface ContentHandler
endElement
in class AbstractHTMLEditionHandler
SAXException
AbstractHTMLEditionHandler.characters(char[], int, int)