private void deleteArc(JCas aJCas, int aAddress) { AnnotationFS linkToDelete = WebAnnoCasUtil.selectByAddr(aJCas, AnnotationFS.class, aAddress); // Create the tail chain // We know that there must be a next link, otherwise no arc would have been rendered! newChain(aJCas, getNextLink(linkToDelete)); // Disconnect the tail from the head setNextLink(linkToDelete, null); }
private void deleteArc(JCas aJCas, int aAddress) { AnnotationFS linkToDelete = WebAnnoCasUtil.selectByAddr(aJCas, AnnotationFS.class, aAddress); // Create the tail chain // We know that there must be a next link, otherwise no arc would have been rendered! newChain(aJCas, getNextLink(linkToDelete)); // Disconnect the tail from the head setNextLink(linkToDelete, null); }
private AnnotationFS createChainElementAnnotation(CreateSpanAnnotationRequest aRequest) { // Add the link annotation on the span AnnotationFS newLink = newLink(aRequest.getJcas(), aRequest.getBegin(), aRequest.getEnd()); // The added link is a new chain on its own - add the chain head FS newChain(aRequest.getJcas(), newLink); return newLink; }
private AnnotationFS createChainElementAnnotation(CreateSpanAnnotationRequest aRequest) { // Add the link annotation on the span AnnotationFS newLink = newLink(aRequest.getJcas(), aRequest.getBegin(), aRequest.getEnd()); // The added link is a new chain on its own - add the chain head FS newChain(aRequest.getJcas(), newLink); return newLink; }
newChain(aJCas, originNext);
newChain(aJCas, originNext);
newChain(aJCas, followingLinkToDelete);
newChain(aJCas, followingLinkToDelete);