source: TraumaOntologies/src/main/java/tudelft/healthpsychology/traumaontologies/answerstate/Property.java

Last change on this file was 5, checked in by Bart Vastenhouw, 5 years ago

Intermediate update

File size: 1.2 KB
Line 
1package tudelft.healthpsychology.traumaontologies.answerstate;
2
3import com.fasterxml.jackson.annotation.JsonAutoDetect;
4import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
5import com.fasterxml.jackson.annotation.JsonSubTypes;
6import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
7import com.fasterxml.jackson.annotation.JsonTypeInfo;
8
9import tudelft.healthpsychology.traumaontologies.owltree.OwlProperty;
10import 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) })
23public 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.