Class SemanticAnnotationsEditionHandler.AbstractSaxedSemanticAnnotation
- java.lang.Object
-
- org.ametys.cms.transformation.htmledition.SemanticAnnotationsEditionHandler.AbstractSaxedSemanticAnnotation
-
- Enclosing class:
- SemanticAnnotationsEditionHandler
private abstract class SemanticAnnotationsEditionHandler.AbstractSaxedSemanticAnnotation extends Object
A semantic annotation defined through a serie of SAX events. The abstract onAnnotationReady() method takes care of the annotation as soon as it is fully SAXed.
-
-
Field Summary
Fields Modifier and Type Field Description private int
_cptrElementsInsideSemanticAnnotation
private String
_currentAnnotationName
private StringBuilder
_currentAnnotationValue
private boolean
_hasFinished
-
Constructor Summary
Constructors Constructor Description AbstractSaxedSemanticAnnotation(String annotationName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
endElement()
String
getCurrentAnnotationName()
StringBuilder
getCurrentAnnotationValue()
boolean
hasFinished()
abstract void
onAnnotationReady()
void
startElement()
-
-
-
Field Detail
-
_currentAnnotationName
private final String _currentAnnotationName
-
_cptrElementsInsideSemanticAnnotation
private int _cptrElementsInsideSemanticAnnotation
-
_currentAnnotationValue
private final StringBuilder _currentAnnotationValue
-
_hasFinished
private boolean _hasFinished
-
-
Constructor Detail
-
AbstractSaxedSemanticAnnotation
public AbstractSaxedSemanticAnnotation(String annotationName)
-
-
Method Detail
-
startElement
public void startElement()
-
endElement
public void endElement() throws Exception
- Throws:
Exception
-
onAnnotationReady
public abstract void onAnnotationReady() throws Exception
- Throws:
Exception
-
characters
public void characters(char[] ch, int start, int length)
-
getCurrentAnnotationName
public String getCurrentAnnotationName()
-
getCurrentAnnotationValue
public StringBuilder getCurrentAnnotationValue()
-
hasFinished
public boolean hasFinished()
-
-