Last change
on this file since 7 was 5, checked in by Bart Vastenhouw, 5 years ago |
Intermediate update
|
File size:
1.2 KB
|
Line | |
---|
1 | package tudelft.healthpsychology.traumaontologies.answerstate;
|
---|
2 |
|
---|
3 | import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
---|
4 | import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
|
---|
5 | import com.fasterxml.jackson.annotation.JsonSubTypes;
|
---|
6 | import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
|
---|
7 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
---|
8 |
|
---|
9 | import tudelft.healthpsychology.traumaontologies.owltree.OwlProperty;
|
---|
10 | import tudelft.healthpsychology.traumaontologies.questiontypes.TypedQuestion;
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Atrributes of an {@link OntologyNode}. Each property node contains a question
|
---|
14 | * and the type of answer to be gotten from this question.
|
---|
15 | *
|
---|
16 | * <p>
|
---|
17 | * Property must be json-serializable (contain json annotations) because some
|
---|
18 | * {@link AnswerState}s (that need to be serialized) contain this.
|
---|
19 | */
|
---|
20 | @JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
|
---|
21 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.WRAPPER_OBJECT)
|
---|
22 | @JsonSubTypes({ @Type(value = OwlProperty.class) })
|
---|
23 | public interface Property {
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * @return the AnswerType contained in this property: the question and the
|
---|
27 | * expected type of answer.
|
---|
28 | */
|
---|
29 | TypedQuestion getQuestionType();
|
---|
30 |
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.