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, startPrefixMappingenableLogging, getLogger, setupLogger, setupLogger, setupLoggerprivate 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 ContentHandlerstartDocument in class AbstractHTMLEditionHandlerSAXExceptionAbstractHTMLEditionHandler.startDocument()public void startElement(String uri, String loc, String raw, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class AbstractHTMLEditionHandlerSAXExceptionAbstractHTMLEditionHandler.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 ContentHandlercharacters in class AbstractHTMLEditionHandlerSAXExceptionAbstractHTMLEditionHandler.characters(char[], int, int)public void endElement(String uri, String loc, String raw) throws SAXException
endElement in interface ContentHandlerendElement in class AbstractHTMLEditionHandlerSAXExceptionAbstractHTMLEditionHandler.characters(char[], int, int)