public abstract class AbstractQuestionEvent extends Object implements QuestionEvent
Constructor and Description |
---|
AbstractQuestionEvent()
Creates an event that can be triggered by any type of question.
|
AbstractQuestionEvent(String questionType)
Creates an event that can be triggered by a question of the specified type.
|
AbstractQuestionEvent(String questionType,
List<String> jobId)
Creates an event that can be triggered by a question of the specified type when asked by a job with the specified
id.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
List<String> |
getJobId() |
String |
getQuestionType() |
int |
hashCode() |
boolean |
matches(Object event) |
public AbstractQuestionEvent()
public AbstractQuestionEvent(String questionType)
questionType
- the type of question that can trigger this eventpublic AbstractQuestionEvent(String questionType, List<String> jobId)
questionType
- the type of question that can trigger this eventjobId
- the id of the job that raised the question that triggered this eventpublic String getQuestionType()
getQuestionType
in interface QuestionEvent
public List<String> getJobId()
getJobId
in interface QuestionEvent
public boolean matches(Object event)
matches
in interface org.xwiki.observation.event.Event
Copyright © 2004–2021 XWiki. All rights reserved.