public class QuestionRulesGenerator extends ServiceableGenerator
SurveyQuestion
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
QuestionRulesGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
generate() |
void |
saxRule(SurveyPage surveyPage)
SAX page rule
|
void |
saxRules(SurveyQuestion question,
int number)
SAX rules
|
void |
service(ServiceManager serviceManager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected AmetysObjectResolver _resolver
public QuestionRulesGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
public void saxRules(SurveyQuestion question, int number) throws SAXException
question
- the questionnumber
- the question numberSAXException
- if an error occurs while saxingpublic void saxRule(SurveyPage surveyPage) throws SAXException
surveyPage
- the survey pageSAXException
- if an error occurs while saxing