@Override protected Annotation readEntity(JsonNode jn) { Annotation annotation = new AnnotationImpl(); fillCommentEntity(jn, annotation); annotation.setXpath(jn.get(ANNOTATION_XPATH).textValue()); return annotation; }
public static void documentModelToAnnotation(DocumentModel documentModel, Annotation annotation) { documentModelToComment(documentModel, annotation); annotation.setXpath((String) documentModel.getPropertyValue(ANNOTATION_XPATH_PROPERTY)); }