Rev | Line | |
---|
[4] | 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 |
|
---|
[5] | 9 | import tudelft.healthpsychology.traumaontologies.owltree.OwlProperty;
|
---|
| 10 | import tudelft.healthpsychology.traumaontologies.questiontypes.TypedQuestion;
|
---|
[4] | 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)
|
---|
[5] | 22 | @JsonSubTypes({ @Type(value = OwlProperty.class) })
|
---|
[4] | 23 | public interface Property {
|
---|
| 24 |
|
---|
| 25 | /**
|
---|
| 26 | * @return the AnswerType contained in this property: the question and the
|
---|
| 27 | * expected type of answer.
|
---|
| 28 | */
|
---|
[5] | 29 | TypedQuestion getQuestionType();
|
---|
[4] | 30 |
|
---|
| 31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.